• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can AJAX help me

 
D.Praveen Nair
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a project which is an online Product Configurator. We have a set of Questions that any customer should answer to zero down on his Product. The point is response to each question may change the available options for the rest of the questions.

This validation occurs on the server side and i need to send a request through a hidden IFRAME and get back the response from the server. The page must not refresh while a question is answered.

I wanna know how using AJAX can help me in this.

PS: If i am not clear about the requirements, i am always ready to clear any point.

Any help would be highly appreciated.
 
Nate Schutta
Author
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you could use the XHR object to post your responses instead of using an iframe...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65125
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed. Before the use of XMLHttpRequest, we used invisbile iframes to post back to the server without a page refresh. Javascript in the child window would invoke pre-definined Javascript function in the parent.

Using XHR (XMLHttpRequest) simplified things greatly as less "plumbing" is required.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic