Basic Ajax Routine (get & post) : basic question
1) Script Title: Basic Ajax Routine (get & post)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxroutine.htm
3) Describe problem:
I'm successfully calling a perl script using post method. So far so good.
document.getElementById(mercimsg).innerHTML=myajax.responseText and many other thing ....
Going further: how do you test the first word in myajax.responseText is "Error" so you can display the response in an alert box (as it does now) otherwise display it in div
Sorry for asking something so very basic.
Thanks in advance