slamothe
02-26-2009, 08:23 PM
I have this script and select box already working on a CFMX7 site
What I need is to add a ##Track%20Name to the src to pass the"Name anchor"
to the content page of the Iframe to force where it opens the page within the Iframe.
<script>
function updateContent() {
var foodd = document.getElementById("foo");
var foovalue = foodd.options[foodd.selectedIndex].value;
if(!foovalue) return;
var myframe = document.getElementById("myiframe");
myframe.src = "ilayer.cfm?id="+foovalue;
}
</script>
I tried this to set the anchor tag and it killed the script:
myframe.src = "ilayer.cfm?id="+foovalue;&##Track%20Name"
The second # is to close # in coldfusion, it works fine outside of the script
The ID portion must stay as it forwards the select VAR to receiving page
for the sql query
Does the script need to be modified to work?
Thanks in advance for any help,
Working script here:
www.woostatserver.com/laps/default4.cfm
Any other suggestion appreciated,
Steve
What I need is to add a ##Track%20Name to the src to pass the"Name anchor"
to the content page of the Iframe to force where it opens the page within the Iframe.
<script>
function updateContent() {
var foodd = document.getElementById("foo");
var foovalue = foodd.options[foodd.selectedIndex].value;
if(!foovalue) return;
var myframe = document.getElementById("myiframe");
myframe.src = "ilayer.cfm?id="+foovalue;
}
</script>
I tried this to set the anchor tag and it killed the script:
myframe.src = "ilayer.cfm?id="+foovalue;&##Track%20Name"
The second # is to close # in coldfusion, it works fine outside of the script
The ID portion must stay as it forwards the select VAR to receiving page
for the sql query
Does the script need to be modified to work?
Thanks in advance for any help,
Working script here:
www.woostatserver.com/laps/default4.cfm
Any other suggestion appreciated,
Steve