T
Troy Jerkins
Hi all,
I've been struggling for hours with this one and could really use some help
converting the code.
The HTML portion below works exactly the way I want it to:
<a language="vbs"
href=vbscript:window.open("http://web/SQL/update.asp?name=somename","newwin"
,"height=450,width=500") >Update</a>
I need to use this in a portion of ASP using the <% %> tags like:
with response
..write "blah"
..write "<a language=vbs
href=vbscript:window.open(http://web/SQL/update.asp?action=update&name=" &
Server.URLEncode(sName) & "&key=" & sKey & ",newwin,height=450,width=500)>"
..write("Update") & "</a>"
..write "blah"
end with
This always generates a warning in IE stating "Problems with this web page
may prevent it from displaying or functioning properly.....". Then a
reference to the script.
Line: 1
CHAR: 17
Error: Expected ')'
Code: 0
URL: <URL containing the script>
I've tried different combo's of quotes and syntax. I've even shaved the <A>
tag down to a simple URL only.
ex - .write "<a language=vbs href=vbscript:window.open("http://www.go.com")
No dice.
.write("Update") & "</a>"
The only thing that I can get to work is
..write "<a language=vbs href=vbscript:window.open()>"
.write("Update") & "</a>"
which opens up a blank window.
Regards,
--Troy
I've been struggling for hours with this one and could really use some help
converting the code.
The HTML portion below works exactly the way I want it to:
<a language="vbs"
href=vbscript:window.open("http://web/SQL/update.asp?name=somename","newwin"
,"height=450,width=500") >Update</a>
I need to use this in a portion of ASP using the <% %> tags like:
with response
..write "blah"
..write "<a language=vbs
href=vbscript:window.open(http://web/SQL/update.asp?action=update&name=" &
Server.URLEncode(sName) & "&key=" & sKey & ",newwin,height=450,width=500)>"
..write("Update") & "</a>"
..write "blah"
end with
This always generates a warning in IE stating "Problems with this web page
may prevent it from displaying or functioning properly.....". Then a
reference to the script.
Line: 1
CHAR: 17
Error: Expected ')'
Code: 0
URL: <URL containing the script>
I've tried different combo's of quotes and syntax. I've even shaved the <A>
tag down to a simple URL only.
ex - .write "<a language=vbs href=vbscript:window.open("http://www.go.com")
No dice.
.write("Update") & "</a>"
The only thing that I can get to work is
..write "<a language=vbs href=vbscript:window.open()>"
.write("Update") & "</a>"
which opens up a blank window.
Regards,
--Troy