470,594 Members | 1,411 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

printing dynamic content from a popup?

gb
Hi,

How do you print a dynamically produced popup. Everything I try such as
self.print() prints out the original or parent page.

Banging my head against a wall time?

Can the popup object be named and referenced through the DOM. The popup
object has been named in the window.open() method. But all references to
this fail to print the current window.

Cheers

gb
Jul 20 '05 #1
3 3068
"gb" <gb@tinyworld.co.uk> writes:
How do you print a dynamically produced popup. Everything I try such as
self.print() prints out the original or parent page.
I believe IE always prints the page that has the focus. Try
self.focus();self.print();
on the popup page. If that doesn't work, I can't guess the problem
without seeing the page.
Banging my head against a wall time?
Always! :)
Can the popup object be named and referenced through the DOM.
No, not through the DOM. The window.open call returns a reference
to the new window, so store it somewhere safe.
The popup object has been named in the window.open() method. But all
references to this fail to print the current window.


/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
gb

"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:sm**********@hotpop.com...
"gb" <gb@tinyworld.co.uk> writes:

I believe IE always prints the page that has the focus. Try
self.focus();self.print();
on the popup page.
Banging my head against a wall time?


Always! :)


Tried "self.focus();self.print();" before but to no avail, thanks for your
help.

Now where's that wall? 8-)

gb
Jul 20 '05 #3
rf

"gb" <gb@tinyworld.co.uk> wrote in message
news:3f**********@mk-nntp-2.news.uk.tiscali.com...
Hi,

How do you print a dynamically produced popup. Everything I try such as
self.print() prints out the original or parent page.


Where is the code that contains self.print()? In the original page or in the
popup page?

Cheers
Richard.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Brian Hanson | last post: by
16 posts views Thread by gb | last post: by
1 post views Thread by Asad Khan | last post: by
5 posts views Thread by Mark Preston | last post: by
1 post views Thread by tribal boy | last post: by
1 post views Thread by laredotornado | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.