Advanced Search

Results 1 to 4 of 4

Thread: Links open windows (default to unchecked)

  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Links open windows (default to unchecked)

    1) Script Title:
    Open offsite links in new window (ddwindowlinks)

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...newwindow2.htm

    3) Describe problem:
    More of a feature request! Is it possible to have the default for the checkbox to be unchecked? The script answers all my other needs, but I have some users who are bemused by the actions, so I prefer to let more knowledgeable users invoke the option if they choose.

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Find this part in ddwindowlinks.js:
    Code:
    //4) If mode is "manual", customize checkbox HTML to show to users (Preserve id attribute):
    toggleHTML: '<form><input type="checkbox" id="targetcheckbox" checked="checked" /><label for="targetcheckbox">Open off-site links in new window?</label></form>',
    ...and remove highlighted.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you [rangana] now [grin] can you explain why it worked when you told me to do it, whereas previously it didn't work when I did it myself? Maybe because this time I cleaned up my workspace before commencing. This in no way belittles your help, in fact it is intended to show how valuable it was because I had given up [blush] DD is a much appreciated resource, but is unbeatable with the support the forums offer.

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    The script sets a cookie whose value is is yes if the togglebox is checked, otherwise sets to no.

    This means, that when you test the script, ensure to clear your cookies.

    It (might) work when I told you because you might have removed the cookie (unintentionally). ctrl+shift+del if FF.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

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
  •