I would do two things.
1. Test your print() function on the same frame. Create a div called
"printableText" and see if you can print it. If that works, then your
print() function is okay.
2. Test your targeting. Use a different function, such as trying to change
the text or rollover an img in another frame. Then use the document.path
that worked.

BTW, I don't think "parent" is high enough.

And if anyone knows of a Javascript newsgroup this discussion should be on,
I would join it too.

----- Original Message ----- 
From: "GodFoca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 07, 2004 8:47 AM
Subject: [PHP] Javascript Question


> Hey! Sorry for the OT, but since there seems to be no js newsgroup in
gmane,
> I thought maybe someone in here could answer this simple question.
>
> I am trying to use javascript's "print()" to print a frame FROM ANOTHER
> frame.
>
> This is the layout:
>
> <frameset rows="*,40" frameborder="NO" border="0" framespacing="0">
>     <frame src="..." name="pritableText">
>     <frame src="..." name="printButton" scrolling="NO" noresize>
> </frameset>
>
> In printButton I have a simple anchor:
>
> <a href="#" onClick="parent.printableText.focus();
> parent.printableText.print();">
>
> Yet nothing happens. What's wrong?
>
> Thanks in advance,
> Nicolas Sanguinetti
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to