Prototype Framework Question:
Download Job Interview Questions and Answers PDF
Explain the Ajax object?
Answer:
In an effort to reduce the amount of code needed to run a cross-browser XMLHttpRequest function, Prototype provides the Ajax object to abstract the different browsers. It has two main methods: Ajax.Request() and Ajax.Updater(). There are two forms of the Ajax object. Ajax.Request returns the raw XML output from an AJAX call, while the Ajax.Updater will inject the return inside a specified DOM object. The Ajax.Request below finds the current values of two HTML form input elements, issues an HTTP POST request to the server with those element name/value pairs, and runs a custom function
Download Prototype Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain The $$() function? | How does the new keyword works? |