• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

does AJAX eliminate the need of refresh ?

 
Eusebio Floriano
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I need to do a page that has to constantly reload some data.
This page must inform the variations of stock exchanges.
The only solution that i have is constantly refresh the page using a simple javascript.
Can AJAX resolve this kind of requirements ?
If it can, is it simple to do if AJAX?

Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this is exactly the type of usage that AJAX is best for.

I'd hardly call AJAX a simple technology to use -- it requires a pretty good grasp of Javascript -- but it's not rocket science either.
 
Eusebio Floriano
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx Bear,

And talking about performance. Do you think that AJAX could decrease the overhead caused by contant refreshes when using a regular javascript ?

Regards,
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax is only request the information you need and is not returning the entire page. The benifit you are going to get is that the page is not going to flash/freeze as you are refreshing the page. It will look more magical when the information is pulled from the server.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic