PDA

View Full Version : AJAX send



otnj2ee
09-05-2008, 08: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, 12: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, 12: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