Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML 4.01 Transitional
Message
 
To
25/06/2003 09:47:42
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00803742
Message ID:
00803835
Views:
15
>Hi
>
>I am trying to achieve compatibility with this specification and there is one thing I'm having trouble with. Some script elements in my html code have source defined as an .asp page with parameters and this does not appear to go well with the w3c's validator:
>
>My script is defined like this:
>
><script type="text/javascript" src="myscript.asp?par1=3&par2=3">
>...some code...
></script>
>
>
>I get a following response from the validator:
>
>Line 32, column 94: cannot generate system identifier for general entity "par2"
> ...myscript.asp?par1=3&par2=3
>
>It appears that the .asp parameters are interpreted as entities due to the "&" parameter separator in the url, which of course is not the case. Any way of avoiding this?
>
>Thanks

Would this work?
Header area...
< %
Dim sPar1 
sPar1 = 3
Dim sPar2 
sPar2 = 3

%>

<script type="text/javascript" src="myscript.asp?Par1=< %=sPar1 & "&Par2=" & sPar2 %>">
...some code...
</script>
There is a space between the < % which should be removed.

Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform