This is a discussion on 'Select Box' Selection Function within the Coding Help forums, part of the Webmaster Help category; Ok, i have two select boxes called make and model, i want the user to select an option from the ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| Ok, i have two select boxes called make and model, i want the user to select an option from the make box and depending on what the user selects the model box will be filled with results from an SQL query, i think its to do with Javascript but i m not too up the JS myself, can anyone help? |
| |||||
| something like ... JavaScript Toolbox - Dynamic Option List ?
__________________ my sites : irish poker / irish jobs / seo faq / advertise jobs free / green card / skiing |
| |||||
| Thats exactly it, only problem is, the way its done here means i have to have every record in js on the page, theres so many makes and models it would be efficent to have it this way, is there any other way to do it(keep in mind all the makes and models are in a DB)? Code: var regionState = new DynamicOptionList();
regionState.forValue("west").addOptions("California","Washington","Oregon");
regionState.forValue("midwest").addOptions("Illinois","Iowa","Missouri");
regionState.forValue("east").addOptions("New York","Maine","Pennsylvania");
Last edited by ziycon; 12-11-2007 at 09:26 PM. |
| |||||
| You could do something nice with AJAX. |
| |||||
| Haven't got a clue where to start with AJAX, you know any nice tutorials? |
| |||||
| There is an example for you. Give it a shot and you'll get the hang of it quickly: Ajax load content from another file using POST or GET | Eire Web Design
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| |||||
| ah im so lost, cant get my head round it, think i need a break! |
| |||||
| PHP & MySQL im fine with but i never really learned JavaScript, i understand the basics but the rest is beyond me! |
| |||||
| Quote:
|
| Tags |
| box, elect, function, selection |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Posted By | For | Type | Date | |
| Dependent Select Box using Ajax | Website Design Ireland, Website Development | This thread | Pingback | 28-02-2008 01:33 PM | |
| GiveItSocks.com | This thread | Refback | 25-02-2008 02:17 PM | |
| Ajax | Website Design Ireland, Website Development | This thread | Refback | 10-01-2008 09:39 AM | |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| radio boxes and select boxes woes | paul | Coding Help | 2 | 20-02-2007 02:56 PM |
| PHP function giving trouble. | louie | Coding Help | 1 | 26-01-2007 11:51 PM |
| ||||||||
| | ![]() | |||||||