PDA

View Full Version : Window Widget Inline hyperlink



dmwhipp
10-19-2007, 08:01 PM
1) Script Title: Window Widget v1.03

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/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/dynamicindex8/autocenter.htm - but it doesn't remain on top when you click the page underneath.

Thanks in advance,
Deborah

ddadmin
10-19-2007, 10:01 PM
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:


<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.

dmwhipp
10-20-2007, 03:04 AM
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