• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX or JavaScript

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web page. First, I provide two radio buttons; one is "one single location" and the other is "multiple location".

If users select the "one single location", I plan to prompt a tabulation that has the information of that particular location.

If users select the "multiple locations", I am going to prompt a number of tabulations onto the screen.

I appreciate advices in regard to whether I should use AJAX or JavaScript to do the prompting?
[ February 15, 2007: Message edited by: JiaPei Jen ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um, Ajax is JavaScript

Eric
 
Jason Moors
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think it depends on whether you have all the location information when you display the page, is so and there is not a lot of data, I would just use javascript to hide/unhide your table. Which would only involve one request to the server.

Otherwise you could javascript and the XmlHttpRequest (Which I guess is what you mean by AJAX) to retrieve the information when the user selects you radio button, i.e. makes the request to the server retrieve the information. This would obviously increase the traffic as you would make a request each time the user clicked on a radio button.

Hope it helps
Jason
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic