unable to refresh on firefox with javascript -
Cash in Firefox is really a pain for me and I know that this question has been asked many times.
But there really is window.location.reload (); There is no other way to work in Firefox, it works perfectly in Chrome
I tried to find all the methods I can get on Google and stackoverflow but none of my case Is not working for
I have tried the following:
document.location.reload (true); Window.href = window.href; Window.location.href; I have also tried to give a different version in the JS file.
I would like to see if there is any other way to bypass it.
That's how my JS file looks like.
$ ("drag"). Sortable ({// Startable with connecting: ".drag", get: function (event, UI) {// var id = $ (ui.item) .attr get ('id') ; Var status = this.id; // Alert (id); $ .ajax ({// start ajax url: "ajax / connect with-multiple.exec.fp", type: "gET", data: { 'Sales_card_id': id, 'position': status}}) // and Ajax // fresh page when the ajax has been completed document.location.reload (true);}); }, // end receive}} // end sortable
This is my solution above With the help of given comments, the above question
$ ("drag"). Sorted ({// start ordering: ".drag", get: function (event, UI) {// var ID = get $ Ui.item) .attr ('id'); Var status = this.id; // Alert (ID); $ .ajax ({// start ajax url: "ajax / connectwith-multiple.ajax.php", type: "GET", data: {'sales_card_id': id, 'status': status}}) // And Ajax // fresh page when Ajax is completed. Allways (function () {window.location.reload ();});}, // and receive}} / / end sorted
Comments
Post a Comment