jaymc Posted September 28, 2007 Share Posted September 28, 2007 Lets say I use AJAX to call a php script.. the php script will return 3 values, variables if you like The time The date unix time stamp How do I then pass that information back to AJAX as variables so I can use each seperate value At the moment I only know how to pass the entire contents of the php back, rather than say var time=TIME_FROM_PHP_script var time=DATE_FROM_PHP_script var time=UNIXTIMESTAMP_FROM_PHP_script Cheers Quote Link to comment Share on other sites More sharing options...
jaymc Posted September 30, 2007 Author Share Posted September 30, 2007 Any ideas? Quote Link to comment Share on other sites More sharing options...
dakine Posted October 4, 2007 Share Posted October 4, 2007 If I understand the problem (and ajax/php) correctly...I don't think you can. You can pass variables from the 'current page' to AJAX (and then forward those variables onto another php page) But the return results from the other php page are written directly to the targetted div and not returned to the javascript. d. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.