|
-
Mar 29th, 2004, 03:53 PM
#1
Thread Starter
Addicted Member
VBScript passing string params from HTML
I have a client side vbscript function which accepts 2 parameters.
I call this function from HTML from an Href. Everything works fine until i send a parameter where one of the strings has a space in it. I get an error on the page. The string needs to be quoted, when i put single quotes it wont work and when i put double quotes the HTML thinks its ending the string.
ANY IDEAS???
-
Mar 29th, 2004, 06:02 PM
#2
I wonder how many charact
Code:
navigateurl = "myvbscriptfunction('my string')"
Do you mean like this?
-
Mar 31st, 2004, 03:30 PM
#3
Thread Starter
Addicted Member
THat is exactly what the problem was. I figured it out. What I had to do was put the outer quotes as single quotes and the function call double quotes...
<a href='somefunction("params")'></a>
that worked.
I guess html allows single and vbscript only allows double quotes.
Thanks for your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|