SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast angelinetky's Avatar
    Join Date
    Oct 2005
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript text displayed on webpage

    Hi,

    Im doing a webpage, which will call the window.open to link to another page. my code is like this:

    <script>window.open("../../mySite/index.jsp?link=<%=link%>","_parent","status=yes,toolbar=no,menubar=no,location=no","true");</script>

    bt when i view bak the page,
    ","_parent","status=yes,toolbar=no,menubar=no,location=no","true");

    this line displayed in the page.

    wat happen to the line of code?

    can anyone give me some guide?

    Thanks & regards,
    Angeline

  2. #2
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks to me like there are illegal JavaScript characters in <%=link%> breaking the script somehow. Have you checked the VBS link variable is 'safe'?

    Cheers,

    G

  3. #3
    SitePoint Enthusiast angelinetky's Avatar
    Join Date
    Oct 2005
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have to put in the <%=link%>. Do u know any other method to avoid this problem?


Bookmarks

Posting Permissions

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