By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

printing dynamic content from a popup?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
"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

P: n/a
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

P: n/a
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.