This topic has been archived. It cannot be replied.
-
工作学习 / IT杂谈 / How to print a frame by issuing command in another frame? Merci Beaucoup...
-jabber(jabber);
2000-12-8
{692}
(#17629@0)
-
If the frames are sibling frames in the current frameset and there is no typewrite error, I have no idea.
-old(HH);
2000-12-9
(#17662@0)
-
Yes, those two frames are siblings... but the code does not work.
-jabber(jabber);
2000-12-9
(#17684@0)
-
It's for you, jabbor...Your javascript codes do work perfectly in Navigator. I think there's a bug in IE's "print()" function. However, I found a way to round over it.
......
function printFrame1(){
parent.Frame1.window.focus(); //put this line before print(), it works well in both NS and IE.
parent.Frame1.print();
}
......
good luck.
-neoneo(neo);
2000-12-10
{328}
(#17803@0)
-
Thank you, Neo. One of my friends, who has 2 years of JavaScript experiences, told this is related a flaw in IE. Thanks again!
-jabber(jabber);
2000-12-11
(#17880@0)
-
You are always welcome, Jabber. :-) Yes, I recognized it's a flaw of IE in few minutes after I built several HTML pages. But my goal was to round over the flaw. Fortunately, I made it for you. :-)
-neoneo(neo);
2000-12-11
(#17900@0)