Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2007
    Location
    FL
    Posts
    35
    Thanks
    4
    Thanked 0 Times in 0 Posts

    JScript replace double quotes (")

    i am trying to replace (") with " but its giving a error i don't know what i am doing wrong.

    Code:
    String.prototype.double_quotes = function()
    {
    	return this.replace("""",""");
    }


    Microsoft JScript compilation error '800a03ee'
    Expected ')'
    /include/functions.asp, line 3
    return this.replace("""",""");

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,720
    Thanks
    80
    Thanked 4,514 Times in 4,478 Posts
    http://www.aspmessageboard.com/showthread.php?t=234095

    *PLEASE* stop cross posting. It's bad netiquette. Eventually, people will simply stop answering you, because they will assume that somebody in another forum will answer.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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