GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  AJAX
Go To First  |  Previous Question  |  Next Question 
 AJAX  |  Question 5 of 9    Print  
Role of open() and send() in ajax

  
Total Answers and Comments: 1 Last Update: November 17, 2007     Asked by: ashokkumar 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Kalpana tekuri
 
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);


Above answer was rated as good by the following members:
amitverma
November 17, 2007 08:33:11   #1  
Kalpana tekuri        

RE: Role of open() and send() in ajax
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);

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

If i have to Automate an application developed in AJAX which tool (QTP,WinRunner)would be more useful. Does Load runner has a protocol to support AJAX?
Read Answers (6) | Asked by : Anand Indoori

Latest Answer : One thing i have forgotten to write that Due to some web standard we may call it as Browser dependant like if we will use JSON then it is not supported by all browser . so when we are using Ajax we have see the webstandard we used for it..But except ...

I don't know how to start with, which tools are required to create a Ajax application and Which tool we need to run the Application created in Ajax 
Latest Answer : The best place to start with Ajax is "Ajax For Dummies".  Learn the concepts first and then u can start using JavaScript libraries like PROTOTYPE OR SCRIPTACULOUS..ALL THE BEST. ...

Latest Answer : Ajax itself is javascript which uses XMLHttpRequest object which takes action event parameters into method call open().AJAX Stands for Asynchronous Java script and XML where in there is no order in which to requests and responses are tracked.XMLHttpRequest.open() ...
Read Answers (1) | Asked by : thoby

Latest Answer : 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', ...
Read Answers (1) | Asked by : ashokkumar


 Sponsored Links

 
Related Articles

BI Role in Making Corporate Decisions

BI Role in Making Corporate Decisions What is a Corporate Decision A decision that deals with the safety success and livelihood of a business can be defined as a corporate decision These decisions can range anywhere from financial issues and customer satisfaction to product popularity and environmen
 

Microsoft AJAX Library - Introducing JSON

Introducing JSON In AJAX applications client server communication is usually packed in XML documents or in the JSON JavaScript Object Notation format Interestingly enough JSON s popularity increased together with the AJAX phenomenon although the AJAX acronym includes XML mosgoogle JSON is the format
 

Microsoft AJAX Library - Inheritance using Prototypes

Inheritance using Prototypes Once again prototyping can help us implement an OOP feature in a more elegant way than when using closures Prototype based inheritance makes use of the behavior of JavaScript prototypes When accessing a member of a function that member will be looked for in the function
 

Microsoft AJAX Library - Inheritance using Closures

Inheritance using Closures and Prototypes There are two significant techniques for implementing the OOP concept of inheritance with JavaScript code The first technique uses closures and the other technique makes use of a feature of the language named prototyping Early implementations of the Microsof
 

Microsoft AJAX Library - JavaScript Execution Context

JavaScript Execution Context In this section we ll take a peek under the hood of the JavaScript closures and the mechanisms that allow us to create classes objects and object members in JavaScript For most cases understanding these mechanisms isn t absolutely necessary for writing JavaScript code&am
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Associative Arrays

Thinking of Objects as Associative Arrays A key element in understanding JavaScript objects is understanding the notion of associative arrays which are nothing more than collections of key value pairs As a NET developer you have worked with associative arrays represented by classes such as NameValue
 

Microsoft AJAX Library - C# and JavaScript Classes

C and JavaScript Classes For the purpose of demonstrating a few more OOP related concepts we ll use another class Our new class is named Table and it has two public fields rows columns and one method getCellCount The getCellCount method should return the number of rows multiplied by the number of co
 

Microsoft AJAX Library - JavaScript Classes

JavaScript Classes Not only can JavaScript functions contain other functions but they can also be instantiated This makes JavaScript functions a good candidate for implementing the concept of a class from traditional object oriented programming This is very helpful feature indeed because JavaScript
 

Microsoft AJAX Library - Anonymous Functions

Anonymous Functions Anonymous functions can be created adhoc and used instead of a named function Although this can hinder readability when the function is more complex you can do this if you don t intend to reuse a function s code In the following example we pass such an anonymous function to Displ
 

Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape