New to AJAX and have a questions. Cant figure these out...?

Jamaal E

New member
Is it possible to modify more than one object in one procedure or do you have to create a new function every-time? Like, I'd like to modify a text box or two or (what would have sloved my problem up till now) a variable.
 
Do you remember those lessons on arguments passed through a variable? Keep your function, but have an argument that states WHERE the ajax leads to.
function simpleFunc( place ){
AJAX blah blah, leading to "place"
}

Call: simpleFunc("process.php");

And easier way to do ajax however, is to learn jQuery.
Code to start an AJAX commute:
$.ajax
Learn jQuery at http://www.jquery.com/
Good Luck!
If you need further assistance/advice, feel free to contact me.
 
Back
Top