close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Getting Dynamic Dropdowns to work...

Thread began 6/10/2010 8:53 am by iamdan356160 | Last modified 6/11/2010 10:32 am by Jason Byrnes | 1255 views | 7 replies |

iamdan356160

Getting Dynamic Dropdowns to work...

I've followed the tutorials to set up the a parent and child dropdown on my insert page... but the child drop down is not doing anything. Just stays empty. The original form was created by DataAssist... not sure if that might be causing an issue? I've attached a copy of the script... Anyone have any ideas what I've done wrong? Thanks in advance!

Attached Files
items_Insert.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Looking at the page, you have the Main Cat select list and the Sub Cat select list.

You have applied the Populate List From Array behavior to the onChange event of the Sub Cat select list.

The Populate list from array behavior needs to be applied to the onChange event of the parent select list. It appears the Main Cat Select list should be the parent.

You should apply the Populate list from array behavior to the Main Cat select list instead of the sub cat select list.

Sign in to reply to this post

iamdan356160

I tried that the first time...

I've done it again, but it's still not doing anything... This is the page...

items_Insert.php

and I've attached the latest version...

Attached Files
items_Insert.zip
Sign in to reply to this post

Jason ByrnesWebAssist

In fire bug i see the following javascript error:
Error: syntax error
Source File: items_Insert.php
Line: 8, Column: 8
Source Code:
WAJA[0][] = new Array();


It looks like you have a record in the itemcategory table with a blank value in the MainCat_ID column that is causing the problem.

either filter the recordset to not include records with a blank value in the MainCat_ID column or remove those records from the database.

Sign in to reply to this post

iamdan356160

I've just checked and all records in the 'itemcategory' table, do have 'MainCat_ID's... I've attached a screen shot...

Sign in to reply to this post

Jason ByrnesWebAssist

your screen shot only shows 20 rows, there are at least 27 being added to the dynamic array. You screen shot does not show a record for "Flower Vases" But it is a part of the dynamic array:


WAJA[0][7][0] = '27';
WAJA[0][7][1] = 'Flower Vases';

Sign in to reply to this post

iamdan356160

Apologies! I was using a trial version of DBManager, and it only displayed 20 records at a time. Please see my updated screen shot... 28 records, all with maincat_id's and the page is still not working! Any other thoughts? Thanks in advance...
Regards,

Dan

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
login.php

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