Results 1 to 5 of 5

Thread: Iframe printable question..

  1. #1
    Jerry Reneau
    Guest

    Default Iframe printable question..

    I have an account that wants most of it pages to use Iframes and the Iframe
    to be printable ...some of the text/info in these Iframes pages could
    probably wrap around the world.
    Here is my question: In the Iframe I would add the "Click to print this
    page" script which would print the entire page..the one that will wrap
    around the planet....But I would just want it to print the information that
    shows with that link anchor..
    Can I make the different areas of this long page into separate tables and
    insert the "print this page" script into each table...only printing that
    info...associated with that anchor/link?

    If so how would I edit the code?

    <A HREF="javascript:window.print()">Click to Print This Page</A>

    My guess: replace Page in the script with table# ?

    Really appericate this ONE!!!

    Thanks

    Jerry



  2. #2
    Nancy O.
    Guest

    Default Re: Iframe printable question..

    You would place a print page button on the iframe page; not the parent page.

    <input type="button" value="Print Page"
    onClick="javascript:window.print();">

    If you want to exclude objects from printing, give them an #ID if they don't
    already have one. Create a separate print.css file. Give non-printing
    objects a property of display:none (see my example CSS below).

    Link your iframe page to the print.css file with the following code inserted
    between the <head> and </head> tags:

    <link href="print.css" rel="stylesheet" type="text/css" media="print">


    SAMPLE PRINT CSS

    body {
    background-color: #FFFFFF;
    padding: 5px;
    width: 600px;
    color: #000000;
    font-size: 10pt
    font-family: Georgia, "Times New Roman", "Times Roman" , Serif;
    line-height: 1.2
    }

    #non-printableObjectID {
    display:none;
    }


    --
    Nancy O.
    Alt-Web Design & Publishing
    Web | Print | Media Specialist
    www.alt-web.com
    www.twitter.com/altweb
    www.alt-web.blogspot.com

    "Jerry Reneau" <northwestgifshop@oregoncoast.com> wrote in message
    news:hobdlm$dmi$1@DailyPlanet.news.netobjects.com. ..
    >I have an account that wants most of it pages to use Iframes and the Iframe
    >to be printable ...some of the text/info in these Iframes pages could
    >probably wrap around the world.
    > Here is my question: In the Iframe I would add the "Click to print this
    > page" script which would print the entire page..the one that will wrap
    > around the planet....But I would just want it to print the information
    > that shows with that link anchor..
    > Can I make the different areas of this long page into separate tables and
    > insert the "print this page" script into each table...only printing that
    > info...associated with that anchor/link?
    >
    > If so how would I edit the code?
    >
    > <A HREF="javascript:window.print()">Click to Print This Page</A>
    >
    > My guess: replace Page in the script with table# ?
    >
    > Really appericate this ONE!!!
    >
    > Thanks
    >
    > Jerry
    >



  3. #3
    Jerry Reneau
    Guest

    Default Re: Iframe printable question..

    OK. I think I understand this.....
    This web site I'm working on will have quite a few links/anchors to pages in
    Iframes that will need to be printable....Here is a link to one of the pages
    that has the Iframe (this is on my server for now kinda my trouble shooting
    area...
    This link has the Iframe/sample setup:
    http://reneaugraphics.com/OCCC/html/about_occc.html


    so if you click on "Admission" then "Advising Services" then "Contact an
    Advising Specialist" or any of the other sub menus the Iframe above will
    display that text information/printable for that link so all areas would
    have to be printable depending on the link/anchor to the Iframe...

    http://reneaugraphics.com/OCCC/index.html you can see that are a lot of
    links that will go to Iframes down the road.

    I hope this makes some sense....

    Thanks

    Jerry
    >




  4. #4
    Nancy O.
    Guest

    Default Re: Iframe printable question..

    <you can see that are a lot of links that will go to Iframes down the road.>

    I'm sorry but I don't see much logic in your approach. Iframes are for
    OCCASIONAL use. For example, you might use an iframe to display a Google
    Map that won't behave on main site pages. Or you might use one when
    javascripts aren't playing nice with each other. Iframes are not a method
    around which you would ever want to build an entire web site.

    Take advantage of MasterBorders. Create separate, topic specific pages that
    can be indexed by search engines. Give each page a meaningful page title
    that humans will discover when doing web searches.

    --
    Nancy O.
    Alt-Web Design & Publishing
    Web | Print | Media Specialist
    www.alt-web.com
    www.twitter.com/altweb
    www.alt-web.blogspot.com

    "Jerry Reneau" <northwestgifshop@oregoncoast.com> wrote in message
    news:hobivh$gi6$1@DailyPlanet.news.netobjects.com. ..
    > OK. I think I understand this.....
    > This web site I'm working on will have quite a few links/anchors to pages
    > in
    > Iframes that will need to be printable....Here is a link to one of the
    > pages
    > that has the Iframe (this is on my server for now kinda my trouble
    > shooting
    > area...
    > This link has the Iframe/sample setup:
    > http://reneaugraphics.com/OCCC/html/about_occc.html
    >
    >
    > so if you click on "Admission" then "Advising Services" then "Contact an
    > Advising Specialist" or any of the other sub menus the Iframe above will
    > display that text information/printable for that link so all areas would
    > have to be printable depending on the link/anchor to the Iframe...
    >
    > http://reneaugraphics.com/OCCC/index.html you can see that are a lot of
    > links that will go to Iframes down the road.
    >
    > I hope this makes some sense....
    >
    > Thanks
    >
    > Jerry
    >>

    >
    >



  5. #5
    Jerry Reneau
    Guest

    Default Re: Iframe printable question..

    I know...I'm not the designer on this one....This co. sends me the artwork
    and layout....I make it work
    They are sold on the Iframes....at this time...I will try a little harder to
    convince them to go with the full pages etc...

    Thanks for your time/advice!

    Jerry

    "Nancy O." <nancyoshea1@NOSPAMatt.net> wrote in message
    news:hobmcd$i8r$1@DailyPlanet.news.netobjects.com. ..
    > <you can see that are a lot of links that will go to Iframes down the
    > road.>
    >
    > I'm sorry but I don't see much logic in your approach. Iframes are for
    > OCCASIONAL use. For example, you might use an iframe to display a Google
    > Map that won't behave on main site pages. Or you might use one when
    > javascripts aren't playing nice with each other. Iframes are not a method
    > around which you would ever want to build an entire web site.
    >
    > Take advantage of MasterBorders. Create separate, topic specific pages
    > that can be indexed by search engines. Give each page a meaningful page
    > title that humans will discover when doing web searches.
    >
    > --
    > Nancy O.
    > Alt-Web Design & Publishing
    > Web | Print | Media Specialist
    > www.alt-web.com
    > www.twitter.com/altweb
    > www.alt-web.blogspot.com
    >
    > "Jerry Reneau" <northwestgifshop@oregoncoast.com> wrote in message
    > news:hobivh$gi6$1@DailyPlanet.news.netobjects.com. ..
    >> OK. I think I understand this.....
    >> This web site I'm working on will have quite a few links/anchors to pages
    >> in
    >> Iframes that will need to be printable....Here is a link to one of the
    >> pages
    >> that has the Iframe (this is on my server for now kinda my trouble
    >> shooting
    >> area...
    >> This link has the Iframe/sample setup:
    >> http://reneaugraphics.com/OCCC/html/about_occc.html
    >>
    >>
    >> so if you click on "Admission" then "Advising Services" then "Contact an
    >> Advising Specialist" or any of the other sub menus the Iframe above will
    >> display that text information/printable for that link so all areas would
    >> have to be printable depending on the link/anchor to the Iframe...
    >>
    >> http://reneaugraphics.com/OCCC/index.html you can see that are a lot of
    >> links that will go to Iframes down the road.
    >>
    >> I hope this makes some sense....
    >>
    >> Thanks
    >>
    >> Jerry
    >>>

    >>
    >>

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •