I have a new project where I have a multi-page site. I'm trying to go from page 1 to page 2 and calling javascript to access a php page so I can print data from mysql. It's working well ONLY AFTER A MANUAL REFRESH. The data will show up for a split second, then disappear. I've put the javascript function call in the body of my 2nd page.
I've tried pagebeforeshow and other events, but it's still the same problem.