Anything in Safari similar to Internet Explorer's on{before,after}print?

Does Safari (and Firefox as well) have anything similar to Internet Explorer's onbeforeprint and onafterprint event handlers? The means by which I accomplish this in javascript under IE is as follows:
window.attachEvent("onbeforeprint",functionto_handle_on_beforeprint);
window.attachEvent("onafterprint",functionto_handle_on_afterprint);
Thanks for any information you can supply.

Since originally posting my question of whether or not Safari (as well as Firefox) have anything similar to Internet Explorer's onbeforeprint and onafterprint event handlers, I have determined that the answer is a definite NO, and have come-up with a solution.
In HTML I have:
<link ... href='styles/resume_screen.css' ... media='screen' .../>
<link ... href='styles/resume_print.css' ... media='print' .../>
Both of these style sheets define a class .resumepre0010, which is subsequently referenced in several 'pre' elements in the page body.
In javascript which is called by the onload handler for the page I have:
style_sheet = getStyleSheetByHrefRegExp('resume_print\\.css');
rule_array = ( SYSTEM.isMSIE ) ? style_sheet.rules : style_sheet.cssRul
es;
rule = getRuleByObjName('resumepre_0010',rulearray);
if ( rule ) {
. modify attributes/values of rule, whose containing style sheet
. media type is print, prior to printing
} else {
. error processing
} // endif
As a matter of fact, I have been running the majority of this code (all of w
hich I have written and maintain myself) on my website for about a year and a half. The only new items are the current coding of the first link, the existence of the second link, and what goes on in the true part of the if
statement. getStyleSheetByHrefRegExp() searches the default style sheet array for a style sheet whose href value matches the regular expression supplied as the parameter to the function. 'rule_array = ...' accounts for the usual cross-browser differences in the types of things which really should be the same (except for Microsoft's obviously long-standing penchant for being difficult). getRuleByObjName() searches rule_array for a rule whose selector text matches the value supplied as the first parameter to the function.
This is completely browser-independent ...
So far, that is.

Similar Messages

  • Flash Player works in Safari but not Internet Explorer 9

    I've installed Flash Player 10.3 and it works in Safari but not Internet Explorer 9. When I look in Manage Add-Ins I see Flash Shockwave but not Flash Player. My operating system is Windows Vista Ultimate (32bit). Safari is 5.0.5 and IE 9 is 9.0.8112.16421. I've tried uninstalling and re-installing Flash Player and uninstalling Norton 360. Nothing has worked so far. Can you help?

    Thank you for your reply. Shockwave is loaded and enabled.
    The files in flash directory are: a folder called FlashPlayerTrust: file, flash10q.ocx: file, FlashInstall.log; file, FlashUtil10q_ActiveX.dll; file, FlashUtil10q_ActiveX.exe, file, install.log.
    There is no file: NPSWF32.dll.
    When I test the browsers I get no spinning logo in either Safari or IE9. Safari says: missing plug-in, where I think the logo should be. IE-9 says nothing at the same location.
    Thanks.

  • Spry menu works in Firefox and Safari, but not Internet Explorer

    I designed my school website in CS4 and  CS5.  The left spry menu bar appears correctly in Firefox and Safari, but in Internet Explorer the gray background and buttons do not appear.  You can only see the text and when you scroll over the text, it disappears even though when you click on it, the link does appear.  The website is http://ml.chinookschools.org.  I created the site on a mac and I am hosting it on a mac mini server on my network at school.  I am a beginner with Dreamweaver and I'm not sure if someone can help me with this, but I would sure be appreciative for any help offered. Here is the source code for the main template page:
    </style>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body>
    <div id="wrapper">
      <div id="header"><a href="../index.html"><img src="../images/header.jpg" width="950" height="121" /></a>
        <div id="apDiv1"><a href="http://chinookschools.org/" target="_blank"><img src="../images/hslink.gif" width="170" height="60" /></a></div>
      </div>
      <div id="bodyArea">
        <div id="left">
          <ul id="MenuBar1" class="MenuBarVertical">
            <li><a href="../calendar.html">Calendar</a>            </li>
            <li><a href="../contactinfo.html">Contact Information</a></li>
            <li><a href="../currenthappenings.html" class="MenuBarItemSubmenu">Current Happenings</a>
              <ul>
                <li><a href="../harwoodhappen.html">Mr. Harwood - K</a></li>
                <li><a href="../haslerhappen.html">Ms. Hasler - K</a></li>
                <li><a href="../tedwardshappen.html">Mrs. T. Edwards - 1</a></li>
                <li><a href="../lewishappen.html">Mrs. Lewis - 1</a></li>
    <li><a href="../whitneyhappen.html">Mrs. Whitney - 2</a></li>
    <li><a href="../weinheimerhappen.html">Mrs. Weinheimer - 3</a></li>
    <li><a href="../cedwardshappen.html">Mrs. C. Edwards - 4</a></li>
    <li><a href="../macleodhappen.html">Mrs. MacLeod - 5</a></li>
    <li><a href="../mackenziehappen.html">Mrs. MacKenzie - 6</a></li>
    <li><a href="../surberhappen.html">Mrs. Surber - Ex. St.</a></li>
              </ul>
            </li>
            <li><a href="../PDFs/gifted.pdf">Gifted &amp; Talented</a></li>
            <li><a href="../libraryhappen.html">Library News</a></li>
            <li><a href="../pto.html">PTO</a></li>
            <li><a href="#" class="MenuBarItemSubmenu">School Information</a>
              <ul>
                <li><a href="../activities.html">Activities</a></li>
                <li><a href="#" class="MenuBarItemSubmenu">Class Schedules</a>
                  <ul>
                    <li><a href="../harwood.html">Mr. Harwood - K</a></li>
                    <li><a href="../hasler.html">Ms. Hasler - K</a></li>
                    <li><a href="../tedwards.html">Mrs. T. Edwards - 1</a></li>
                    <li><a href="../Lewis.html">Mrs. Lewis - 1</a></li>
    <li><a href="../whitney.html">Mrs. Whitney - 2</a></li>
    <li><a href="../weinheimer.html">Mrs. Weinheimer - 3</a></li>
    <li><a href="../cedwards.html">Mrs. C. Edwards - 4</a></li>
    <li><a href="../macleod.html">Mrs. MacLeod - 5</a></li>
    <li><a href="../mackenzie.html">Mrs. MacKenzie - 6</a></li>
                  </ul>
                </li>
    <li><a href="../edlinks.html">Educational Links</a></li>
    <li><a href="../PDFs/handbook.pdf">Handbook</a></li>
    <li><a href="../PDFs/newsletter.pdf">Newsletters</a></li>
    <li><a href="../schoolforms.html">School Forms</a></li>
    <li><a href="../studyhall.html">Study Hall</a></li>
              </ul>
            </li>
            <li><a href="../staff.html">Staff</a>        </li>
            <li><a href="../index.html" class="MenuBarVertical">Home</a></li>
          </ul>
        </div>
    <div id="right"><!-- TemplateBeginEditable name="Editable Area" -->
    <!-- TemplateEndEditable --></div>
        <div id="footer">
          <div align="center"></div>
          <div align="center"></div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

    You are not using the latest Spry files
    The latest version of the Adobe Spry Framework is 1.6.1, this is the same version that ships with Dreamweaver CS4. If you use Dreamweaver CS3 (uses Spry 1.4), its wise to upgrade your files to the latest version. This can easily be done using the Spry Updater that can be found here.
    Then, if you have a look near the bottom of SpryMenuBarVertical.css you will see that the white background colour has been specified for IE as in
    @media screen, projection
        ul.MenuBarVertical li.MenuBarItemIE
        display: inline;
        f\loat: left;
        background: #FFF;
    Change the value to #CCC and it will have fixed that part of the problem.
    When you upgrade to the later version of Spry, make sure to keep a copy of the CSS file as a reference to modifying the new CSS file.
    Gramps

  • How can i change the font size of internet explorer pg or smart web printing pg photosmartd7560

    how can i change the font size of internet explorer pg or smart web printing pg photosmart d7560

    Go to tools
    then internet options
    fonts

  • Browser similar to Internet Explorer for Mac?

    I've got on-line training for work that I can do from home, but the site is not fully compatible with Safari. Its good in some windows, but in others its bad enough that I can't actually do the work. The application says it requires Internet Explorer. My question - is there another browser for the Mac that may more closely match Internet Explorer that I could try?

    Hi
    It depends what "requires Internet Explorer" means. If it relies on Windows-only DirectX features, then you won't be able to get it working from the Mac OS no matter what browser you use. If you have an Intel Mac, you could install Windows via Boot Camp, Parallels Desktop or VMWare Fusion and run IE from there.
    If it's more a matter of appearance, and the site relies on IE's (frankly, awful) web standards interpretation, then you might try Firefox or Camino and see if they serve you better.
    Matt

  • Why Can't Safari do what Internet Explorer does in Windows

    Why can't Safari developers fix Safari and the mac os to run Sirius Satellite stream the way in which Internet Explorer runs it. I had to download Firefox and run Sirius from it because Safari and Snow Leopard won't run Sirius. If Apple wants to be the operating system of choice then it has to offer what IE offers with Windows.

    Hello Arthur:
    Is there a question there, or are you just pontificating? Anyone who suggests that IE is superior to Safari should migrate back to the "PC" world.
    The problem you pose is a Sirius problem, not a Safari issue.
    Barry

  • Safari vs. Internet Explorer: Icon previews

    Hi there,
    My friend just switched from Internet Explorer to Safari, and although he loves Safari, there is one major feature that he misses (and now, I realize that I miss this feature as well!):
    Whenever he drags-and-drops an image from a website onto his desktop, Internet Explorer creates a beautiful preview icon of the image... it's perfect, and easy to recognize what the file is! But, when you drag an image onto the desktop from Safari, it creates a generic Preview icon.
    Is there any way to fix this behavior in Safari?
    Thanks!
    Scott

    I'm having the same problem with images dragged and dropped from Safari. It doesn't happen with Internet Explorer so it makes me assume the problem is with Safari and not Preview. With Preview in Tiger (v. 3.0.1), the preferences are set up differently than in Panther. Any help would be greatly appreciated as I do a lot of image research online and can't use Safari because of this bug.
    Thanks

  • Export safari bookmarks to internet explorer?

    I've tried to export my Safari bookmarks to a PC through a Safari Bookmarks.html file.
    Internet explorer (tried on two PC's) cannot read the html file. Message is "error in converting bookmarks"
    any suggestions? thx!

    sorry forgot to mention I'm using IE 7

  • Flash Player no longer works in Internet Explorer on Win8.1 after system tune-up

    I recently had my laptop computer tuned up. After the service I have lost the use of Adobe Flash Player. I have already done the basics. I went to Manage Add-ons and ensured Shockwave Flash was enabled. I went to Safety and ensured ActiveX was not checked. I also downloaded the latest version of the software; Flash Player 15. When I check the status on the Adobe site it states that Flash Player is installed but disabled. I have checked it a number of times and Shockwave is truly enabled. I can no longer watch videos and at those sites I get a message that states I need Flash Player to watch the videos. I have a Lenovo laptop with Windows 8.1. I have also tried with Chrome and have the same result. Flash Player worked fine before the tune-up and the company that did the service says it is a common problem with Windows 8.1 but offers no solutions. Does anyone have a recommendation or solution? I would greatly appreciate any assistance. Thank you!
    Ramon

    Hello Jeromie,
    Thank you for the follow up. I was aware that Flash Player is included with Windows 8.1. This makes it even more frustrating because it is included and yet doesn't now work. I have not attempted to install it but I did download the latest version. I am frustrated because there is no way to speak with anyone directly at Adobe as to whether there is a fix but I do appreciate your expertise and advice. I have done the system checker with no improvement. I have also updated Java Script on the chance that would help but that does not seem to be the issue.
    There is something blocking the enabling of Flash Player between Internet Explorer and Adobe Flash Player. Flash Player is enabled through Manage Add-ons but when the status is checked on Adobe it shows it disabled. I was considering resetting Internet Explorer to default settings to see if that would help since all this happened after my computer service. But that reset would permanently change any and all other settings I have done.
    I am going to try and find an expert tech who may be able to get this resolved. I am still hopeful that you or someone else reading this post may be able to offer a solution. If not, I will have to learn to live with it until Microsoft decides to correct the issue.
    Thank you!
    Ramon

  • Div background color not showing in Internet Explorer 8 and before

    My Footer div is not showing the background color (supposed to be black...)  in Internet Explorer 8 and earlier.  It's assuming the body color instead.  Also the border color on top of the 'bubbles' that run across the page is wrong (supposed to be blue)    Is this just because Internet Explorer 8 and earlier did not support div background and border colors yet, or is there a work-around??  Or maybe I did something wrong?
    The site is:    www.meridianwaterfiltration.com

    martcol wrote:
    I don't think that IE8 does rgba.
    It should be OK with rgb but not rgba.
    Martin
    No its doesnt
    I'd just use a hexidecimal color - black #000 and blue: #03f (see below)
    .footer {
    position: relative;
        width: 100%;
        padding-top: 0px;
        padding-right: 0;
        padding-bottom: 0px;
        padding-left: 0;
        background-image: none;
        background-repeat: repeat-x;
        margin-top: 0px;
        clear: both;
        height: 350px;
        background-color: #000;
    #bubble {
        background-image: url(Images/water drop 0banner.jpg);
        background-repeat: repeat-x;
        width: 100%;
        height: 43px;
        border-top-width: 3px;
        border-top-style: solid;
        border-top-color: #03F;
        margin: 0px;
        padding: 0px;
        background-color: #3FF;

  • RDS 2008 R2 Internet explorer auto log out after 20 seconds IE9

    I have Windows RDS (remote Desktop services) 2008 r2 running (2 Gateway servers, 1 Session host, and 1 licence\broker server) and it has been working fine for past several months. Currently whenever a user launches an app that is internet biased or  try
    to browse the web, if it is the first app they are lunching from either the RDS webpage or from the RDS feed on their box it will log the user out after 20 seconds (according to event viewer). I have no clue why it is doing this, please help. Not sure what
    other information to include
    RDS 2008 R2 Internet Explorer

    Hi,
    Thank you for posting in Windows Server Forum.
    Which latest update you have installed on your server?
    Does this issue occurs for all users?
    In meantime, please try to reboot server once if possible and check whether your issue getting resolved. In addition you can try enhanced security configuration which might work for your case.
    Internet Explorer: Enhanced Security Configuration
    http://technet.microsoft.com/en-us/library/dd883248(v=ws.10).aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Internet Explorer won't connect after Firefox update.

    I have searched relentlessly trying to get IE back online. I cannot register AutoCad (which I need for school in a few days), until IE can access the internet. All my searching points to asking Mozilla why your update, or what your update may have done to forbid IE from accessing the internet/network. Brilliant on your part, makes your product seem more reliable and forces users to use your product. I do. I love Firefox, hate IE. But I NEED Internet Explorer for too many things. There are far too many websites and programs which will only function via IE. It's IE version 8. I have Firefox 5.0.
    Thanks, Kym

    Sounds very much like a firewall problem. Turn off the firewall completely. Also check the proxy settings on the computer. (On XP this is Internet Options control panel and the LAN Settings button on the Connections tab.)
    Which firewall do you use?

  • Since going from internet explorer to fire fox, my printer will not work. what do I do

    I changed my internet explorer to Fire Fox. I had to reset my information in order to log into an account because it didn't recognize my computer. When I got what I wanted, it would not print out the information. What do I need to do since I am using Fire Fox

    Thank you for the assistance. Before getting this information, I clicked on the actual document and it printed. I had previously gone to FILE and PRINT and it would not print. I will keep the information sent to me, if I have further problems, I will have someone more knowledgeable than myself follow the instructions that were sent.

  • Page displays perfect in Safari, but not Internet Explorer...please help!

    Please help, this page looks fine in Safari, but in IE, the 2nd and 3rd column are spread out. I want everything to stay to the top;
    http://www.fuels4less.com/WORKING_INDEX_HELP3.htm
    Thank you in advance!

    HTML errors can cause all kinds of problems between browsers/versions/platforms.
    Visit http://validator.w3.org to get a listing of your errors (54 errors 3 warnings)
    If it's still not displaying correctly once your errors are cleaned out, post back and we can take a closer look.

  • I web fonts show ok on safari but not internet explorer?

    I am using iweb to design my website and have chosen the font 'snellroundhand'
    this shows up great on safari and camino however when i go on my microsoft windows pc the writing show up de-formed
    www.dalmore-properties.co.uk
    am i doing something rong?
    thanks

    Jorge-Moul:
    Welcome to the Apple Discussions. First, your link doesn't work. I get a Failed to open page message.
    Do you have the snellroundhand font on the PC? Cross platform fonts are Georgia, Times New Roman, Trebuchet MS, Verdana and Courier. iWeb 2 has a plist file inside the domain file that determines which PC fonts to use for different Mac fonts. You can learn about it here: How can I ensure the fonts I use will look good on a PC?.

Maybe you are looking for

  • Error in Defining parameters for DB2 while installing IDES on Windows 2003

    Hello, I am facing DB2/LUW:V9:RDBMS:DB2/LUW:WINDOWS_X86_64.* While Installing IDES on 64 bit windows 2003 with DB2 V9., At the time of defining parameters, the SAPInst is not taking the Package Location for the Database parameter and giving me this e

  • OSB - How select variable used as request message in routing to buss. serv.

    I' modelling a message flow for a proxy service. Depending on the content of the incoming request message, a branch (conditional) is selected. In this branch the message needs to be routed to a business service. This business service has a different

  • XML Parsing with namespace

    Hi All, I have a requirement to convert XML to itab to be processed further. I couldn't parse the XML which contains ns0 (namespace?) as following: <ns0:OrderNo>887140</ns0:OrderNo> <ns0:CPROD>BD</ns0:CPROD> <ns0:CURR>USD</ns0:CURR> I'm able to parse

  • KB3011780 returns "the update is not applicable to your computer"

    I was able to install KB3011780 to all Wind2K3 & Win2012 non-R2 DCs, except our only Win2012 R2 domain controller.  that server will not pick the KB from the WSUS server, from MS Updates online and when I try to install via WU Standalone I get: the u

  • Custom activity rights creation methodology....

    The Activity Manager allow creating custom activity rights that can be used in customs portlets for specific activity related to the purpose of the portlet: We plan to develop a lot of portlets using specific custom activity rights (for example Edit_