Jump to content

how can i modify a listbox contents according to another listbox's content


sanjeevk

Recommended Posts

hi

i have a problem in displaying contents in a list box where each list box contents depend on the selection in another list box.

i need to display all the districts in 2nd list box when a the first list box contents a particular zones.

all the zones and districts are fetched  from the  database ..

please can anyone help mme out ...

Link to comment
Share on other sites

Maybe you can integrate this with iframe, so the user still sees the first drop down menu on the page, without refreshing the whole page!

 

Or you can use the whole operation in an iframe.

 

Or a little more advance, hide the second drop menu in a DOM method.

 

Just variations for fancier implementations.

 

Link to comment
Share on other sites

No problem! Your way is correct! php file post to a php file post to a php file!

 

All I did is offer posting to php file in a iframe.....so you can leave the first list box on the page for your eyes only.

 

It is just a user intarface.......you can probably convert the first form listbox to a table of what is selected using DOM or, just post the information to the php file and echo it, so the user can see what they selected........

 

These are just ideas for user interface.......which one is easy and simple to use.......it is probably your suggestion.......I am just offering variations of display........take it or leave it.

Link to comment
Share on other sites

No problem! Your way is correct! php file post to a php file post to a php file!

 

All I did is offer posting to php file in a iframe.....so you can leave the first list box on the page for your eyes only.

 

It is just a user intarface.......you can probably convert the first form listbox to a table of what is selected using DOM or, just post the information to the php file and echo it, so the user can see what they selected........

 

These are just ideas for user interface.......which one is easy and simple to use.......it is probably your suggestion.......I am just offering variations of display........take it or leave it.

 

agreed. there's always more than one way to write a program that skins cats.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.