Forum Moderators: coopster

Message Too Old, No Replies

fetch data in combo box on selection of one combobox.

         

Maithili

5:46 am on Aug 26, 2008 (gmt 0)

10+ Year Member



I have problem that,
i have some options in one combobox
when i select one of the option of combo box
then i want to show its respective subtypes in other combo box
without refreshing or reloading the file.

IndiaMaster

6:03 am on Aug 26, 2008 (gmt 0)

10+ Year Member



You have to use AJAX.

eelixduppy

4:29 pm on Aug 26, 2008 (gmt 0)



Not sure if you are grabbing the new options for the combo box from a database, but there is a thread on the issue that should get you started with what you are looking for: [webmasterworld.com...]

If you aren't using a DB and don't need to use PHP, then at least the DHTML and AJAX should get you started with something. For more information with that regard, you might want to check out the Javascript/AJAX forum we have here at WebmasterWorld.

Oh, and Welcome to WebmasterWorld!

Maithili

7:17 am on Aug 27, 2008 (gmt 0)

10+ Year Member



Thanx

I have used the Ajax and problem is solved..in much less efforts..

Thanx once again

Maithili

9:19 am on Aug 28, 2008 (gmt 0)

10+ Year Member



My problem is solved but this coding works for only Mozilla

not for any other browser...
basically onClick event for combo-box is not supported in browsers except Mozilla..

plz any one have any solution.........

httpwebwitch

3:52 am on Sep 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



try using "onchange" for a select box. "onblur" works as well, and so does "onmouseup" and "onkeyup"