aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Can AJAX help me Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Can AJAX help me" Watch "Can AJAX help me" New topic
Author

Can AJAX help me

D.Praveen Nair
Greenhorn

Joined: Jul 28, 2006
Posts: 2
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

Joined: Mar 09, 2004
Posts: 39
Well you could use the XHR object to post your responses instead of using an iframe...


Nate Schutta<br />Coauthor of <a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&camp=1789&tag=ntschuttacom-20&creative=9325&path=tg/detail/-/1590595823/qid=1127567332/sr=8-1/ref=pd_bbs_1?v=glance%26s=books%26n=507846" target="_blank" rel="nofollow">Foundations of Ajax</a><br />My blog: <a href="http://www.ntschutta.com/jat/" target="_blank" rel="nofollow">Just a Thought</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56221
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can AJAX help me
 
Similar Threads
AJAX XMLHttpRequest sample project
Winners: Head Rush Ajax
Export to xls file - Download file using AJAX
How to return just the value not whole HTML?
Using Java Objects in AJAX??