This is a discussion on dependent select - ajax issues within the Coding Help forums, part of the Webmaster Help category; I am unable to get Louie's select box magic working. I've added the closing script tag and replaced `s with ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am unable to get Louie's select box magic working. I've added the closing script tag and replaced `s with ' as well as updated the include_once link to page2.php everything else is cut and paste and I can not get his script to work. the select boxes both appear but upon selecting an option the second box does not change unless I use the submit button. I have a particular need for dynamic select boxes as I have 3-15 options in the first select and up to 70 options in a second select depending on the option in the first and don't want to cary all that code in the doc... but alas, I'm stumped even after reading several articles and posts on the subject. http://netviper.com/test/page1.php <-- currently working on it |
| |||||
| first fix this line in your javascript: Code: if ( xmlhttp_obj.readyState == 4 && xmlhttp_obj.status == 200 ){
//to
if ( xmlhttp_obj.readyState == 4 && xmlhttp_obj.status == 200 ){
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Car Parts & Accessories Car Parts :. Cars Ireland Cars Ireland :. I Have 2 Find It Directory SEF Directory |
| ||||
| you da man... I could swear I fixed that after reading your post from last year. It appears to be working though I need to modify it now to have two select boxes dependent on the and not hierarchal (sp?) and then connect it to my db any cautions with the above before I proceed? either way, Thank You!! |
| |||||
| Cautions? - Sanitise the QS before accessing the DB That is a very simple sample and can do the magic alright, but there a very good frameworks out the that could do more than one AJAX call simultaneously which is very handy - like Yahoo YUI |
| Tags |
| ajax, dependent, issues, select |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 'Select Box' Selection Function | ziycon | Coding Help | 31 | 23-01-2009 09:39 AM |
| AJAX and Accessibility? | blacknight | Coding Help | 8 | 29-10-2006 12:31 PM |
| AJAX PHP Books | louie | Coding Help | 26 | 29-08-2006 03:00 PM |
| ||||
| | ![]() | |||
| | ||||