| Author |
How do i print from a different frame
|
|
| MeekyChunky 2004-09-01, 11:14 pm |
| Can you help?
I have a site that has been constructed in 3 frames. I have added a link on
the top frame to print the content of the mainframe. It isnt working. Can you
tell me what is wrong with my link:
thanks
<a href="#" onClick="window.print(mainFrame);return false">Print</a>
| |
| darrel 2004-09-01, 11:14 pm |
| Xref: newsfeed-west.nntpserver.com macromedia.dreamweaver:960958
> I have a site that has been constructed in 3 frames. I have added a link
on
> the top frame to print the content of the mainframe. It isnt working. Can
you
> tell me what is wrong with my link:
>
> thanks
>
> <a href="#" onClick="window.print(mainFrame);return false">Print</a>
Try putting 'mainFrame' in quotes and make sure that frame actually has the
name 'mainFrame'
Also, note that this will only work in browsers that support printing via
javascript. It'd probably make more sense to just get rid of the frames if
at all possible.
-Darrel
| |
| MeekyChunky 2004-09-02, 12:15 pm |
| Thanks, I will try that.
I would also like to move away from frames, but as an absolute novice am
worried about messing it all up. Can anyone point me to any good sites that can
assist me in moving from frames. I also have seen some stuff about iframes, can
anyoe explain what this is?
Thanks
| |
| MeekyChunky 2004-09-02, 12:15 pm |
| I have tried using the quotes and it still doesnt work, any suggestions?
<a href="#" onClick="window.print "mainFrame";return false">Print</a>
| |
| Murray *TMM* 2004-09-02, 12:15 pm |
| <a href="#" onClick="window.print("mainFrame") ;return false">Print</a>
*(not parens after window.print)*
This method will fail on Mac/IE5, however....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"MeekyChunky" <webforumsuser@macromedia.com> wrote in message
news:ch6l8k$cuc$1@forums.macromedia.com...
>I have tried using the quotes and it still doesnt work, any suggestions?
>
> <a href="#" onClick="window.print "mainFrame";return false">Print</a>
| |
| Murray *TMM* 2004-09-02, 7:16 pm |
| LOLOL. Well, at least I was consistent! Bah....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Gary White" <reply@newsgroup.please> wrote in message
news:r89ej0psjie2ciekpe0vol3207niuo8qpn@4ax.com...
> Murray *TMM* wrote:
>
>
>
> It should fail in every browser conceivable. ;-) Try putting single
> quotes around mainFrame:
>
> <a href="#" onClick="window.print('mainFrame') ;return false">Print</a>
>
> Of course that will still fail in IE/Mac.
>
>
> Gary
| |
| Gary White 2004-09-02, 7:16 pm |
| Murray *TMM* wrote:
><a href="#" onClick="window.print("mainFrame") ;return false">Print</a>
>
>*(not parens after window.print)*
>
>This method will fail on Mac/IE5, however....
It should fail in every browser conceivable. ;-) Try putting single
quotes around mainFrame:
<a href="#" onClick="window.print('mainFrame') ;return false">Print</a>
Of course that will still fail in IE/Mac.
Gary
| |
| MeekyChunky 2004-09-02, 7:16 pm |
| Is this correct .. if so it still doesnt work. And if it wont work with IE5 what other options do i have?
Thanks
<a href="#" onClick="window.print("mainFrame") ;return false">Print</a>
| |
| MeekyChunky 2004-09-02, 7:16 pm |
| Ok, ive done that and it prints the content of the top frame and not the mainframe?
<a href="#" onClick="window.print('mainFrame') ;return false">Print</a>
| |
| Murray *TMM* 2004-09-02, 7:16 pm |
| Give it up. Get rid of the frames. Whatever you do, it will not work on
all browsers.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"MeekyChunky" <webforumsuser@macromedia.com> wrote in message
news:ch7aom$9vg$1@forums.macromedia.com...
> Ok, ive done that and it prints the content of the top frame and not the
> mainframe?
>
> <a href="#" onClick="window.print('mainFrame') ;return false">Print</a>
| |
|
| I'm in the same boat. I painted myself in a corner, setting up a website for a
group and now in final testing, it won't print the mainFrame frame. The user
has to click in the frame and then hit the print button - not acceptable. I've
tried setting the focus on the frame first, before the print command is issued
but nothing...still prints the banner. I need help too.
Are there other user groups out there that this question can be addressed?
What does everyone think of Iframes?
Are there examples anywhere that show how to do the same with layers (I
couldn't figure out how to reference them using Dreamweaver's GUI)?
| |
| Murray *TMM* 2004-09-13, 12:15 pm |
| > I need help too.
There are some problems that frames bring into your life for which there is
just no solution. I think this is one of them. The only *real* solution is
to not use frames.
> Are there other user groups out there that this question can be addressed?
I don't know of any.
> What does everyone think of Iframes?
All of the problems of frames.
> Are there examples anywhere that show how to do the same with layers (I
> couldn't figure out how to reference them using Dreamweaver's GUI)?
Tell me what you are trying to do.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dbkc" <webforumsuser@macromedia.com> wrote in message
news:ci3dte$qlr$1@forums.macromedia.com...
> I'm in the same boat. I painted myself in a corner, setting up a website
> for a
> group and now in final testing, it won't print the mainFrame frame. The
> user
> has to click in the frame and then hit the print button - not acceptable.
> I've
> tried setting the focus on the frame first, before the print command is
> issued
> but nothing...still prints the banner. I need help too.
>
> Are there other user groups out there that this question can be addressed?
>
> What does everyone think of Iframes?
> Are there examples anywhere that show how to do the same with layers (I
> couldn't figure out how to reference them using Dreamweaver's GUI)?
>
| |
| Murray *TMM* 2004-09-14, 7:15 pm |
| All Active content on a page will always rise to the top, so to speak,
including Flash, certain form elements, Java applets, and Active X controls.
This means that each of these will poke through layers. There is not a good
cross-browser/platform reliable way to solve this issue, but if you can be
confident in your visitors using IE 5+ or NN6+ (Windows only), then you can
use the Flash
wmode parameter. It doesn't work in all browsers (NN4) or platforms (Windows
only) but it's implemented in the latest netscapes:
http://devedge.netscape.com/
MM articles:
http://www.macromedia.com/support/f...h_top_layer.htm
http://www.macromedia.com/support/f...ments/wmode.htm
Aziz's solution -
http://www.bezworks.com/lab/opaque.htm
<sigh>Flash *and* frames....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dbkc" <webforumsuser@macromedia.com> wrote in message
news:ci7ho6$p56$1@forums.macromedia.com...
> Ok, I got it working by placing a print icon on a layer in the banner
> frame.
> In the onclick event I typed
> "parent.mainFrame.focus();parent.mainframe.print()
>
> My problem was that I had the same lines behind a Flash button. Don't
> know
> why the Flash button would behave differently....anyone know?
>
>
>
| |
|
| Ok, I got it working by placing a print icon on a layer in the banner frame.
In the onclick event I typed "parent.mainFrame.focus();parent.mainframe.print()
My problem was that I had the same lines behind a Flash button. Don't know
why the Flash button would behave differently....anyone know?
| |
|
| Ok, I got it working by placing a print icon on a layer in the banner frame.
In the onclick event I typed "parent.mainFrame.focus();parent.mainframe.print()
My problem was that I had the same lines behind a Flash button. Don't know
why the Flash button would behave differently....anyone know?
| |
| Murray *TMM* 2004-09-19, 4:14 am |
| All Active content on a page will always rise to the top, so to speak,
including Flash, certain form elements, Java applets, and Active X controls.
This means that each of these will poke through layers. There is not a good
cross-browser/platform reliable way to solve this issue, but if you can be
confident in your visitors using IE 5+ or NN6+ (Windows only), then you can
use the Flash
wmode parameter. It doesn't work in all browsers (NN4) or platforms (Windows
only) but it's implemented in the latest netscapes:
http://devedge.netscape.com/
MM articles:
http://www.macromedia.com/support/f...h_top_layer.htm
http://www.macromedia.com/support/f...ments/wmode.htm
Aziz's solution -
http://www.bezworks.com/lab/opaque.htm
<sigh>Flash *and* frames....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dbkc" <webforumsuser@macromedia.com> wrote in message
news:ci7ho6$p56$1@forums.macromedia.com...
> Ok, I got it working by placing a print icon on a layer in the banner
> frame.
> In the onclick event I typed
> "parent.mainFrame.focus();parent.mainframe.print()
>
> My problem was that I had the same lines behind a Flash button. Don't
> know
> why the Flash button would behave differently....anyone know?
>
>
>
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |