Joshua Edelstein

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromJoshua Edelstein
ToMe
Subjectperfect popups source content
Date12 December 2006 00:18
Hello,

I may be incredibly thick as I'm reading your code at
http://www.howtocreate.co.uk/perfectPopups.html, but I can't figure
out how your auto resizing content window (noPop.html) is actually getting
its content.  I'm trying to get an existing HTML file to pop up in a window
and have the height auto resize, but when I replace noPop.html with my
target html, it gives a window whose contents are simply "Contents" as in
onclick="return openPerfectPopup(300,'Title','Contents');" .

Am I missing something?  I see that on your page, when I click on "Click
here to test this" I get a paragraph that says "The content goes in here, no
matter what the contents are. There should be no problems. The window should
resize to exactly fit these words. Some browsers require the window to be
100px by 100px minimum, and will not let the window get too small."  But
where is that text coming from?  It's not noPop.html-that file doesn't even
exist on your site!  And the text that starts "The content goes." isn't part
of your parent document.  So. how do I actually get my desired page to pop
up in the window?

Thank you in advance for your time and help,

Joshua
FromMe
ToJoshua Edelstein
SubjectRe: perfect popups source content
Date12 December 2006 15:38
Joshua,

> I'm trying to get an existing HTML file to pop up in a window
> and have the height auto resize, but when I replace noPop.html with my
> target html, it gives a window whose contents are simply "Contents" as in
> onclick="return openPerfectPopup(300,'Title','Contents');" .

'contents' is the important part. It is the content of the popup - that is
where it comes from - see the source of the main page for more information.
However, from the sound of it, you should not be using that version of the
script. You need the part under "Resizing the inside of the current window"
(as well as the getRefToDivMod function from the example above it).


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.