|
I've just tested my script with your solutions:
url:"/cgi-bin/isaccount.cgi?username=" + encodeURIComponent(name.val()),
or
url:"/cgi-bin/isaccount.cgi",
data : {username: name.val()},
They don't work:
1) url:"/cgi-bin/isaccount.cgi?username=" + encodeURIComponent(name.val()),
I entered: abcd in the name field of the Form,
My Perl script, isaccount.cgi received two data: name.val() and usernameabcd immediately one after another??
2) url:"/cgi-bin/isaccount.cgi",
data : {username: name.val()},
It did not send any data to isaccount.cgi and it also seems like it did not get into the success:function(data){ loop, i.e. it is not success.
Any idea to fix it?
|