File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Ajax implementation 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 "Ajax implementation" Watch "Ajax implementation" New topic

Ajax implementation

Swosti Dipan Pal
Ranch Hand

Joined: Sep 23, 2005
Posts: 70

I have designed a page using Ajax. It shows a few records (6) with a more link. These records are fetched from the SAP. Is it possible to show up all the reocrds by clicking on more link without refreshing the page ?

e.g AX, BX, CX , DX, EX, FX .... More >>>

clicking on more displays all the records. Is it possible to show up without refreshing the page ?


Thanks<br />-Swosti
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

If you are refreshing the page, why use Ajax? The whole point of Ajax is to fetch data from the server without a page refresh.

[Asking smart questions] [About Bear] [Books by Bear]
Pavan Keely
Ranch Hand

Joined: Jun 30, 2006
Posts: 62

It is possible and that's the main intention of using Ajax.

When user clicks on "More", get the data using XHR and update the results section of the page dynamically using DOM or innerHTML.

Pavan Keely<br /><a href="" target="_blank" rel="nofollow"></a>
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

When Pavan wrote XHR he meant XmlHttpRequest.

Please don't use abbreviations that could be confusing to the uninitiated.
[ July 12, 2006: Message edited by: Bear Bibeault ]
I agree. Here's the link:
subject: Ajax implementation
jQuery in Action, 3rd edition