Feedback on: irt.org FAQ Knowledge Base Q508
Worth:
Worth reading
Comments:
Its worth reading, but it doesn't work, unless I'm doing something wrong
Length:
Just right
Comments:
Using the code for this example doesn't work as specified in IE 5 (it prints the current page and not the no-show frame). It works fine in NN 4.7.
Maybe I've overlooked something, but as a work around I used a print button that loads a page into the no-show frame with an onload print in it's body tag. Kinda hacky, but it works.
Worth:
Very worth reading
Comments:
I like the example and am trying to get it to work. However, the script in the the controlpage.html does not recognize the frame that the pagetoprint.html is loaded into.
Any help?
Worth:
Very worth reading
Comments:
I got an access is denied error when I tried to run your sample locally. The error popped up right after i clicked on print. Got any ideas?
Thanks,
David Durose
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
This works fine on Netscape, but on IE 5.5 the controlpage.htm page prints instead of the pagetoprint.htm page.
I tried using top.frame instead of parent.frame, but that still didn't work.
Is this a problem with IE?
Thanks.
Comments:
I was so pleased to find this answer, as it seems to fit a current problem I have. However, I can't get it to work properly. The code just seems to want to print the controlpage not the pagetoprint. I've followed the instructions. What am I doing wrong? Should the pagetoprint.html be specified in the code as well as in the frameset? What determines which page the parent.frames refers to?
Thanks
Worth:
Very worth reading
Comments:
I have also spent a lot of time trying to get this working in IE5 and looking for an alternative solution. I found it in FAQ 1525 in the response submitted by Sebastien Anselment. Short, Simple and it works.
Worth:
Worth reading
Comments:
HI,
I would like to thank you for answer to this FAQ solve part of my problem. Anyway, I found that the code is only work in Nestcape but not in IE 4.7+.
So, may I know that is there any solution/suggestion to my problem??
Regards,
Annie
Worth:
Worth reading
Comments:
The reason this doesnt work in IE5 is because the frame that is supposed to print is not the frame with current focus therefore even though the javascript works, when it pops up the print dialog and says print the current frame it believes the current frame is the control page.
Im still lookin for a good solution.
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
For IE you have to set the
frame focus before you call
the .print()
parent.framename.focus();
parent.framename.print();
Technical:
Not technical enough
Comments:
hello~
I have tried the script to print the page.
But I found that it didn't work.
I devided two subframes(print_frame, control_frame) in my main frameset just as your description.
I print the "print_frame", but I got a two pages printout. One page is the content of the control_frame and the other is the print_frame.
I am so troubled, and wondered if there any problem of the window.print() in frame??
Thanks for your answer~ :)