J
John
Hi all,
Can anyone help with this please?
Firstly, here is the code....
<script type="text/javascript">
var b = Request.QueryString("page")+".htm";
var a='"';
var productstoshow=a+b+a;
document.getElementById('productlist').src=productstoshow;
document.frames['productlist'].location.reload(true);
</script>
The variable 'productstoshow' contains the full name of a web page as well as the quotes.....eg
"test.htm"
I have an iFrame called 'productlist'
What the last two lines of code is suppose to do is change the 'src=' value of the iFrame, and
reload it containing the new htm page but it doesn't.
I have searched for and tried other variations but none work.
Any ideas anyone?
TIA.
Can anyone help with this please?
Firstly, here is the code....
<script type="text/javascript">
var b = Request.QueryString("page")+".htm";
var a='"';
var productstoshow=a+b+a;
document.getElementById('productlist').src=productstoshow;
document.frames['productlist'].location.reload(true);
</script>
The variable 'productstoshow' contains the full name of a web page as well as the quotes.....eg
"test.htm"
I have an iFrame called 'productlist'
What the last two lines of code is suppose to do is change the 'src=' value of the iFrame, and
reload it containing the new htm page but it doesn't.
I have searched for and tried other variations but none work.
Any ideas anyone?
TIA.