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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamic Dropdown will not work

Thread began 4/20/2010 2:18 am by Armen | Last modified 4/20/2010 12:20 pm by Armen | 1269 views | 8 replies |

Armen

Dynamic Dropdown will not work

I followed the getting started guide but can't get the dependent (child) menu to work. The child menu just sits there empty.

Any help will be greatly appreciated. I'm extremely frustrated with this extension.

I've attached the code to the page.

Attached Files
code.txt
Sign in to reply to this post

Jason ByrnesWebAssist

could you provide a link where I could see the page in a browser? Seeing the page in a browser will help me see what is going wrong.

Sign in to reply to this post

Armen

Link

add-product.php

Sign in to reply to this post

Jason ByrnesWebAssist

When I view source of your page, I do not see the script that should be created by the Create Dynamic Array behavior. the dynamic array for the child list is not being created.

This suggests that the there is either an error on the page, or the SQL for the recorsdset is not returning any results.

hre are a few things to try for troubleshooting:


1: add the following at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




2 add this code after the body tag:

php:
<?php

echo("Today is: ".date()."<br />");
echo(
"rsSub Total Rows: ".$totalRows_rsSub);
?>




this will write any php errors to the screen and tell us how many rows are being returned by the recordset that is used for the dynamic array.

Sign in to reply to this post

Armen

As per your request, I've added the code to the page.

Sign in to reply to this post

Jason ByrnesWebAssist

OK, now i see the dynamic array in the code, you can remove the debug code I had you add now.


In the souce, I see the following:

<!--function WA_ClientSideReplace(theval,findvar,repvar)     {



change that to:

<!--
function WA_ClientSideReplace(theval,findvar,repvar) {



having them on the same line is causing the function to not be declared.

Sign in to reply to this post

Armen

Made the changes... still nothing.

Sign in to reply to this post

Jason ByrnesWebAssist

viewing the source, you have changed the end of the script which removed a couple of closing tags.


change:

if (targetselect.options.length > 0)     {
targetselect.options[0].selected = true;
/* BEGIN Advanced HTML Editor */
var BaseURL = "../";
/* END Advanced HTML Editor */


to:

if (targetselect.options.length > 0)     {
targetselect.options[0].selected = true;
}
}
/* BEGIN Advanced HTML Editor */
var BaseURL = "../";
/* END Advanced HTML Editor */
Sign in to reply to this post

Armen

that seems to have done it, Thanks.

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