Window.print() does not work in firefox 12 version where as the same works in IE

The following is the extract of page source of my application:<br />
<br />
<pre><nowiki><script language='javascript'>
function fncPrint()
document.getElementById("btnPrint").style.visibility="hidden";
document.getElementById("btnClose").style.visibility="hidden";
window.print();
document.getElementById("btnPrint").style.visibility="visible";
document.getElementById("btnClose").style.visibility="visible";
</script>
<td align='center' colspan='10'>
<input type='button' class='button' value='Print' name='btnPrint' onclick='fncPrint()'>
<input type='button' class='button' value='Close' name='btnClose' onclick='window.close()'>
</td>
</nowiki></pre>
This code works fine IE but when used with firefox does nothing, it does not go for printing. I can use Control+P but it will not dim print and close buttons.

You use document.getElementById("btnPrint"), but you only specify the NAME attribute in the input tags and not the ID.<br />
So you will have to add the ID as well to make Firefox find that element.<br />
<br />
<pre><nowiki><input type='button' class='button' value='Print' id='btnPrint' name='btnPrint' onclick='fncPrint()'>
<input type='button' class='button' value='Close' id='btnClose' name='btnClose' onclick='window.close()'>
</nowiki></pre>

Similar Messages

  • My printer does not work with mountain lion

    I recently upgraded to Mountain Lion and now my HP Officejet Pro 8600 printer does not work.  I downloaded the required driver from the App Store but am still not able to connect.  Is there actually a solution for this or do I need to find a way to downgrade my OS to one that is compatible with my printer?

    From the HP site:
    Compatible operating systems
    Microsoft® Windows® 7, Windows Vista®, Windows® XP (SP3)* or higher (32-bit only): *Supports 32-bit only; Mac OS X v 10.5, v 10.6 or v 10.7; Linux (For more information, see http://hplipopensource.com/hplip-web/index.html)
    But then also on the HP site they have drivers for the printer for 10.8. See here http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4142&lc=en&cc=us&dlc=en&s w_lang=&product=4323659#N194
    I would try the driver from HP.

  • My canon printer does not work with firefox12

    my canon printer does not work firefox 12 edition

    Try to reset the print prefs.
    See:
    *http://kb.mozillazine.org/Problems_printing_web_pages
    *https://support.mozilla.org/kb/Printing+a+web+page
    There are other things that need your attention.
    Please Update to the latest Firefox 17.0.x version.<br />
    The Firefox Firefox 12.0 version that you currently run is no longer supported with security updates
    *Help > About Firefox
    *https://support.mozilla.org/kb/update-firefox-latest-version

  • Windows update does not work after using System recovery disk

    I have a Toshiba Satellite c655 with WIndows 7 64 bit Home premium. The hard drive died on it, so I purchased a new hard drive and purchased the appropriate Recovery media from Toshiba. I followed the directions and installed the 3 disks on to the new hard drive. But Windows update does not work I get the following error: Windows update can not currently check for updates, because the service is not running. You may need to restart your PC    No matter what I try, I can not get it to work. And it will not let me install Windows Defender either. Any ideas or help would be appreciated. Thank you in advance for your time on this matter.
    Solved!
    Go to Solution.

    I get errors saying A problem is preventing the troubleshooter from starting.
    That makes two similarities to the following thread. Both Windows Update and Troubleshooters fail to work correctly.
       Trouble with reinstall of Win7 64 on a L505-ES5018
    The fix was to install a new hard disk driver.
       Intel Rapid Storage Technology
    -Jerry

  • HT204135 I update my Mac to version 10.9.2 and now my printer does not work anymore. I did all the software updates and I do not understand why my mac does not recognize the printer anymore?

    I update my Mac to version 10.9.2 and now my printer does not work anymore. I did all the software updates and I do not understand why my mac does not recognize the printer anymore?

    Go to the website of the manufacturer of your printer and check to see if they have released an updated driver for your particular model.

  • Satellite A300-1EH - windows installer does not works accurately

    Hello, this is my first post on this forum!
    My windows installer does not works accurately.
    What to do?
    Soryy but i dont now much about computer systems.
    Have I to reinstall this installer?
    I'm waiting for your replys.

    >My windows installer does not works accurately.
    What do you mean exactly? Do you see some error? What happen exactly?
    Maybe your CD is scratched or damaged.

  • Hi there, I have a problem with my iPod Classic (from 2009). Everytime I connect it to my computer (Windows), iTunes does not work anymore. Music is automatically deleted on my iPod. Any suggestions please?

    Hi there, I have a problem with my iPod Classic (from 2009). Everytime I connect it to my computer (Windows), iTunes does not work anymore. Music is automatically deleted on my iPod. Any suggestions please?

    Thanks, for info, iPod Classic is a slower machine compared the Nano, unfortunately, if you read these discussions, majority of the freezes involved iTunes 10. Although if might be just slow and some impatient user just disconnect the iPod ands cause more problems. ( Yes I also did that but safely by doing a iPod Hard Reset, before disconnecting).
    Here is the Apple support article that may help you.
    http://support.apple.com/kb/TS1717
    or my usual solution for Windows Users.
    Antivirus has a tendency to freeze iTunes sync Operation with iPod Classic, causing a timeout, which corrupt your iPod filesystem, so when iTunes can't read the iPod, it is pointing to this problem. Other causes is when your iPod hardisk is dying, or your battery is dying causing hardisk crashes.
    My suggestion.
    Connect your iPod to the PC and run chkdsk, to fix any iPod diskerror, then disconnect it, after chkdsk complete.
    Disconnect your PC from Internet. (just to make sure no nasties creep into your system while you syncing.
    Stop the Antivirus program
    Connect your iPod to the PC, using a high speed USB 2.0 port at the back of your PC, do not use any USB Hub.
    When iTunes Open up, Restore your iPod please, this is for iTunes to map correctly, to fix the corrupted filesystem.
    When Restore complete, eject the iPod and reconnect again.
    Sync your ipod, preferably manually Manage in small batches and disconnect after every batch, to check that all is well.
    When all sync is complete, and iPod disconnected, start back your Antivirus and connect back the Internet.
    Good Luck!

  • I just had a new hard disc installed and now the LBP0000 canon printer does not work saying it can't connect to CCPD...connection refused! pls help!!?

    I just had a new hard disc installed and now the LBP0000 canon printer does not work saying it can't connect to CCPD...connection refused! pls help!!?

    You need to reinstall the printer driver, and set up the printer on the new hard drive.
    The Canon site should have the driver. Download it and install.
    Then go to Apple menu / System Preferences / Print & Fax and click the + (plus sign) and follow the directions.

  • My HP photo smart  C6280 printer does not work with CS6.  Any Help?

    My HP photo smart  C6280 printer does not work with CS6.  Any Help?

    How does it "not work"?
    What OS version are you using?

  • Printer does not work on Windows 10

    I cannot install the driver. HP Print and Scan Doctor Does not hlep, neither does the HP Support Assistant and i even downloaded direct 8.1 driver from a third party, which does not work as well. Please Help Me.
    How do i install the printer driver so that windows is able to recognise it. As before i had installed all of it on 8.1 and could even use the 'Netgear Wirless Router Driver' with it.

    Figured it myself.
    For some reason, the tool does NOT support source locations on ReFS formatted drives. Move the D:\ISOFOLDER location to NTFS formatted drive, and the tool works flawless:
    E:\Images>bin\oscdimg.exe -bootdata:2#p0,e,b"D:\ISOFOLDER\boot\etfsboot.com"#pEF,e,b"D:\ISOFOLDER\efi\Microsoft\boot\efisys.bin" -o -h -m -u2 -udfver102 -lwinsetup D:\ISOFOLDER D:\TEMP\test.iso
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    Scanning source tree (500 files in 15 directories)
    Scanning source tree complete (950 files in 95 directories)
    Computing directory information complete
    Image file is 3591864320 bytes (before optimization)
    Writing 950 files in 95 directories to D:\TEMP\test.iso
    100% complete
    Storage optimization saved 45 files, 16310272 bytes (1% of image)
    After optimization, image file is 3577761792 bytes
    Space saved because of embedding, sparseness or optimization = 16310272
    Done
    Well this is the world we live in And these are the hands we're given...

  • My printer does not work with firefox but does work with explorer

    While using ebay I tried to print out a mailing label, and fox fire does not work with it anymore. My printer does work with internet explorer ?

    What printer? Does the page appear correctly in Print Preview? What happens when you try to print?

  • Print does not work

    Print function does not work. This may have co-insided with install of v 30 - i'm not sure. I can print from other browsers. I have reset FF to its default settings. I have reset print_printer in about:config.
    My prefs.js file does not have any lines starting with "print_" - most lines start with "user_pref".
    When I clik on print I get a 2 tone sound like "ding-dong" and I do not get the printer dialog box.
    I can print in all other programs. I don't know what to try next - uninstall and re-install?
    Application Basics
    Name: Firefox
    Version: 30.0
    User Agent: Mozilla/5.0 (Windows NT 5.1; rv:30.0) Gecko/20100101 Firefox/30.0
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: Adblock Plus
    Version: 2.6.3
    Enabled: true
    ID: {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
    Name: Adblock Plus Pop-up Addon
    Version: 0.9.2
    Enabled: true
    ID: [email protected]
    Name: avast! Online Security
    Version: 9.0.2018.95
    Enabled: true
    ID: [email protected]
    Name: Classic Theme Restorer
    Version: 1.2.1
    Enabled: true
    ID: ClassicThemeRestorer@ArisT2Noia4dev
    Name: DuckDuckGo Plus
    Version: 0.3.16
    Enabled: true
    ID: jid1-ZAdIEUB7XOzOJw@jetpack
    Name: LastPass
    Version: 3.1.40
    Enabled: true
    ID: [email protected]
    Name: Tabs on Bottom
    Version: 0.5
    Enabled: true
    ID: [email protected]
    Name: The Addon Bar (restored)
    Version: 3.2
    Enabled: true
    ID: the-addon-bar@GeekInTraining-GiT
    Name: McAfee Security Scan Plus
    Version: 1.0
    Enabled: false
    ID: {e4f94d1e-2f53-401e-8885-681602c0ddd8}
    Name: Microsoft .NET Framework Assistant
    Version: 0.0.0
    Enabled: false
    ID: {20a82645-c095-46ed-80e3-08825760534b}
    Name: Skype Click to Call
    Version: 6.12.0.13601
    Enabled: false
    ID: {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}
    Important Modified Preferences
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.places.smartBookmarksVersion: 7
    browser.search.useDBForOrder: true
    browser.sessionstore.upgradeBackup.latestBuildID: 20140605174243
    browser.startup.homepage_override.buildID: 20140605174243
    browser.startup.homepage_override.mstone: 30.0
    browser.tabs.loadInBackground: false
    browser.tabs.warnOnClose: false
    dom.mozApps.used: true
    extensions.lastAppVersion: 30.0
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1404086800
    places.history.expiration.transient_current_max_pages: 80505
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    print.printer_Artisan_837(Network).print_bgcolor: false
    print.printer_Artisan_837(Network).print_bgimages: false
    print.printer_Artisan_837(Network).print_colorspace:
    print.printer_Artisan_837(Network).print_command:
    print.printer_Artisan_837(Network).print_downloadfonts: false
    print.printer_Artisan_837(Network).print_duplex: 1515870810
    print.printer_Artisan_837(Network).print_edge_bottom: 0
    print.printer_Artisan_837(Network).print_edge_left: 0
    print.printer_Artisan_837(Network).print_edge_right: 0
    print.printer_Artisan_837(Network).print_edge_top: 0
    print.printer_Artisan_837(Network).print_evenpages: true
    print.printer_Artisan_837(Network).print_footercenter:
    print.printer_Artisan_837(Network).print_footerleft: &PT
    print.printer_Artisan_837(Network).print_footerright: &D
    print.printer_Artisan_837(Network).print_headercenter:
    print.printer_Artisan_837(Network).print_headerleft: &T
    print.printer_Artisan_837(Network).print_headerright: &U
    print.printer_Artisan_837(Network).print_in_color: true
    print.printer_Artisan_837(Network).print_margin_bottom: 0.5
    print.printer_Artisan_837(Network).print_margin_left: 0.5
    print.printer_Artisan_837(Network).print_margin_right: 0.5
    print.printer_Artisan_837(Network).print_margin_top: 0.5
    print.printer_Artisan_837(Network).print_oddpages: true
    print.printer_Artisan_837(Network).print_orientation: 0
    print.printer_Artisan_837(Network).print_page_delay: 50
    print.printer_Artisan_837(Network).print_paper_data: 1
    print.printer_Artisan_837(Network).print_paper_height: 11.00
    print.printer_Artisan_837(Network).print_paper_name:
    print.printer_Artisan_837(Network).print_paper_size_type: 0
    print.printer_Artisan_837(Network).print_paper_size_unit: 0
    print.printer_Artisan_837(Network).print_paper_width: 8.50
    print.printer_Artisan_837(Network).print_plex_name:
    print.printer_Artisan_837(Network).print_resolution: 1515870810
    print.printer_Artisan_837(Network).print_resolution_name:
    print.printer_Artisan_837(Network).print_reversed: false
    print.printer_Artisan_837(Network).print_scaling: 1.00
    print.printer_Artisan_837(Network).print_shrink_to_fit: true
    print.printer_Artisan_837(Network).print_to_file: false
    print.printer_Artisan_837(Network).print_unwriteable_margin_bottom: 0
    print.printer_Artisan_837(Network).print_unwriteable_margin_left: 0
    print.printer_Artisan_837(Network).print_unwriteable_margin_right: 0
    print.printer_Artisan_837(Network).print_unwriteable_margin_top: 0
    privacy.donottrackheader.enabled: true
    privacy.sanitize.migrateFx3Prefs: true
    security.default_personal_cert: Select Automatically
    Graphics
    Adapter Description: NVIDIA Quadro FX 500/600 PCI
    Adapter Drivers: nv4_disp
    Adapter RAM: Unknown
    Device ID: 0x032b
    DirectWrite Enabled: false (0.0.0.0)
    Driver Date: 8-2-2004
    Driver Version: 6.5.7.3
    GPU #2 Active: false
    GPU Accelerated Windows: 1/1 Direct3D 9
    Vendor ID: 0x10de
    windowLayerManagerRemote: false
    AzureCanvasBackend: skia
    AzureContentBackend: cairo
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.6
    Version in use: 4.10.6
    NSS
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSMIME
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSSL
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSUTIL
    Expected minimum version: 3.16
    Version in use: 3.16

    Those '''user_pref("print.printer_Artisan_837 ....''' preferences are what needs to be deleted, with Firefox closed.
    I think that "ding-dong" error sound might be due to an old print job stuck in the print cache, though. Open the Windows Control Panel > Printers and Faxes and check the '''Status''' for that printer.

  • HP 932C PRINTER DOES NOT WORK OVER A NETWORK WITH TWO DIFFERENT OPERATIONAL SYSTEMS.

    I have a 932c HP printer connected via USB to a Windows XP desktop computer (Dell E520), which is part of a home network.
    I also have an HP Pavilion dv5 notebook, running Windows Vista Home Premium 64-bit, connected to the same network. This notebook can find the printer over the network. However, when I try to capture the 932c printer, the following dialog box appears:
    "The server for the `hp deskjet 930c series` printer does not have the correct printer driver installed. If you want to search for the proper driver, click OK. Otherwise, click Cancel and contact your network administrator or original equipmente manufacturer for the correct printer driver."
    When I click OK, another dialog box appears:
    "The file `*.INF`on (Unknown) is needed. Type the path where the file is located, and then click OK."
    However, I can't find any workable *.inf file in the HP notebook Hard drive (both partitions).
    I have already tried to download the driver from the HP website, but it says that Windows Vista already has the driver for such printer! Well, now I'm stucked!
    I'd like to point out that the printer works fine if I plug it directly to the HP notebook's USB port. But I want to operate the printer via the home network, keeping it hooked to the Windows XP desktop computer.
    How to solve this problem? Thanks.

    This is the HP notebook forums. I would recommend posting this in the printer forums for better coverage.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Open Link in New Window, sometimes does not work???

    The problem is in FF4b9 an 10 (the only ones I tested). The problem is that when I open a link in a new window sometimes it does not work. Well, I am presented with a new instance of the browser as expected but it seems like the parameter is not passed or something. Also, I have noticed something weird about the new instance. There is a button labeled Firefox in orange and another set of minimize, maximize, and close buttons. Here is a screenshot:
    http://i52.tinypic.com/ilejkn.png

    There is this pref: browser.tabs.loadBookmarksInBackground
    But it doesn't have effect if you open links via the Library, it only works when opened via the browser window (menu, toolbar, sidebar).

  • 10.4, How to stop plug-ins update reminder, Windows fix does not work on Mac.

    Need to get rid of bar across top saying plug-ins are not up-to-date. The "fix" posted for Windows does not work on my Mac. When I try for updates, none seem to install. How do I really find out if the ones I have are the latest available for my system? Everything seems to work OK as is. Could it be that my Mac is PPC and that there are plug-in updates that would work in 10.4 on Intel but not on PPC, and that FireFox cannot differentiate?

    Setting the Boolean pref <b>plugins.hide_infobar_for_outdated_plugin</b> to <i>true</i> on the <b>about:config</b> page should hide that info bar.
    *http://kb.mozillazine.org/about:config
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access the about:config page.<br />
    *Use the Filter bar at the top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean) or by double-clicking the line with the pref
    *Preferences can be created via the right-click context menu: New -> String, Integer, Boolean
    Firefox 4 and later require at least OS X 10.5 and a Mac with an Intel processor.
    *http://www.mozilla.org/firefox/12.0/system-requirements/
    For an unofficial Firefox ESR 10.0.4 compatible version (TenFourFox) that runs on PowerPC Macs with OS X 10.4.11 or OS X 10.5.8 you can look at:
    *http://www.floodgap.com/software/tenfourfox/
    *http://www.macupdate.com/app/mac/37761/tenfourfox
    Plugins are no longer supported.
    *http://code.google.com/p/tenfourfox/wiki/ReleaseNotes1004
    *http://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    *http://code.google.com/p/tenfourfox/wiki/AAATheFAQ

Maybe you are looking for

  • Best back up for college lap top

    We currently have 3 mac computers all connected to external hard drives for the time machine use only. We just purchased a macbook pro for my daughter for college in the fall and are curious on the best back up source for that. The apple consultant s

  • Set event 100183 & 10027 in Oracle 11g

    Hi     I have upgraded the Oracle 10.2.0.4.0 to Oracle 11.2.0.2.0 . while running the script provided by SAP vide note no. 1171650 (Automated Oracle DB Parameter Check) , following recommendation comes after running the scripts means change the event

  • Cost Center Budget-Cost element wise

    Dear SAP Gurus, My client needs to create cost center budgets cost element wise. For e.g. Salary paid (code 430000) in Development Cost center (code 9901). We now use KPZ2 to create cost center budgets and KP06 for cost element planning. Kindly guide

  • Writing unicode characters on JSwing components

    I'm new to computers in general, but how can I write text onto a JTextarea - i need to type into one TextArea in Spanish and in English in the other - can I set up a textarea to be able to write words that include Spanish characters - I've read throu

  • Noobish question on strings-plz help

    Whats wrong with this code? public String name(){           String str="hi";           if(str.equals("hi"))                return str; Why is it saying "This method should return a result of type string"? Regards.