close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamic Fropdown Results(Detail Page)

Thread began 11/10/2009 12:29 pm by latonyat1275438 | Last modified 12/01/2009 2:14 pm by Eric Mittman | 3677 views | 5 replies |

latonyat1275438

Dynamic Dropdown Results(Detail Page)

How do I pass the info to a results page. When building the results page how to get the parameters from the dropdown list. I am working in Dreamweaver CS3

I have created a blank detail page. What do I not now?

Sign in to reply to this post

Eric Mittman

You can pass info along to your results page by either having a form post to this page or by using the query string to send info.

If you need to get at the information that is posted to your results page you can add in the form data binding in the bindings tab, just choose the page that is posting to your results page, then you can drag and drop the posted values onto your page.

The details page should have a recordset that filters for only the selected record on the results page. You can do this by having a link to the detail page from the results page for each entry you see. This link should pass the id of the record as a parameter like this:

<a href="details.php?id=<your id value>">link to details page</a>

Do you have the DataAssist tool? If so this tool can create a set of pages like this for you including a search, results, and detail page.

Sign in to reply to this post

edrosenthal350859

those posting values are which ones ?

I have a similar situation, where i have 3 drop downs and after the values are collected ---
( and that is my question, in which of the javascript arrays are these values, and how to pass them in a bindings area? ). Or are they obtainable in the php area of the code? or both?
once i have that information, i envision the action=post with those values.
the results page will have to create another record set of values based on those parameters, after creating some sql to get the data from another table.
ie in my case i will have state,county,city on a master type of page.
the sql will get contractor data based on those values and put in place the results on the results page.

Sign in to reply to this post

Eric Mittman

You will not be able to interact directly with the data in the dynamic arrays that are created. These arrays are only for the internal use of Dynamic Dropdowns to be used with these behaviors. Any direct interaction with these arrays will be a custom endeavor.

In a standard scenario you would have the dynamic dropdown lists in place and have them filter the selections available based on the selection in the previous menu. Once the selections have been made you can have the values for the selections posted to whatever page is listed in the action of the form.

Sign in to reply to this post

edrosenthal350859

those posting values are which ones ?

you sd:
"you can have the values for the selections posted"
what values are those? in the internal function there is a value returned
that i want to use in the post action of the form, sending those values.
they exist on the form, and are returned by those internal functions.
do i get those values using a javascript function using selectedIndex stuff, or is there
a better way?

Sign in to reply to this post

Eric Mittman

Whatever is specified as the value for the select list is what will be posted to the page specified in the action of the form. If you want to get at the label of the select list you should add in some hidden form elements and use some js code to set the selected text to the value of these elements. You can then reference the posted values of these elements. I'm including an example page with some js code in it that you can use to set the value of these hidden form elements. Let me know if you have any troubles with any part of this.

Attached Files
set the label of a select list to the value of another element.zip
Sign in to reply to this post

edrosenthal350859

Please discuss further...

This post has been deleted.

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