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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending a Vbscript value to a javascript function 1

Status
Not open for further replies.

tmcneil

Technical User
Joined
Nov 17, 2000
Messages
294
Location
US
I have this function called from an asp page drop-down box.

Code:
onChange="ValidateSel(this, ‘<%=pivotflag%>’, ‘<%=syncflag%>’);

The issue is, that pivotflag and syncflag could be either yes or no. I am getting an illegal character error and it looks like this

Code:
ValidateSel(this, ‘Y’, ‘N’);

I would like to evaluate the pivotflag and syncflag and then do something with the drop-downs. So, what's wrong with the syntax?

Thanks,
Todd
 
what are those single-quotation marks?

try copying/pasting this:

Code:
ValidateSel(this, '<%=pivotflag%>', '<%=syncflag%>');



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Frontpage put those in when I tried to use single quotation marks. Weird.... Your code change worked just fine.

Todd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top