kwstephenchan Posted October 15, 2013 Share Posted October 15, 2013 Hi, I have an ajax call to display the country name for update. After I change the data and press the updated button, (the data is updated to the database). But if I select the same country id (without leaving the page), it gives me the old data. Only if I leave the browser completely and call this ajax again, it then will give me the updated data. Don't know why can someone please advise what is causing the problem. The sequence of events are: 1. call out the country 2. update the country name 3. call out the country (here it is not showing the updated country name) But if I leave the browser completely, it will show me the updated country name Thanks. Link to comment https://forums.phpfreaks.com/topic/282977-ajax-not-getting-the-updated-data/ Share on other sites More sharing options...
kwstephenchan Posted October 15, 2013 Author Share Posted October 15, 2013 Just solved. I should be using POST instead of GET in my ajax calls. Link to comment https://forums.phpfreaks.com/topic/282977-ajax-not-getting-the-updated-data/#findComment-1453960 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.