generating javascript arguments inside ASP script
I need to response.write a javascript procedure in a dynamic ASP page. Everything is fine until I need to include a function argument in the string. The quotes, or double ticks, ' , don't seem to work correctly.
When the soucre of the new ASP page is viewed, the argument is displyed as ONMOUSEOVER='show_hand('ANorUp1')'
This doesn't work in the browser until I change it to ONMOUSEOVER="show_hand('ANorUp1')"
Any ideas how to fix this in the ASP script?
The entire respone.write line is below:
response.write "<div id='" &fixture_name2& "' style='background-color:yellow; position:absolute; left:"&VBXCord& "; top:"& VBYCord&"; width:" &width2&"; height:"& height2& "; text-align:center;' ONCLICK='" &fixture_name2 & "()' ONMOUSEOVER='show_hand('" &fixture_name2& "')' ONMOUSEOUT='show_default()'></div>"
Thanks, Cookster
|