Meaningless Drivel is fun!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60740
    
  65

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: 60740
    
  65

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 ]
 
 
subject: Ajax implementation
 
Similar Threads
Select the value from the Combo box
on lost focus of textbox. + JSP + Server side Validation.
JSP auto refresh flickering problem
How to refresh parent page from a pop up without retry button ???
Could I make a automatic call for ajax method