• Post Reply Bookmark Topic Watch Topic
  • New Topic

A question about the form

 
Ning Du
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In one of my JSP page I have two SELECT fields in a form,the requirment is that the options of the second SELECT field changes along with the selected option of the first SELECT field. How can I do that? JavaScript?
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you can do that using a javascript. If the no of records are few then using JS is not a problem. But if the number of records are big say abt 800
then using using wddx u can do that.
 
Ning Du
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply,
but I don't know what you mean by"But if the number of records are big say abt 800, then using using wddx u can do that. "
[ August 23, 2003: Message edited by: Adu Ning ]
 
Faisal Khan
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adu,
Sunitha is saying that if you have a select box with huge number of entries then using JavaScript is not a good solution. In most cases it should be OK.
You can populate javascript arrays and do all the processing on client side or use server side processing thus reloading the page when an option is selected in the first select box.

IHTH
- FK
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!