Hi,
I have an ASP script that writes a javascript array (works like a charm elsewhere), but this time I am getting an error ("imgsec is not defined"), and not getting the expected results.
This is what is written by the ASP:
This is written in the body of the page:
Thanks for any help.
I have an ASP script that writes a javascript array (works like a charm elsewhere), but this time I am getting an error ("imgsec is not defined"), and not getting the expected results.
This is what is written by the ASP:
Code:
<script type='text/javascript' language='javascript'>imgsec [0] = new Array('8','4');
imgsec [1] = new Array('8','4');
imgsec [2] = new Array('5','B');
imgsec [3] = new Array('9','h');
</script>
This is written in the body of the page:
Code:
<script type="text/javascript" language="javascript">
document.write("<img border='1' src='/images/'" + imgsec[0][1] + ".JPG' width='50' height='50'>");
</script>
Thanks for any help.