Ok, I'm very very new to javascript and am trying to use it with some coldfusion I'm doing.
I'm trying to have a page refresh when a user changes a selection in a drop down list.
Here is the code I have in my HEAD section:
[code=javascript]
function readDateTime(){
var n = datetimeFrm.ed_ dt.selectedInde x; //get selected index value
var val = datetimeFrm.ed_ dt[n].text; //get selected value
alert('You entered: ' + val);
//window.location .reload();
datetimeFrm.tes tingvalues.valu e = val;
alert(datetimeF rm.testingvalue s.value);
}
</script>
[/code]
I have it setup to reload, but I want to pass the "val" in the url.
I want it to be http://www...com?datet ime=val
What syntax do I need to use to load a page so I can pass these values?
I'm trying to have a page refresh when a user changes a selection in a drop down list.
Here is the code I have in my HEAD section:
[code=javascript]
function readDateTime(){
var n = datetimeFrm.ed_ dt.selectedInde x; //get selected index value
var val = datetimeFrm.ed_ dt[n].text; //get selected value
alert('You entered: ' + val);
//window.location .reload();
datetimeFrm.tes tingvalues.valu e = val;
alert(datetimeF rm.testingvalue s.value);
}
</script>
[/code]
I have it setup to reload, but I want to pass the "val" in the url.
I want it to be http://www...com?datet ime=val
What syntax do I need to use to load a page so I can pass these values?
Comment