Im building an app with jQuery mobile and I have a little problem.
I've to pages:
index.html test.html
On both pages I use an ajax post to get content from the database. When I test the app the results on index.html shows on the screen so that goes well but when I navigate to another page like test.html the results doesnt show. When I refresh the page test.html the results shows on the screen. Now when I go back to index.html the results are gone.
I tested on Chrome.
I hope somebody can tell me what the problem is.
Thanks in advance!
jQuery Mobile loads scripts only from first page head so you should put in your index head all the scripts (or scripts includes) also for the test.html page. You can even delete the head tags from the other pages.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.