Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick VBScript Function Question

Status
Not open for further replies.

LizardKingSchwing

Programmer
Oct 12, 2001
96
NL
I have a function in an .ASP page which is called run() and it takes 3 string parameters e.g run('blah','blah'm'blah')
so on the OnClick of one of my buttons on the page I call the run command
with some strings however - to my bemusement I have found that if there are spaces in the string parameters the I get a "Unterminated String Constant" error! - Is there a way around this - Is there a way to stop this from occuring it happens when below is output

<INPUT TYPE=&quot;BUTTON&quot; VALUE=&quot;Yes&quot; Name=&quot;Yes&quot; OnClick=run('AC101 s0/0','Ash 2948G','coo2')>

Any tips etc. will be greatfully received

cheers

LK--<
 
Since I use Javascript for web page design for cross browser functionality, you'll have to help me with this answer. Should there be double quotes around what they onclick event handler is supposed to do?

OnClick=&quot;run('AC101 s0/0','Ash 2948G','coo2')&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top