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 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    88
    Thanks
    10
    Thanked 0 Times in 0 Posts

    bookmarklet name is not correct

    I have troubles with the name of a bookmarklet when I drag it to the favorite bar in FireFox. The name is “javascript:document” this is not correct.
    Can someone tell me why this is happening? The javascript code is beneath. It should be “ TWEET IT” like the title is.

    <a href=\"javascript:document.write('<html><head><title>{$txt_short_url}</title></head><body><form name=\\'urlform\\' action=\\'http:\/\/twiturl.nl\\' method=\\'post\\'><input type=\\'hidden\\' name=\\'u\\'
    value=\\'' + window.location.href + '\\' /></form></body></html>');document.forms[0].submit();\" title=\"TWEET IT!\" alt=\" TWEET IT!\"><img src=\"../template/default/image/ie.png\" border=\"0\" /></a>


    The url is http://www.twiturl.nl
    Last edited by boemboem; 06-23-2009 at 03:01 PM.

  • #2
    Regular Coder
    Join Date
    Mar 2008
    Posts
    235
    Thanks
    6
    Thanked 21 Times in 20 Posts
    IIRC the bookmark prog actually grabs the content inside the A tags, and as your image has no alt there is no text there, try giving your IMG tag an alt tag instead of your A tag.

    hope that helps!
    Andrew Sharman
    Web designer, developer and programmer.

    If you found my post helpful, why not give thanks! :)

  • Users who have thanked udjamaflip for this post:

    boemboem (06-24-2009)

  • #3
    New Coder
    Join Date
    Mar 2009
    Posts
    88
    Thanks
    10
    Thanked 0 Times in 0 Posts
    omg! thank you udjamaflip

  • #4
    New to the CF scene
    Join Date
    Oct 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I know this is an old thread, but just wanted to say thanks, helped me solve the problem I was having.


  •  

    Posting Permissions

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