Results 1 to 3 of 3
Thread: AJAX question for noob
Feb 14, 2008, 17:58 #1
AJAX question for noob
Hello. I have just started toying around with Ajax this week. What I want to do is simple.
I have 1.php and 2.php.
1.php is the original document.
2.php is requested via AJAX.
I want 2.php to be able to change the innerHTML of a span located in 1.php.
Here is 2.php
Please remember I'm new to AJAX and really don't have much to start with.
Any links or tutorials that you'd recommend would be appreciated.
Feb 14, 2008, 21:16 #2
- Join Date
- Jan 2007
- Christchurch, New Zealand
- 103 Post(s)
- 4 Thread(s)
2.php cannot change the contents of 1.php
Through AJAX, 1.php can make a request from 2.php
2.php can then respond and print out a text response, which is then returned, so that 1.php can do something with it.
Feb 15, 2008, 19:08 #3
OK. Thanks for that information! I would've been searching for days before reaching that conclusion.
I happened to find this article: http://www-128.ibm.com/developerwork...ro2/index.html
(The whole series is here --> http://www.ibm.com/developerworks/vi...Mastering+Ajax )
It explained exactly what I needed to do and I got it working just the way I wanted!
Here's the link: http://pksml.net/antipixel_ajax