Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 02-07-2008, 04:40 PM Hoq do update a form
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Trades: 0
I was wondering how I update a form as I have tried it before but i'm an absolute beginner. i have this drop down box that has categories and when a category is chose it displays the values of its subcategories in another drop down box.
andyp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-08-2008, 02:54 AM Re: Hoq do update a form
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Depending on how you've implemented you could try one of the following:

1) Include the subcategory drop downs in the code with a display of none and then change it when the proper option is selected, or
2) Use Ajax to fetch the new drop down on the fly (more sophisticated coding), or
3) Create a JS object with the field values and change any necessary drop down using DOM coding (still more complicated that #1).

I personally recommend #1 for ease. #3 for speed. #2 for cool code.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to Hoq do update a form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09833 seconds with 12 queries