Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print a frame then redirect?

Status
Not open for further replies.

Junior1544

Technical User
Apr 20, 2001
1,267
US
Is it possable to print a frame(automaticly to the users local default printer), then redirect the frame to a new window??

If so, I would love help in the right direction... I havn't been doing this long enough yet...

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
others maybe able to help out as well.. but I believe you can accomplish this using client-side javascript....

parent.frameName.print()

 
You're not going to be able to print w/o the user's consent. wsmall73 has pointed you in the right direction, but it's still going to bring up only the pring dialog box. It's a security feature of browsers not to let web developers send 1000 pages to their printer w/o user consent.

:)
paul
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
ok, I see what your saying...

Is there a way I can have the page automaticly redirect after the print dialog closes?? I can make it come up, but then the page just sits there...

any idea's at all?

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
Well, a:

location = 'somePage.aspx';

will do a client redirect, but I'm not sure if it treats the print dialog as modal or not. You'd have to try it.
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top