473,670 Members | 2,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3219
"gb" <gb@tinyworld.c o.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();se lf.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/rasterTriangleD OM.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.c o.uk> writes:

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


Always! :)


Tried "self.focus();s elf.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.c o.uk> wrote in message
news:3f******** **@mk-nntp-2.news.uk.tisca li.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
24886
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. Process.Start("C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe", "/p /h ""C:\Program Files\Adobe\Acrobat 5.0\Help\ENU\ACROBAT.PDF""")
16
10417
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 this page? openWindow.document.write("<a href='#' onClick='self.close()'>Close<\/a><\/p>")
0
1585
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 about:blank, and then I set AxWebBrowser1.Document.Body.innerHTML to the desired HTML. The HTML contains a link (which works fine) and a Javascript command to put up a popup window. (The popup will show more on-the-fly content.) The HTML and...
1
1509
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!). <html> <head> <title>UGH!</title> <script type="text/javascript">
5
2213
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 "compile the questions" into a theoretical problem to see what people think should be done to solve it. Maybe it will be a worthwhile discussion, but more importantly maybe it will find out the very best way to sort this kind of problem out so that...
1
4283
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 encounters a server control, it closes itself.
1
3476
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 content. The tricky part is the ordering of the table may not be the same as when the page was loaded. I recently discovered the virtues of JQuery and its tablesorter plugin (http://motherrussia.polyester.se/ jquery-plugins/tablesorter/), so it is...
8
5887
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 clients (Internet Explorer). My flash content was originally brought in via the “flash satay” method, but I have since used some server-side magic do deliver one <objecttag
0
8466
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8384
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8810
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8590
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4387
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2798
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2035
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.