simon551
IS-IT--Management
- May 4, 2005
- 249
Hi. I'm trying to use the spry library to accomplish the changing of a dataset dynamically based on a selection in a drop-down. I can do this no problem. Now I'm trying to change 2 datasets based on the selection and running into problems. I think if I could get this little javascript right it would be easy but not sure.
this works:
I want to modify as so:
which is not working. Is this something that looks to you to be doable?
this works:
Code:
<select onchange="dsProj.setURL(this.value); dsProj.loadData(); ">
<option value="../sources-xml/et_lists.php?itemSetting=1" >Regular </option>
<option value="../sources-xml/et_lists.php?itemSetting=2" >Overhead </option>
</select>
Code:
<select onchange="dsProj.setURL("../sources-xml/et_lists.php?"+this.value); dsProj.loadData();" >
<option value="itemSetting=1" >Regular </option>
<option value="itemSetting=2" >Overhead </option>
</select>