Help with Ajax, project due next week.
Hello, I'm currently taking a javascript, ajax, and sql course and we have a project due on the 19th. We have just been introduced into Ajax and we have already covered basic javascript. Here is the basic idea :
Simple text file for the database
{
This is the text file's contents
3;
20:Sue, Peggy;
10:Jones, Dave;
30:Goodman, John
}
Once a user enters a number, “10” for example, into the field, your program should display “Jones” and “Dave” in the appropriate fields on your web page.
I've done simple examples for AJAX, like changing the text in a div tag by pressing a button that loads the text file, the concept that I can't seem to wrap my mind around is, after I get the text with the GET method how do I navigate through it to find the specified numbers that correspond to the names. So if the user enters in a 78, how do I go into the text file to look for that number?
I do not expect this to be done for me, I would just like some explanation on how to approach it. So please dont explain how to do the entire thing because I wouldn't want my teachers to think I was cheating.
Thank you in advance ^_^
