AJAX
I started to look at AJAX more indepth last week, since our project was heavily javascript oriented. My task from the group meeting last Sunday was to make a simple textbox for entering an e-mail address, a button to enter it and have that same e-mail address be displayed on the webpage without refreshing the page itself and have the textbox be cleared.
I started to study how the response work, and what the XMLHttpRequest object is. It took me awhile to understand the code, and even now i don't really feel like I have a firm grasp on it - but at least a working knowledge.
Although I only figured out how to get the email print on the page, i need to figure out how to make it list multiple emails without clearing the first output. I suppose it'll have to do with assigning the string to an array of some sort and using a loop. I hope I will be able to figure it out this week.
Our group didn't have a meeting this week, but I'm sure we'll have something to discuss about on Tuesday this week.

1 Comments:
Ray, you only need to use the XMLHttpRequest when grabbing an external file. You can incorperate AJAX just by using the getElementById function and changing the value of the text field element. HTML can be added by setting the innerHTML of a div to a string you create.You can do it!! check out the link to Javascript info on the right side of my blog. (bornleverpuller)
Post a Comment
<< Home