File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 61218
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can AJAX help me