permaculture playing cards*
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
Author

Ajax implementation

Swosti Dipan Pal
Ranch Hand

Joined: Sep 23, 2005
Posts: 70
Hi,

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 ?

Cheers,
-Biswa


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

Joined: Jan 10, 2002
Posts: 61103
    
  66

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Pavan Keely
Ranch Hand

Joined: Jun 30, 2006
Posts: 62
Biswamohan,

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="http://keelypavan.blogspot.com" target="_blank" rel="nofollow">http://keelypavan.blogspot.com</a>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

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 ]
 
Consider Paul's rocket mass heater.
 
subject: Ajax implementation