Well after a week off from spring break I figured that it would be a good idea to make updates to more than one page. The first is per the required AJAX update. Finally figured out what I deem an acceptable way to show the XML data. Basically I have now have two buttons on the Items page of the site. This is in place of the drop down list idea I had been attempting. Each button when clicked displays underneath it part of the XML file, the dividing line being $1-50 and $51-Up.
http://webdev.ramapo.edu/~pcoleman/PROJECT/ITEMS2.html
Now the flaw in this method is that each time a button is click, it shows the data. With the buttons staying in place an endless repeat of each table can be made. What I need to add would be a second click function that hides the table, which I have not been successful in implementing yet.
The second page that has been updated is the About page. I've added a picture diagram depicting the process of how an Item can go from sitting in a person's home to being up online for sale.
http://webdev.ramapo.edu/~pcoleman/PROJECT/ABOUT.html
What each picture does is on mouseover it changes to the instructions. The code I used did not work with text, so instead the texts show are actually also image files that only contain text. When the mouse moves away from an image, it switches back to the original.
This week's coding has really frustrated me. Maybe its because I was trying to get my drop down list to work and that hasn't happened. Or that what I finally do have(the buttons) is not yet perfect. I am satisfied with the About page. Although at the same time sort of got an intro into ASP and PHP with the AJAX XML when experimenting with different methods to update Items page. Now I really hope to start working with AJAX applications soon because it isn't all one confusing mess of code anymore.
No comments:
Post a Comment