Advertisement

08.30.2008 at 02:24PM PDT, ID: 23691486
[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!

9.4

Add Options to MULTIPLE select boxes from a user maintained js file

Asked by OldHatt45 in JavaScript

Tags: ,

Here is my situation.  I have a form with MULTIPLE select boxes. the select boxes are all named using the following convention "sel" + a Unique identifier.  Example name is selRWorms or selThyroid
I have 25 plus select boxes.  Virtually all of them have nothing but numeric options.  
I have a user that is willing to maintain the options if it's easy.  (As in NO CODE to be modified)
So, what I need is 2 very specific thingss
1.  I need a function in the htm file that can read the js file as shown below or something very similar and populate the the options for each select box.  THe function or code needs to populate the options when the page loads.  Once loaded, the options will not change.  




2. A js file with the options. I was thinking about the format of this js file and I believe I can get away with one little bit of code.   The format I was thinking about is
                         OptionArray[OptVar++] = "SelBoxName", "Option Value", "Option Label"
I can tell her just to copy the stuff to the left of the equal sign and give her instructions on the other 3 parts of the line.  Using this type format, I should be able to create an array that would have all the select box options in the array.  I don't know if this is possible, but I hope so.  The Option Value's are mostly numeric and i know how to deal with that..

Please understand.  I'm pretty new at Javascript.  I also MUST have it with the absolute bare minimum in the js file otherwise I get stuck maintaining the options.  (Not something I am willing to do).

I don't care if the code is in more than 1 function but the js file must be completely separate.

Please do not give me any solutions that include actual code in the js file.

Oh, I did not provide a listing of my code because this is something that is totally separate and is Just to populate select boxes.

If you want some context, build a form with 2 or 3 select boxes with names in a table structure, and you have what my form looks like.  

Thanks

OldHatt45Start Free Trial
 
 
[+][-]08.30.2008 at 02:32PM PDT, ID: 22353294

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.

 
[+][-]08.30.2008 at 02:44PM PDT, ID: 22353316

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.

 
[+][-]08.30.2008 at 02:46PM PDT, ID: 22353319

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.

 
[+][-]08.30.2008 at 05:49PM PDT, ID: 22353714

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

Zone: JavaScript
Tags: Javascript, IE 4+
Sign Up Now!
Solution Provided By: steveberzins
Participating Experts: 3
Solution Grade: A
 
 
[+][-]08.30.2008 at 06:11PM PDT, ID: 22353760

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.

 
[+][-]08.30.2008 at 06:12PM PDT, ID: 22353763

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

 
[+][-]08.31.2008 at 03:49AM PDT, ID: 22354602

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.

 
[+][-]08.31.2008 at 01:18PM PDT, ID: 22356221

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.

 
[+][-]08.31.2008 at 01:29PM PDT, ID: 22356261

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 / EE_QW_2_20070628