mrkamran Posted December 9, 2006 Share Posted December 9, 2006 Hi,I have a Combobox in my php file and there is another combobox which will fill based on first combobox. For example First ComboBox has Main Category and Second ComboBox has Sub Category, When i will select an option from main category then sub category will fill on the base of main category. I want to do this without submitting the form.Thanks Quote Link to comment Share on other sites More sharing options...
paul2463 Posted December 10, 2006 Share Posted December 10, 2006 Hi If you use Dreamweaver there is an extension, admitadley costs Euro 7.50 but it works wellyou will find it <a href="http://www.tecnorama.org/document.php?id_doc=62"> Here </a> Quote Link to comment Share on other sites More sharing options...
Zane Posted December 10, 2006 Share Posted December 10, 2006 you would create an AJAX function to fill those boxes based on a parameter....and you pass that parameter when you select something with the first comboboxfor instancein pseudocodeonchange of combobox1fillBox2(box1.selectedIndex) Quote Link to comment Share on other sites More sharing options...
mrkamran Posted December 11, 2006 Author Share Posted December 11, 2006 Hi,Can you please send me complete code to do it becuase i have no knowledge about AJAX. Can i do it with java script?Thanks Quote Link to comment Share on other sites More sharing options...
Zane Posted December 11, 2006 Share Posted December 11, 2006 AJAX is basically just a set use of javascript functionsit's more of a strategy than a programming languageno I'm not going to write the code for you.search the forums for AJAX...you're sure to find an example to work fromnot necessarily for combo boxes but at least some good learning materialtry this thread for examplehttp://www.phpfreaks.com/forums/index.php/topic,115581.0.htmlif you really need someone to write it all for you...post in the Freelancing board Quote Link to comment Share on other sites More sharing options...
mithu_sree Posted December 13, 2006 Share Posted December 13, 2006 [quote author=mrkamran link=topic=117997.msg481827#msg481827 date=1165695809]Hi,I have a Combobox in my php file and there is another combobox which will fill based on first combobox. For example First ComboBox has Main Category and Second ComboBox has Sub Category, When i will select an option from main category then sub category will fill on the base of main category. I want to do this without submitting the form.Thanks[/quote]Yes This is possible with the JavaScript combined with PHP Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 14, 2006 Share Posted December 14, 2006 [quote author=mithu_sree link=topic=117997.msg483999#msg483999 date=1166011100][quote author=mrkamran link=topic=117997.msg481827#msg481827 date=1165695809]Hi,I have a Combobox in my php file and there is another combobox which will fill based on first combobox. For example First ComboBox has Main Category and Second ComboBox has Sub Category, When i will select an option from main category then sub category will fill on the base of main category. I want to do this without submitting the form.Thanks[/quote]Yes This is possible with the JavaScript combined with PHP[/quote]Eh... that doesn't help very much. Especially when two other people said it is possible... Quote Link to comment Share on other sites More sharing options...
DeathStar Posted December 16, 2006 Share Posted December 16, 2006 lol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.