S
Steve Kershaw
Hi,
I need to pass a value from a hidden input:
<input id="hiddentxtWidth" type="hidden" value="1065" />
to a JavaScript function.
I've tried the following:
<script type="text/javascript" >
window.resizeTo(<%= hiddentxtWidth.value %>, <%=
hiddentxtHeight.value %>);
</script>
But I get a "The name 'hiddertxtWidth' does not exist in the current
context" error.
I would very much like to store the page width and height in the
Web.Config file and pass it to the JavaScript function but I don't
know how to do that.
Any suggestions?
I need to pass a value from a hidden input:
<input id="hiddentxtWidth" type="hidden" value="1065" />
to a JavaScript function.
I've tried the following:
<script type="text/javascript" >
window.resizeTo(<%= hiddentxtWidth.value %>, <%=
hiddentxtHeight.value %>);
</script>
But I get a "The name 'hiddertxtWidth' does not exist in the current
context" error.
I would very much like to store the page width and height in the
Web.Config file and pass it to the JavaScript function but I don't
know how to do that.
Any suggestions?