Advertisement

02.21.2007 at 04:21PM PST, ID: 22405196
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.6

"onclick" within <option> tag of listbox?

Asked by dklauk in Active Server Pages (ASP), JavaScript, Dynamic HTML (DHTML)

Tags: , ,

I can't seem to get an "onclick" to work right when placed inside a <option> tag in the following scenario.
(I use classic asp, VBScript, and javascript.)
I want to populate 2 dropdowns (list boxes) with items (file names with extendion, e.g., address.asp, contact.asp, etc.) from a SQLsever db inside a .asp  file.  I then want the user to click on an item in either listbox and to then programmatically open the selected .asp in a new browser window.

The following code does the db Select's ok and does populate the 2 listboxes with the fielnames but when I click an item in a listbox I can't seem to get it to "open" the selected .asp.  Here's the code:

=== === === === === === === ===
code to do the sQL Select from the db...then...
Response.Write "<center><form method=post name='propsearch' id='propsearch' action='#'>"
Response.Write "<center><tr><td  height=""20""  width=""25%"" valign=""middle"" align=""center"" >"
Response.Write "<select name='propstyle' id='propstyle' >"
Response.Write "<option value='' SELECTED>Select a webpage</option>"

Do While Not oRS.EOF
Response.Write "<option  value='" & oRS("Page_Name") & "'>" & oRS("Page_Name") & "</option>"
oRS.MoveNext
Loop
oRS.MoveFirst
' now complete the <select> on listbox 1
Response.Write "</select>"
Response.Write "</td>"
Response.Write "<td  height=""20""  width=""25%"" valign=""middle"" align=""center"" >"
' set up to do listbox #2
Response.Write "<select name='ptype2' id='ptype2'><option value='' SELECTED>Select a webpage</option>"
Do While Not oRS.EOF
'Response.Write "<select name='propstyle' id='propstyle' onchange='populateTheThirdDropdown(this.options[this.selectedIndex].value)'>"
Response.Write "<option  value='" & oRS("Page_Name") & "'>" & oRS("Page_Name") & "</option>"
'Response.Write "<option value='" & oRS("Page_Description") & "'>" & oRS("Page_Description") & "</option>"
oRS.MoveNext
Loop
oRS.Close
' complete 2nd listbox
Response.Write "</td></tr></table>"
Response.Write "</form></center>"
=== === === === === === === Start Free Trial
 
Loading Advertisement...
 
[+][-]02.21.2007 at 05:04PM PST, ID: 18583616

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.21.2007 at 05:06PM PST, ID: 18583622

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Active Server Pages (ASP), JavaScript, Dynamic HTML (DHTML)
Tags: asp, option, select
Sign Up Now!
Solution Provided By: fritz_the_blank
Participating Experts: 3
Solution Grade: B
 
 
[+][-]02.21.2007 at 05:16PM PST, ID: 18583658

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.21.2007 at 05:52PM PST, ID: 18584102

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.21.2007 at 05:53PM PST, ID: 18584134

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.21.2007 at 06:30PM PST, ID: 18584540

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.21.2007 at 07:15PM PST, ID: 18584781

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 08:05AM PST, ID: 18588746

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 01:36PM PST, ID: 18591772

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 01:52PM PST, ID: 18591916

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 01:53PM PST, ID: 18591922

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 02:02PM PST, ID: 18591990

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 02:09PM PST, ID: 18592036

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 02:21PM PST, ID: 18592122

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 03:42PM PST, ID: 18592642

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 05:22PM PST, ID: 18593045

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2007 at 06:35PM PST, ID: 18593367

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.23.2007 at 06:17AM PST, ID: 18596037

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.23.2007 at 09:02AM PST, ID: 18597446

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.23.2007 at 09:09AM PST, ID: 18597496

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.23.2007 at 09:15AM PST, ID: 18597539

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.23.2007 at 10:03AM PST, ID: 18597888

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32