Results 1 to 7 of 7

Thread: Window is going to close in VISTA version due to CSS

  1. #1
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Window is going to close in VISTA version due to CSS

    Hi,
    I am facing a problem. I want to print a page with footer at bottom position. So for this i have given in my code

    <style type="text/css" media=PRINT>
    body
    {
    background-image:"url(<?=$bar_url;?>)";
    background-repeat: no-repeat;
    background-position: bottom center;
    }

    where $bar_url is defined a page which returns a image.
    with this code footer is displaying at bottom position at printing time but in windows VISTA version, when I click on "Print" button, all open windows become closed.

    But in windows XP and 2000 server it is working properly.

    IF i remove this style then in VISTA version window become not closed. But I have to display footer at bottom position.

    How can i remove this problem? Can any one help me please?

    Thanks

    Shraddha

  2. #2
    Join Date
    Sep 2008
    Location
    Whiteford, MD
    Posts
    39
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    Does your server support PHP? Does the window close in all browsers?

  3. #3
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot for reply.

    Yes, server support PHP and it closes all browsers.

  4. #4
    Join Date
    Sep 2008
    Location
    Whiteford, MD
    Posts
    39
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    Try removing the PHP there and put a random image in place and see if that works.

  5. #5
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default WIndow became closed

    I have tried with random image but same thing is happining again all browsers become closed.

  6. #6
    Join Date
    Sep 2008
    Location
    Whiteford, MD
    Posts
    39
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    Post a link to the site...I want to see this for myself...+ I'll be able to see more code.

  7. #7
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry.. I can not send u site link because it is related to admin section but i can send u the code where exactly i am facing the problem.


    <TABLE width=100% cellpadding=0 cellspacing=0 valign=top xheight=100%><!-- Master-->
    <THEAD style='display:table-header-group'>
    <TR><TD valign=top>
    <table width=100% cellpadding=0 cellspacing=0>
    <tr><td valign=top width=65%>
    <table width=100% cellpadding=0 cellspacing=0>
    <tr><td valign=top><img src="/img/kaiser_result_logo.gif" border=0>
    <tr><td valign=top>
    <table width=100% cellpadding=0 cellspacing=0 class=kaiser_a8>
    <tr><td valign=top>REGIONAL REFERENCE LABORATORIES
    <tr><td valign=top>DIRECTOR:
    </table>
    </table>
    <td valign=top width=35% align=right>
    <table width=100% cellpadding=2 cellspacing=0 class=kaiser_a8>
    <tr><td valign=top class=kaiser_a9 align=left nowrap><b>REGIONAL GENETIC TESTING LABORATORY<BR>BIOCHEMICAL GENETICS
    <tr><td valign=top align=left>Address
    <tr><td valign=top align=left>Fax
    <tr><td valign=top align=left nowrap>Director
    <tr><td valign=top align=left>Technical Director
    </table>
    </table>
    <TR><TD valign=top>
    <table width=100% cellpadding=0 cellspacing=0 style='border:1px solid black'>
    <tr><td valign=top width=80%>
    <table width=100% cellpadding=0 cellspacing=0 class=kaiser_a10b>
    <tr><td valign=top width=60% class='ktr xkleft'><span class=kaiser_a6>&nbsp;PATIENT</span><br>
    <span style='padding-left:40px'>Patient Name</span>
    <td valign=top width=10% class='ktr xkbottom'><span class=kaiser_a6>&nbsp;SEX</span><br>
    <span style='padding-left:20px'>Male
    <td valign=top width=20% class='ktr xkbottom'><span class=kaiser_a6>&nbsp;DOB</span><br>
    <span style='padding-left:20px'>DOB
    <td valign=top width=10% class='ktr xkbottom'><span class=kaiser_a6>&nbsp;AGE</span><br>
    <span style='padding-left:20px'>AGE

    <tr><td colspan=4 valign=top>
    <table width=100% cellpadding=0 cellspacing=0 class=kaiser_a10b>
    <tr><td valign=top width=34% class='ktr xkleft'><span class=kaiser_a6>&nbsp;MEDICAL RECORD #</span><br>
    <span style='padding-left:85px'>Patient ID
    <td valign=top width=33% class='ktr xkbottom'><span class=kaiser_a6>&nbsp;SAMPLE ID #</span><br>
    <span style='padding-left:30px'>LAB ID
    <td valign=top width=33% class='ktr xkbottom'><span class=kaiser_a6>&nbsp;ACC #</span><br>
    <span style='padding-left:30px'>ACC ID
    </table>
    <tr><td valign=top colspan=4>
    <table width=100% cellpadding=0 cellspacing=0 class=kaiser_a10b>
    <tr><td valign=top width=50% class='ktbr'><span class=kaiser_a6>&nbsp;LOCATION</span><br>
    <span style='padding-left:48px'>Location
    <td valign=top width=50% class='ktbr xkbottom'><span class=kaiser_a6>&nbsp;DR</span><br>
    <span style='padding-left:18px'>Report Order By
    </table>
    </table>
    <td valign=top Xwidth=30% >
    <table width=100% cellpadding=0 cellspacing=0 class='kaiser_a9' style='padding-left:2pt;'>
    <tr><td width=40% valign=top>&nbsp;
    <td width=40% valign=top><span class=kaiser_a6>DATE
    <td width=20% valign=top><span class=kaiser_a6>TIME
    <TR><TD height=5pt>
    <tr><td width=40% valign=top><span class=kaiser_a6>COLLECTED
    <td width=40% valign=top><b>Date&nbsp;
    <td valign=top><b>Time
    <TR><TD height=7pt>
    <tr><td width=40% valign=top><span class=kaiser_a6>RECEIVED
    <td width=40% valign=top><b>Receieve DAte&nbsp;
    <td valign=top><b>Recieve Time&nbsp;
    </table>
    </table>
    <TR><TD>&nbsp;
    </THEAD>
    <TBODY>
    <tr><td valign=top>

    <table width=100% cellpadding=0 cellspacing=0>
    <TR><TD valign=top style='page-break-before:always'><!-- TBODY -->
    <table width=100% cellpadding=0 cellspacing=0 class=kaiser_a8>
    <TR><TD valign=top class=kaiser_a7>CLINICAL DATA<tr><td height=60 valign=top style='border:1px solid black; padding-left:2px'>CLINICAL&nbsp;<tr><td height=5px>
    <tr><td valign=top><b>LAB COMMENT
    <tr><td>&nbsp;
    </table>
    <TR><TD valign=top>
    <?
    $bar_url="/lib/kaiser_footer.php"; // This code is returining the image created by GD library. you can use any image in place of $bar_url.
    ?>


    </TBODY>
    <TFOOT style="display:table-footer-group">
    <TR xclass=tbr1><TD>
    <H1 style='height:1pt'>&nbsp;</H1>
    </TD>
    <tr xheight=100% class=tbr1><td valign=bottom>
    <table width=100% cellpadding=0 cellspacing=0 class=kaiser_a8>
    <tr class=tbr1><td valign=bottom align=center style='border-bottom:1px solid black'>&nbsp;
    <tr class=tbr1><td valign=bottom align=center>For clinical consultation, contact your area geneticists; or So. Cal. Kaiser: R. Mardarch, MD (Pager 213-246-0256)
    <tr class=tbr1><td valign=bottom align=center>No. Cal. Kaiser: M. Lipson, MD (916-614-4785); K. Johnston, MD (415-833-2530); J. Baker, MD (510-752-7691)

    </table>

    </TFOOT>
    </TABLE><!--End Master-->
    <STYLE type="text/css">
    .kaiser_a6 { font-family: Arial; font-size:6pt ;}
    .kaiser_a6b { font-family: Arial; font-size:6pt ; font-weight:bold ;}
    .kaiser_a7 { font-family: Arial; font-size:7pt;}
    .kaiser_a8 { font-family: Arial; font-size:8pt;}
    .kaiser_a9 { font-family: Arial; font-size:9pt;}
    .kaiser_a9b { font-family: Arial; font-size:9pt; font-weight:bold}
    .kaiser_a10b { font-family: Arial; font-size:10pt; font-weight:bold}
    .kaiser_a10 { font-family: Arial; font-size:10pt;}
    .kaiser_a11b { font-family: Arial; font-size:12pt; font-weight:bold}
    .ktr{xborder-top:1px solid black; border-right:1px solid black; border-bottom:1px solid black}
    .ktop{xborder-top:1px solid black}
    .kleft{border-left:1px solid black}
    .kbottom{border-bottom:1px solid black}
    .ktbr{Xborder-top:1px solid black; Xborder-bottom:1px solid black; border-right:1px solid black}
    </STYLE>
    <style type="text/css" media=PRINT>
    body
    {
    background-image:"url(<?=$bar_url;?>)";
    background-repeat: no-repeat;
    background-position: bottom center;
    }
    </style>
    <STYLE type="text/css" media=SCREEN>
    .tbr1 {display:inline}
    .tbr2 { display:none }
    </STYLE>
    <STYLE type="text/css" media=PRINT>
    .tbr1 {display:none}
    .tbr2 { display:inline }
    body {margin:0}
    </STYLE>


    In this code a lot of PHP code have been replaced by text. only $bar_url i have left.

    The style in which media = PRINT is only used for printing. IN which style background-image has been set, problem is from their. If i remove that style then in VISTA winow will not closed. BUt i have to set background image in footer.

Bookmarks

Posting Permissions

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