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 5 of 5
  1. #1
    New Coder
    Join Date
    Mar 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Replacing Double QUOTES " " ??

    Hi again

    I wanted to add this link to a toolbar Im working on but I cant have Double Quotes.

    Code:
    javascript:if(o=document.getElementById('ldf')){void(o.outerHTML='');}else{void(document.body.innerHTML+='<iframe id="ldf" scrolling="no" allowtransparency="true"%20src="http://milov.nl/code/linedraw.html"%20style="position:absolute;z-index:100;top:0px;left:0px;width:100%;height:3000px;"></iframe>')}

    How would this work without double quotes? Is it possible?

    I've searched and found something about replacing doubles with
    javascript:document.write(q+'double quoted'+q)
    but I tried and could not get it.

    Any Ideas?

    Thanks


    (the script is originaly from milov I think, called linedraw. Lets you draw on this page )

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use a single quote and escape with a backslash: \'

  • #3
    New Coder
    Join Date
    Mar 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Willie.

    Could you show me how it should look if you got a sec. Im pretty retarded.

    Thanks!
    Last edited by ghoulardi; 06-19-2004 at 06:20 AM.

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this, I used Search & Replace ( " --> \' ):

    Code:
    javascript:if(o=document.getElementById('ldf')){void(o.outerHTML='');}else{void(document.body.innerHTML+='<iframe id=\'ldf\' scrolling=\'no\' allowtransparency=\'true\'%20src=\'http://milov.nl/code/linedraw.html\'%20style=\'position:absolute;z-index:100;top:0px;left:0px;width:100%;height:3000px;\'></iframe>')}

  • #5
    New Coder
    Join Date
    Mar 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Dude, the code you put works great, thanks!
    But im using reghacker amd it alerts this is
    an invalid backlash and only
    \\. -- \", -- \n, -- \t, or \000 through \400
    can be used.

    Is it possible to use these to replace, in js?
    Last edited by ghoulardi; 06-19-2004 at 07:36 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
    •