How do we pass parameters to the server?
Submitted by: MuhammadBelow are the two ways of passing data to server. The first one shows by using GET and the second by POST.
xmlHttpObj.open("GET","http://" + location.host +
"/XmlHttpExample1/WebForm1.aspx?value=123", true);
xmlHttpObj.open("POST","http://" + location.host +
"/XmlHttpExample1/WebForm1.aspx?value=123", true);
Submitted by: Muhammad
xmlHttpObj.open("GET","http://" + location.host +
"/XmlHttpExample1/WebForm1.aspx?value=123", true);
xmlHttpObj.open("POST","http://" + location.host +
"/XmlHttpExample1/WebForm1.aspx?value=123", true);
Submitted by: Muhammad
Read Online XMLHttpRequest Job Interview Questions And Answers
Top XMLHttpRequest Questions
☺ | Explain getAllResponseHeaders ()? |
☺ | What is getResponseHeader("headerLabel")? |
☺ | What is SetRequestHeader ("label"," value")? |
☺ | Explain what is JSON? |
☺ | What is send(content)? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |