close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Triple Dropdown - A to B and B to C

Thread began 5/07/2009 8:50 am by alexdove339608 | Last modified 12/29/2009 7:51 am by trendy397249 | 5643 views | 7 replies |

alexdove339608

Triple Dropdown - A to B and B to C

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 = 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.

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

densalvador296608

Having the same issue

Was there a fix found on this issue?

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

k.u.hamann394275

I have tis issue too.

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

Sign in to reply to this post

Ray BorduinWebAssist

Just delete the function... this means it appears twice, so you can simply remove the second one.

Sign in to reply to this post
Did this help? Tips are appreciated...

k.u.hamann394275

More problems...

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...

Sign in to reply to this post

trendy397249

your application

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?

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...