Role of open() and send() in ajax

Showing Answers 1 - 0 of 0 Answers

Kalpana tekuri

  • Nov 17th, 2007
 

1. The call to open() is the HTTP request method – GET, POST, HEAD or any other method you want to use and that is supported by your server.

2. The send() method can be any data you want to send to the server if POST-ing the request.

Ex:

httpRequest.open('GET', 'http://www.example.org/some.file', true);
httpRequest.send(null);

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions