...

View Full Version : AJAX send



otnj2ee
09-05-2008, 09:18 PM
Case 1:

ajaxInstance.open("GET", x, true);
ajaxInstance.send(null);


Case 2:

ajaxInstance.open("post", x, true);
ajaxInstance.send(null);


Since a null is to be sent, is the ajaxInstance.send mandatory or optional in these cases?


Thanks


Scott

sybil6
09-06-2008, 01:37 AM
I think it's mandatory, dont forget to capitalize the 'POST', for GET send is always null or (' ') and for POST send is a query string like name=value&name1=value1 etc...

oesxyl
09-06-2008, 01:58 AM
I think it's mandatory, dont forget to capitalize the 'POST', for GET send is always null or (' ') and for POST send is a query string like name=value&name1=value1 etc...
while to capitalize 'post' and 'get'? I ask because I think I always use lowercase and seems to work.


Case 1:

ajaxInstance.open("GET", x, true);
ajaxInstance.send(null);

Case 2:

ajaxInstance.open("post", x, true);
ajaxInstance.send(null);

Since a null is to be sent, is the ajaxInstance.send mandatory or optional in these cases?

Thanks


Scott
it's mandatory, nothing happend untill you call send.

best regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum