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 ...

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.

 

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.

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.

Archived

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

×
×
  • 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.