473,324 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 3182
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Brian Hanson | last post by:
Hi, I am trying to programmatically print a pdf file via an asp.net application. I have seen other postings that mention the following code used or something similar to it in a vb.net app. ...
16
by: gb | last post by:
Hi All, Ive created a popup page using 'var openWindow = window.open("new","pop")' And added content using openWindow.document.write(" "); statements. But now I would like to be able to print...
0
by: malcolm | last post by:
How do I get a web-browser loaded with on-the-fly content and a JavaScript onclick popup function to work? I've embedded an axWebBrowser in my (vb.net) application. The browser starts with...
1
by: Asad Khan | last post by:
It makes all the sense in the world, but its not working. Any idea why? Click the popup button to popup a new screen, and then click the print button on the popup (which doesn't do anything!). ...
5
by: Mark Preston | last post by:
Admission first - I don't actually have a problem here but have noticed that a lot of people have been asking similar questions and getting very varied answers. What I've done is to sort of...
1
by: tribal boy | last post by:
Guys, I am using a dynamic menu which uses xml,xsl a css file and javascript. This works fine when there are no server controls around or underneath it. The problem is whenever the menu...
1
by: laredotornado | last post by:
Hi, I have a data table on my page (buried amidst other images and extraneous text). I would like to spawn a new window that automatically prints the content of my data table, and only that...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.