Results 1 to 4 of 4

Thread: Using JavaScript esc char \ **Resolved**

Threaded View

  1. #1

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772

    Talking Using JavaScript esc char \ **Resolved**

    I'm trying to write out some javascript on the server ie below but it returns an invalid character error can anyone see where I'm going wrong here?

    Code:
    <td><input name=Dir_ID value=>
    <%
    Response.Write("<a href='http://directory.intra.bt.com/cgi/startup.cgi")
    If Len(Request.Cookies("UserID")) Then
    Response.Write("?search_for=" & Request.Cookies("UserID"))
    End If
    
    Response.Write("' onclick='javascript:openWin(this.href, 1);return false;' Title='Search for a Directory ID' onmouseover='window.status=\'\Search for a Directory ID\'\; return true' onmouseout='window.status=\'\'; return true'>Get ID </a>")
    %></td>
    Once run this is the result after the error

    Code:
    <td><input name=Dir_ID  value='521282'>
    <a href='http://directory.intra.bt.com/cgi/startup.cgi' onclick='javascript:openWin(this.href, 1);return false;' Title='Search for a Directory ID' onmouseover='window.status=\'\Search for a Directory ID\'\; return true' onmouseout='window.status=\'\'; return true'>Get ID </a>
    </td>
    Last edited by aconybeare; Oct 16th, 2002 at 03:53 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width