F
Frank
When I used IE 6.0 to view the ASP page on Window 2000
server PC, I encountered the error message: "Expected end
of statement".
The ASP page code is as:
******************************************************
<script language="VBScript">
function vb_Test(ptValue)
vb_Test = ptValue
end function
</script>
<HTML>
<BODY onLoad="document.body.style.cursor='default';">
test text
</BODY>
</HTML>
******************************************************
This problem only happens when the VBScript code block is
at the beginning of the ASP page.
Seems the browser treats the single quote that exists in
the inline event JavaScript code as a comment symbol in
VBScript and it would not tolerate it.
To solve this problem:
1. Add a block of JavaScript code block above that
VBScript code block.
2. Remove the single quote in the inline event code.
3. Move the inline event code to a JavaScript function.
Any one has any idea or aware of this problem?
Thanks,
Frank
..
server PC, I encountered the error message: "Expected end
of statement".
The ASP page code is as:
******************************************************
<script language="VBScript">
function vb_Test(ptValue)
vb_Test = ptValue
end function
</script>
<HTML>
<BODY onLoad="document.body.style.cursor='default';">
test text
</BODY>
</HTML>
******************************************************
This problem only happens when the VBScript code block is
at the beginning of the ASP page.
Seems the browser treats the single quote that exists in
the inline event JavaScript code as a comment symbol in
VBScript and it would not tolerate it.
To solve this problem:
1. Add a block of JavaScript code block above that
VBScript code block.
2. Remove the single quote in the inline event code.
3. Move the inline event code to a JavaScript function.
Any one has any idea or aware of this problem?
Thanks,
Frank
..