Ajax Assignment #2
This week's Ajax assignments were somewhat challenging. I understood the basic concept of XMLhttprequest but had trouble with two basic issues:
1) I didn't fully understand what the PHP was doing in the examples shown in class because we did not have access to the actual PHP functions behind the scenes. I know PHP pretty well but found it hard to figure out exactly what the example PHP functions were returning to the Javascript.
2) I found it really difficult to switch between using 'regular' ajax and the Prototype API. I read the documentation but found it difficult to find example code. Then again, maybe my google searches were not good enough. I also had a significant problem using InnerHTML, which worked in the example with 'regular' ajax but not in the example where I used Prototype.
Exercise One
PHP File (in text format)
Change the loading of different sets of pictures based on pressing a different button.
Exercise Two
PHP File (in text format)
Enter in your astrological sign and get a message when you click outside the box.
Exercise Three
PHP File (in text format)
Drag a group into the box to link it to your group. (this is where the InnerHTML is not working) Running Firebug will show you the calls to PHP.