473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Onchange function help

1
Hi all,
I'm after some guidance for a friend of a friend so to speak, JavaScript isn't my thing so i can't help but i'm hoping someone can. The email i recieved is as follows;

I have a drop down list and need to know where to put the function, along with what variable to load.

Here’s the data base:
Shcema=quote-system
Tables=Manufacturer
Model
Spec
Extras
URL.Param variables= Manufacturer

Model
Spec
Extras

So, the first box contains all the manufacturers, second box model, third spec, forth extras. When a user selects, for example, Honda, the first box will execute the onchange function and load the variable into the second box (model), so the user can then select the corresponding model for Honda, then, the second box executes the onchange and loads the spec of selected model into the third drop down box, etc etc.

So here’s the first box’s code:
Expand|Select|Wrap|Line Numbers
  1. <select name="make 2" id="make 2">
  2.       <option value="--please select--">--please select--</option>
  3.       <cfoutput query="rsManufacturer">
  4.         <option value="#rsManufacturer.manufacturer#">#rsManufacturer.manufacturer#</option>
  5.  
  6.       </cfoutput>
  7.     </select>
But would also need to carry the variables across into the second and third boxes etc.

Can any one offer some help?
Thanks in advance.
Oct 10 '08 #1
1 1349
This site should be helpful in figuring it out http://www.mattkruse.com/javascript/dynamicoptionlist/.
Oct 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: R.G. Vervoort | last post by:
I am using a javafunction (onclick in select) in which i am calling a function in php (thats why i send this to both php and javascript newsgroups). in the onclick i call the function...
2
by: kie | last post by:
hello, when i create elements and want to assign events to them, i have realised that if the function assigned to that element has no parameters, then the parent node values can be attained. ...
2
by: Jeff | last post by:
Hi Everyone, I'm having a problem with onChange. The tag looks like: <input:text bean = "" name="X" label="Y" attributesText="onChange=\"clear()\""> </input:text> if i replace, onChange...
5
by: Frowning Freezer | last post by:
I have a function in an external javascript file which I fire from an onChange event in a <SELECT> tag. Everything works fine in IE but not in Netscape/Mozilla/Opera. This is my onChange statement:...
4
by: rick | last post by:
The following basic script works fine in firefox by not in IE. Can anyone spot the problem? In IE I can only delete the first line but not the lines created by javascript. Also, look at the HTML...
4
by: Bart van Deenen | last post by:
Hi all I have a script where I dynamically create multiple inputs and selects from a script. The inputs and selects must have an associated onchange handler. I have the script working fine on...
4
by: Zeebra3 | last post by:
Here goes: I have a web form with several asp:dropdownlists, with which, when selection is changed I want to fire an event defined in some clientside js. The content of the clientside code is...
3
by: jab3 | last post by:
Hello. I"m new to this group, and to JavaScript in general, so please forgive me if I breach local etiquette. I'm trying to implement some client-side 'dynamic' validation on a form. I'm having...
1
by: Mel | last post by:
Warning: Newbeeeeeeeeeee I have created my form elements already. after form creations i am attempting to add an onChange to one of my Select(s) with ID=S100 here is the code:...
21
by: Leena P | last post by:
i want to basically take some information for the product and let the user enter the the material required to make this product 1.first page test.php which takes product code and displays...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.