close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Just cannot get it to work

Thread began 4/18/2011 10:37 am by John Langer | Last modified 4/18/2011 1:12 pm by Jason Byrnes | 1278 views | 5 replies |

John LangerBeta Tester

Just cannot get it to work

This is very annoying as I know it's something I'm not doing right as I have done this successfully in the past.

This is just two drop downs, one parent, one child and the child does not populate. Attached is the page and database.

Any ideas?

Attached Files
advancedSearch.zip
sql.txt
Sign in to reply to this post

Jason ByrnesWebAssist

your rsLocationsChild recordset does not return the Region column that you are using as the parent ID:

$query_rsLocationsChild = "SELECT `Group ID`, `Group Locator`, Region FROM groups";



change that to:

$query_rsLocationsChild = "SELECT Region, `Group ID`, `Group Locator`, Region FROM groups";
Sign in to reply to this post

John LangerBeta Tester

Hi Jason, thanks for the reply.

Not wishing to take issue with you but the Region column was in there already. However I moved it to the front of the list as that's how you presented it but that made no difference, it still doesn't work.

Any other ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

Sorry about that, guess I need more coffee this morning.

the problem is caused by using the name location for the child select list. This is a reserved variable name in javascriot used for the location property of the window object.

I got the dynamic dropdowns working by renaming the select lists to:
sel_region
sel_location

Sign in to reply to this post

John LangerBeta Tester

I wish all I needed was a cup of coffee! I need a brain transplant.

Many thanks as always Jason. Works a treat now.

Sign in to reply to this post

Jason ByrnesWebAssist

Great, glad to hear it is working.

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