Results 1 to 3 of 3

Thread: Window Widget Inline hyperlink

  1. #1
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default Window Widget Inline hyperlink

    1) Script Title: Window Widget v1.03

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

    3) Describe problem: I would like a pop up window that remains on top, opens with a textual hyperlink and contains content as well as hyperlinks. I'm trying to use the window widget with inline content and have it close to what I want, but as soon as I add a hyperlink in the content, it messes up.

    Also, the page comes up with errors due to the script when I try to validate it.

    Here is what I have so far: http://www.apictureperfectchristmas.com/cards.html

    Is there a better solution for what I need? I was going to use the Auto-centering pop-up window - http://www.dynamicdrive.com/dynamici...autocenter.htm - but it doesn't remain on top when you click the page underneath.

    Thanks in advance,
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There's no reason why you can't add a hyperlink as part of the DHTML Window's contents. Just make sure you backslash (\) any special characters like quotations, for example:

    Code:
    <a href="#" onClick="window=dhtmlwindow.open('printinginstructions', 'inline',
    'Our Vintage Christmas cards are <a href=\"target.htm\">here</a> ....)
    Notice the part in blue. BTW, the part in red is incorrect as well- you should change "window" to some other arbitrary variable name (ie: christmas), as "window" is a prebuilt JavaScript variable name.

  3. #3
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    I tried inserting the link as you showed, but it just messes up the page:
    http://www.apictureperfectchristmas.com/cards.html

    Is there some other little thing I am missing?
    Thanks,
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

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
  •