hello,
i am trying to pass a url from one page into another to have it set as the source of the iframe.
here is the url
.......................................................
here is the code i am trying to use on the page that opens (info_frame1)
<script type="text/javascript">
function getQueryStringVars() {
var server_variables = {};
var query_string = window.location.search.split( "?" )[ 1 ];
}
window.onload = function() {
ifr = document.getElementsByTagName( "iframe" )[ 0 ];
ifr.src = getQueryStringVars();
}
</script>
.................................
and the iframe code:
<IFRAME name =
"mainbody"
src = ""
width = "100%"
height = "450"
scrolling = "auto"
frameborder = "1"
align = "middle"
marginwidth = "0"
marginheight = "0"></IFRAME>
Any help would be appreciated,
Rhino
i am trying to pass a url from one page into another to have it set as the source of the iframe.
here is the url
.......................................................
here is the code i am trying to use on the page that opens (info_frame1)
<script type="text/javascript">
function getQueryStringVars() {
var server_variables = {};
var query_string = window.location.search.split( "?" )[ 1 ];
}
window.onload = function() {
ifr = document.getElementsByTagName( "iframe" )[ 0 ];
ifr.src = getQueryStringVars();
}
</script>
.................................
and the iframe code:
<IFRAME name =
"mainbody"
src = ""
width = "100%"
height = "450"
scrolling = "auto"
frameborder = "1"
align = "middle"
marginwidth = "0"
marginheight = "0"></IFRAME>
Any help would be appreciated,
Rhino