According to the console, to post it with Firefox on some pc in a business environment Ajax does not call (240 similar establishment ). If I remove the location .reload ();
Then Ajax Post is just fine. However, the browser does not lose the point of using Ajax.
Am I doing something wrong? Select
: Function (start, end, end, js, event) {if (user id) {var start = moment (start). Format ('YYYY-MM-DD') var end = start; $ Ajax ({type: "post", cache: incorrect, url: 'http: //intakecalendar/adddate.php', data: 'userID =' + userID + '& amp; start =' + end // + '& Amp; End = '+ End & Lieutenant; - Provides true end date; } // end if location.reload (); } // end
This is the position of a race, you are making an http call And reloading the page. Only one win and modern day browsers, Page Navigation has opened the HP requests.
Reload the success / full operators. Choose
: function (start, end, allday, jsEvent, see) {if (userID) {var start = moment (start). Format ('YYYY-MM-DD') var end = start; $ Ajax ({type: "post", cache: incorrect, url: 'http: //intakecalendar/adddate.php', data: 'userID =' + userID + '& amp; start =' + end, // + ' & Amp; end = '+ end & lt; - By providing a real end date, it completes the wrong day: function () {window.location.reload ();}}); } And {window.location.reload (); }}
No comments:
Post a Comment