Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 24th, 2007, 03:56 PM
Registered User
Join Date: Jun 2004
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access ASP code inside Javascript deean JSP Basics 1 June 20th, 2008 02:00 PM
Problem passing multiple arguments to php script method PHP How-To 0 February 8th, 2006 09:03 AM
ASP variable inside my JavaScript crmpicco Javascript How-To 1 June 4th, 2005 12:17 AM
How to use "if statment'' inside asp script method Classic ASP Databases 3 March 21st, 2005 01:47 AM
set ASP variable values inside Javascript crmpicco HTML Code Clinic 1 March 9th, 2005 12:32 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.