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

DataAssist Search: change form element

Thread began 5/13/2010 3:14 pm by mr hankey | Last modified 5/14/2010 3:22 pm by Eric Mittman | 626 views | 1 replies |

mr hankey

DataAssist Search: change form element

Hi,

What is the best way to create a drop down menu which will change the results on the page?

Say for example i have an employees recordset on my page which shows:

first name
last name
dob
Country
salary

i want to create a menu which would then change the recordset to show salary = 30000 or 40000

Do i have to create multiple recordsets with a WHERE clause that when the menu selects that it changes to the where clause and if so how do i achieve this?

Many thanks

Sign in to reply to this post

Eric Mittman

You should not have to do any manipulation of the sql or recordset to achieve this. The best way to go about this is to start with a search form that is searching this column in the recordset. So you should setup the search criteria on your results page first, ensure that you are searching the correct column and that you are looking for a numeric value that is equal to the entered value. For the entered value put the form field that the value should be entered into.

Once you have it working with a regular input you can then update it to be a select list. You just add in the labels and set the values to the values that you want to search on. If you want to make it update the results automatically is more advanced. You will need to add some js code into the onchange event that submits the form.

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