/    Sign up×
Community /Pin to ProfileBookmark

printing from a pop up window

Here’s the problem (this was tested and developed in IE):

PageA.htm (lets call this one window A) enables a user to enter some data (text boxes, combo boxes etc), when they are done they click on a link, which calls some JS code.

The JS code generates a formatted html page of content and outputs it to a new blank window (lets call it window ? the content is all ok no problems but when you try to print instead of window B you get window A.

In case you’ve read my other post this was my original method of creating the online quote page but changed to the other method because of this printing problem.

Thanks for any help you can give.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliAug 25.2003 — That clearly points to the fact that you are not printing the window b you are printing window a


windowb.print()
Copy linkTweet thisAlerts:
@iweb99authorAug 25.2003 — Thanks for the reply Khalid Ali,

I tried window.print() with out success.

According to the O’Reilly its only the same as pressing the print button or choosing print from the file menu (which was what I was doing before).

I’ve got no idea why IE would print would print window a when I’m sending the print command from window b.
×

Success!

Help @iweb99 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...