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

Reset Child menu

Thread began 12/06/2009 10:46 am by mrosa394982 | Last modified 12/07/2009 4:27 pm by Eric Mittman | 1016 views | 1 replies |

mrosa394982

Reset Child menu

Hi,
as you can see at this url (Registrazione.php), i have a parent 'Regione' and a child 'Provincia'. The menues are dynamic with only one static option (value 0). When i choose the region, everything is ok. But when i come back to the static option '0' (in the 'Regione' menu), the child becomes empty. I can correct this behaviour by adding in the recordset all the child element with the PARENT_ID = 0. Is there a way to do it automatically? Finally, i would appreciate that when i select the parent id = 0 ('Seleziona una regione'), i can see all the items in the child menu.

Thank you

Sign in to reply to this post

Eric Mittman

The problem occurs for you when you go back to the page correct? If you would like this regione to maintain it's value you will need to store the value in a variable, then set the selected to that value with the dynamic properties of this select list. This will ensure that it retains the value that was selected. To make the child list update accordingly you would need to execute the function call that occurs in the onChange event in the regione select list. You would want execute this onLoad if there is a value for the regione select list.

As for getting the list to show all of the possible child values by default you would need to dynamically populate this child list with a recordset for all of these values. Then when the user makes a selection from the first list it should filter and limit the selections available on the second list. If I have misunderstood the situation and what you are asking for please let me know and describe a little more about the situation.

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