Jump to content

Archived

This topic is now archived and is closed to further replies.

vidyashankara

Form handling - Yet again!

Recommended Posts

Lets say I have 2 drop down boxes - X and Y.
X has the names of a certian number of files.
Y has to read the files and display certian rows in the file.

How do you do that?

Share this post


Link to post
Share on other sites
way too vague. are you talking about upon the selection of X, the different selections in Y changes to different readable lines in X?

Share this post


Link to post
Share on other sites
[!--quoteo(post=383952:date=Jun 14 2006, 02:06 PM:name=thepip3r)--][div class=\'quotetop\']QUOTE(thepip3r @ Jun 14 2006, 02:06 PM) [snapback]383952[/snapback][/div][div class=\'quotemain\'][!--quotec--]
way too vague. are you talking about upon the selection of X, the different selections in Y changes to different readable lines in X?
[/quote]

here is an example.

The values of X are A, B, C, D.
If the user selects A, The script must read A.txt and the values of Y should be all the rows in A.txt.

Is it clearer now?

Share this post


Link to post
Share on other sites
if you wanted it to happen "on-the-fly" (without having to press a "submit" button) you'd have to use a client-side scripting lang like Javascript or Perl. Otherwise, you'd have to select A,B,C, or D, hit Submit and then Y could be propogated with different lines in A.txt, B.txt, etc.

Share this post


Link to post
Share on other sites
[!--quoteo(post=383960:date=Jun 14 2006, 02:19 PM:name=thepip3r)--][div class=\'quotetop\']QUOTE(thepip3r @ Jun 14 2006, 02:19 PM) [snapback]383960[/snapback][/div][div class=\'quotemain\'][!--quotec--]
if you wanted it to happen "on-the-fly" (without having to press a "submit" button) you'd have to use a client-side scripting lang like Javascript or Perl. Otherwise, you'd have to select A,B,C, or D, hit Submit and then Y could be propogated with different lines in A.txt, B.txt, etc.
[/quote]


Looks like i need to learn javascript!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.