Invalid Character in VBScript

Author Message
rowdy19

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 12/5/2011
  • Status: offline
Invalid Character in VBScript Tuesday, December 06, 2011 5:07 AM (permalink)
0
Get invalid character on
wscript.echo "<div xmlns=" & Chr(34) & "http://www.w3.org/1999/xhtml"& Chr(34) & ">"
Should look like
<div xmlns="http://www.w3.org/1999/xhtml">
 
Does anyone know why this does not work? I'm sure I have to escape something differently.
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    Re:Invalid Character in VBScript Tuesday, December 06, 2011 6:31 AM (permalink)
    0
    Works perfectly fine for me. Sure that is the line with the error?
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      TNO

      • Total Posts : 2094
      • Scores: 36
      • Reward points : 0
      • Joined: 12/18/2004
      • Location: Earth
      • Status: offline
      Re:Invalid Character in VBScript Thursday, December 08, 2011 4:19 AM (permalink)
      0
      rowdy19


      Get invalid character on
      wscript.echo "<div xmlns=" & Chr(34) & "http://www.w3.org/1999/xhtml"& Chr(34) & ">"
      Should look like
      <div xmlns="http://www.w3.org/1999/xhtml">

      Does anyone know why this does not work? I'm sure I have to escape something differently.

       
      This is equivalent:
      wscript.echo "<div xmlns=""http://www.w3.org/1999/xhtml"">"
      
      To iterate is human, to recurse divine. -- L. Peter Deutsch
       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9