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

Retaining Dynamic Dropdowns Search options on page reload

Thread began 3/05/2011 7:56 am by paul386190 | Last modified 3/10/2011 12:25 pm by paul386190 | 2015 views | 5 replies

paul386190

Hi Dave

Thank you so much for that, that's worked a treat. I've now added the following three to the body onload in this order...

Selected in list parent (dropdown1) to <?php echo((isset($_GET["parent"]))?$_GET["parent"]:"") ?>

Populated List from Array - Source: level2 - Source List: parent - Target List: child

Selected in list child (dropdown2) to <?php echo((isset($_GET["child"]))?$_GET["child"]:"") ?>


This has now sparked off a couple of other similar issues...

The list of search results which appears simply displays the level3 names and beside each name is a link to an 'update record' page where the client can change the details of this record and then return to the original page which has the search and search results. When I make an update and return to the page, it still displays the correct search results but it hasn't retained the chosen options in either of the dropdowns. Would it require me to pass some kind server variable through to the 'update record' page and then back through to the search results page?

Secondly, the list of search results can be reordered - I've implemented the Table Drag and Drop JQuery plugin to achieve this - so the client can drag one of the results in the list up or down within the list and then clicks an 'Update Order' button. This runs a php page and reloads the search/search results page. I've tried applying the same three behaviours to the onClick of this button, but the 2 dropdowns have lost their selected options when the page reloads.


Any advice you can offer would be greatly appreciated and thank you again for your initial resolution.
Kind regards
Paul

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