close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamic Dropdown cache

Thread began 8/24/2009 4:15 am by cusher387258 | Last modified 1/14/2010 10:50 am by Jason Byrnes | 3528 views | 7 replies |

cusher387258

Dynamic Dropdown cache

Hi, I currently have 3 dropdown menu's created.

Menu 1 displays area
Menu 2 displays places within that area from Menu 1
Menu 3 displays places within Menu 2

This works fine. My problem is that when the form is submitted and the user returns back to this page, menu 2 & 3 are no longer populated. Menu 1 is because it is a dynamic list.

Even though the original option selected is displayed when you return the page, nothing will happen with the other menu's because they are only generated on the onChange event.

Is there any easy way to resolve this.

Also, is there a way to keep a static value when using dynamic data. For menu 2 & 3 at the moment i have a static value of i.e "Please select" but on the onChange event the menu's are populated and the static value removed.

Any help much appreciated,

Colm

Sign in to reply to this post

Jason ByrnesWebAssist

You need to add a populate List From Array and Set Selected In List behavior for the the second and third menus to the onLoad Event of the Body tag.



TO keep the initial option, In the Populate List from array behavior, set the Leave Top: option to "1". this tells it to leave the first option in the list when populating the list from the array.

Sign in to reply to this post

aaron322044

[QUOTE=Jason Byrnes;13599]You need to add a populate List From Array and Set Selected In List behavior for the the second and third menus to the onLoad Event of the Body tag.

What does "onLoad Event of the Body tag". I am selcting the behaviour and applying it to the child dropdown list. I only see onClick etc. Should I be clicking on something else to apply the behaviour to?

Sign in to reply to this post

Jason ByrnesWebAssist

Select the body tag in the tag selector to apply the behavior to the onLoad event.

Sign in to reply to this post

cusher387258

thanks for the reply jason, i'll try that today

Sign in to reply to this post

cusher387258

Jason, thanks a million. worked great.

Sign in to reply to this post

cusher387258

Hi Jason, just wondering, when i 'set the selected in list' for the body onLoad, what would i set the value as, because it would have been in the array and not from the database.

The lighting bolt just gives values from the db.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

When the form is submitted, are the values stored in the database?

If so, create a recordset to retrieve them to repopulate the lists.

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