PDA

View Full Version : Triple Dropdown - A to B and B to C


alexdove339608
05-07-2009, 08:50 AM
I have a problem with a dynamic dropdown with three instances of dropdown menus on a page. Each dropdown is using a separate RecordSet. When dropdown_A is selected it populates the list in dropdown_B. When dropdown_B is selected from the newly populated list it populates dropdown_C.

I am receiving a javascript error "eventDay_WAJA is undefined" and eventDay is a Dynamic Array created from one of the recordsets to populate dates.

URL = http://controlkey.pivotalsolution.com/index.cfm?category=rsvp and use the tab labeled 'Event Selections'
I have used the documentation in the help file to create the page. My final goal is to create three dropdown menus where the menu1 affects menu2 and menu2 affects menu3. So it would be a two (2) step process. First choose the events which populates the days available and then a day is chosen which gives a price.

There are 2 dynamic arrays: eventDay and eventPrice
There are 3 menu fields: Event, Day, and Price

I also am receiving a second error for Coldfusion where it states that a duplicate function cannot be executed more than once on function "WA_DD_Replace" so I have been deleting the duplicate instance in the code view.

Ray Borduin
05-11-2009, 06:50 AM
It sounds like you are doing things correctly. I'm not seeing an error on the page now, but it doesn't seem to be working either. You may need to post a support incident to have someone help you debug the problem.

densalvador296608
08-07-2009, 06:44 PM
Was there a fix found on this issue?

Ray Borduin
08-11-2009, 07:46 AM
Please describe your precise error. Are you also using coldfusion and getting the duplicate function error? You may be able to simply delete the repeated function declaration.

k.u.hamann394275
11-20-2009, 07:50 AM
I'am using dreamweaver cs4 and a mysql-database and want to create a site with 3 or 4 dropdown-menus. when i want to open the site, i get this error:

"Fatal error: Cannot redeclare wa_dd_replace() (previously declared in ...\auto_Search.php:133) in ...\auto_Search.php on line 185"

i don't know how to fix it, it's this function:

"function WA_DD_Replace($startStr) {
$startStr = str_replace("'", "|WA|", $startStr);
$startStr = str_replace("\\", "\\\\", $startStr);
$startStr = preg_replace("/[\r\n]{1,}/", " ", $startStr);
return $startStr;
}"

is there a chance of getting this done?

many thanks from Germanyhttp://www.webassist.com/forums/images/icons/icon7.gif

Ray Borduin
11-20-2009, 08:08 AM
Just delete the function... this means it appears twice, so you can simply remove the second one.

k.u.hamann394275
12-27-2009, 04:32 PM
Thank you very much! The multiple dropdown works now, but when i change the option in the first list, it will not reset the third or fourth list. I tried it with php-functions by "onchange" or with javascript-functions, it didn't work....Perhabs it's not a big problem to fix it, but i didn`t get it done...

trendy397249
12-29-2009, 07:51 AM
Hello

I've checked your application and this is exactly what I need.
I am struggling with the code for a couple of weeks, therefore would you mind to send me the code to reproduce the 3 dropdownlists?