Firefox redirecting not when you use the script Window.Print

Have a simple java script on a Web page to display the print dialog box before the redirection to another page.

< a onclick = "javascript:window.print()" href ="Screen.php" > print, and continue < /a > "

When the print dialog box will appear if you print it does not redirect but remains on the page. If you cancel printing, it will go ahead and redirect to where it is supposed to go. Worked fine before the last update I was wondering if there was a work around for this or if anyone was aware of this.

The inconsistency is confusing. If you change your onclick to the following code, you can see a difference of synchronization in the appearance of the confirm dialog box which may be related to the problem. Maybe printing went from synchronous to asynchronous and now the navigation is attempted at a time when it is not allowed?

onclick="window.print(); if(!confirm('Finished printing?')) return false;"

Tags: Firefox

Similar Questions

  • Message box color settings disabled when you use the dialog "Windows color and appearance".

    When you use the configuration dialog box 'Window color and appearance', why are there color settings invalid?  I want to remove the default 'Pastel Pink' value that I find unacceptable.

    I can switch to "Classic Windows" that uses no pastel pink color, but "Classic Windows" does not support "Aero Peek", and the windows look pretty tired.  You can only take "Classic Windows" for many years.

    Color settings are disabled for: buttons, Message box, title of Palette, scroll bar.

    Help, please!

    Me too I'm frustrated by that.   Found the old windows with very honest XP environment.   I used the advanced settings, but has not found a way to save the changes with a label, so I knew that the changes you made.   It is just Frigging trial and error and very frustrating.

    Why are there no way to return either to the default value (not found a default label) or save the settings changed under a name?    It is a productivity KILLER.

    Hello

    Interface user of Windows 7 is theme based. The colors are defined by the theme.

    You still have many color options that can be used to change the colors.

    Right click on the desktop and select Personalize. Click on the color of the window at the bottom of the window box.

    You can select one of the colors in the boxes colored at the top.

    Adjust the intensity of the color with the cursor.

    Click on the color down mixer and you can a lot of variations on all the different color choices.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Motion/opacity (yet) does not when you use the time remapping effect

    OK: Here's my meat. This bug has been around for CS3 and CS4. I was hoping this would be fixed with the arrival of CS5, but apparently it still has not been resolved.

    If you use the time remapping effect in the body, you can not use the other features of keyframing, such as movement or opacity. If you do, the video simply disappears. Rendering will not help either. The only way to get the opacity of the function is to overlay a video black bar on the top of the element (or any other cache of color if you like fantasy) and have the opacity on this clip in reverse work. How to get movement in these clips remapped time to work is still somewhat a mystery to me...

    Has anyone found this tedious, boring/irritating?

    So, when can dear Adobe, we expect a fix for this? If all goes well before CS6.

    Thank you very much.

    Richard

    Yes, it's a real annoying bug.
    Simple around - after work you time-remapping your clips, nest (control-click on the clip and select 'nest'), then you can change the opacity normally.

  • Z500 touchpad work not when you use the keyboard. Please help me please!

    Hello

    I recently bought a lenovo z500 and it's great, but I have a little problem. When I use the keyboard to play games (I use the WASD keys) the touchpad does not, which means I can't play. Help, please!

    I got it finally started working by removing the pilot of the momentum. I don't think that I will reinstall it. Thanks for your help

  • How can I keep my current theme when you use the private window

    I went from using a complete theme for just a regular theme (one is no longer compatible with the 40.0.2 full update). When I open a private window I am presented with the default theme of Firefox with no way to change to one of the other themes that I try to apply. Is there something that I am missing, or was it a change that has taken place through many updates for Firefox, while I was still using the complete theme? I would like to use the theme on windows normal and private is it possible?

    Sorry, it's a 'function' private browsing and using a light theme. PB takes the default theme. Been like that for quite some time now - as can be as far as Firefox 29, 30 or 31.

  • Popup not closing not when you use the &lt; af:fileDownloadActionListener &gt;

    Hi all

    I use JDeveloper 11.1.1.4.

    My scenario is,

    I have a popup with < af:fileDownloadActionListener > component when the user clicks the download button, it fires the file download listiner and download the text document.

    Download works fine, but after the download, I tried to close the popup, but I'm not able to close the pop-up window.  Is - this problem of file download listener?

    My JSPX codes,

    < af:commandButton text = "DwonLoadPopup" id = "cb2" >

    < af:showPopupBehavior popupId = "p1" triggerType = 'action' / >

    < / af:commandButton >

    < af:popup id = "p1" >

    < af:dialog id = resizing "pgl2" = "on" title = "Downloadpopup" >

    < af:panelGroupLayout id = "pgl3" >

    < af:commandButton text = 'Download' id = "cb1" >

    < af:fileDownloadActionListener method = "#{managedBean1.doDownload} '"

    contentType = "application/octet-stream".

    filename = "sample.txt" / >

    < / af:commandButton >

    < / af:panelGroupLayout >

    < / af:dialog >

    < / af:popup >

    Java code:

    ' Public Sub doDownload (FacesContext facesContext, OutputStream, outputStream)

    {

    String data = "download my content."

    Try

    {

    OutputStreamWriter writer = new OutputStreamWriter (outputStream, "UTF - 8");

    Writer.Write (Data);

    Writer.Close ();

    outputStream.close ();

    }

    catch (IOException e)

    {

    e.printStackTrace ();

    }

    Pop RichPopup = (RichPopup) facesContext.getCurrentInstance () .getViewRoot () .findComponent ("p1");

    pop. Cancel();

    }

    Thank you

    David.

    See if this helps: http://www.gebs.ro/blog/oracle/affiledownloadactionlistener-generate-export-and-close-popup/

  • Digital background color works do not when you use the reference

    Hello

    I am trying to use a reference to change the background color of a digital indicator in a Subvi.  The sub - VI strives to change a digital indicator, but when I use a reference to another (reference Numeric.vi) VI, instead of doing all the background, the color I want, only the outline is the color I want, with the rest in white (natural color).    Is there a way to avoid this?

    You must use the NumericText.TextColors.BG property instead.

    Felix

  • NoClassDefFoundError when you use the FOProcessor to print Gantt chart

    Hi all

    I've been implementing print function for a gantt scheduling and use the sample code in this post https://community.oracle.com/message/2782685#2782685

    It's my implementation for the method of management.

           
            if (GanttActionEvent.PRINT == ganttActionEvent.getActionType()) {
                try {
                    FacesContext context = FacesContext.getCurrentInstance();
                    HttpServletResponse response = (HttpServletResponse)
                              context.getExternalContext().getResponse();
                    response.setContentType("application/pdf");
                    OutputStream sos = response.getOutputStream();
                   
                    // Generate FO
                    GanttPrinter printer = new GanttPrinter(schedulingGantt);
                    File file = File.createTempFile("gantt", "fo");
                    OutputStream out = new FileOutputStream(file);
                    printer.print(out);
                    out.close();
                   
                    // generate pdf
                    FOProcessor processor = new FOProcessor();
                    processor.setData(new InputStreamReader(new FileInputStream(file), "UTF-8"));
                    processor.setOutputFormat(FOProcessor.FORMAT_PDF);
                    processor.setOutput(sos);
                    processor.generate();
                    sos.close();
                    context.responseComplete();
    
                } catch (Exception ex) {
                    //handler
                    ex.printStackTrace();
                }
            }                                          
        }
    
    

    In line 22, the FOProcessor.generate method, I got an exception to this.

    javax.el.ELException: java.lang.NoClassDefFoundError: oracle/apps/fnd/i18n/common/util/calendar

    at com.sun.el.parser.AstValue.invoke(AstValue.java:258)

    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1838)

    at oracle.adf.view.faces.bi.component.gantt.UIGantt.broadcast(UIGantt.java:2078)

    at oracle.adf.view.faces.bi.component.gantt.UISchedulingGantt.broadcast(UISchedulingGantt.java:565)

    Truncated. check the log file full stacktrace

    Caused by: java.lang.NoClassDefFoundError: oracle/apps/fnd/i18n/common/util/calendar

    at oracle.xdo.common.formula2.impl.DefaultContext.init(DefaultContext.java:114)

    to oracle.xdo.common.formula2.impl.DefaultContext. < init > (DefaultContext.java:94)

    at oracle.xdo.common.formula2.FPContextFactory.createDefaultContext(FPContextFactory.java:34)

    to oracle.xdo.template.fo.datatype.ExpressionCalc. < init > (ExpressionCalc.java:39)

    at oracle.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:359)

    Truncated. check the log file full stacktrace

    Caused by: java.lang.ClassNotFoundException: oracle.apps.fnd.i18n.common.util.Calendar

    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:335)

    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:302)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:180)

    Does anyone know what is the problem?

    Thank you

    Hoang

    java.lang.NoClassDefFoundError: oracle/apps/fnd/i18n/common/util/calendar

    The class is in the i18nAPI_v3.jar of BI Publisher jar. Add i18nAPI_v3.jar to the classpath.

  • As I scroll down, using Firefox, but not when you use Int. Exp., the image becomes deformed, "having fun" on the right. I can fix by reloading the page

    Firefox reset has not solved the problem which does not occur on sleep Explorer. Reloading page solves the problem, but only up to what I have scroll againg (upwards or downwards)... This occurred only in the last two days.

    Thanks a lot, a lot. Problem solved immediately. Good to know that there is help out there. "We are not alone!

  • Firefox does not when you watch the video

    Whenever I am watching the video on youtube or any other site, the browser stops responding. every thing is blocked and I have to go to Task Manager to stop firefox.
    After that the firefox browser refuses to start until I restart my computer.

    You are welcome.

    Could you please click the button "solved it" to take your post out of the loop?

    Thank you.

  • speakers work not when you use the external monitor

    I use a laptop HP Envy and HP Pavilion 25bw external moniter connected via an HDMI cable. With the help of Windows 8.1. The sound is muted when the laptop lid is closed. If I open the lid I hear for about 2 seconds, then it turns off. If I remove the HDMI cable, the sound lights. How can I get the sound to work with the connected 25bw and close the lid?

    Hello

    Please try to hell sound HDMI playback devices

    Right click on the speaker icon,

    Select playback device

    Click with the right button on HDMI sound

    Disable it.

    Kind regards.

  • Œuvres SQL query to MS SQL Server 2008, but not when you use the database kit

    I have this SQL query:

    DECLARE TABLE (@DataTypeTable)
    Name varchar (128).
    TypeID INT)

    -Add comma delimeted type data in the temporary table names
    INSERT INTO @DataTypeTable (name)
    SELECT * from WhatWeShouldDoRead.func_Split (@DataTypeTrimmed, ',')

    SELECT the name OF @DataTypeTable

    That takes a comma delimited by the string and returns the string as a table.  It works correctly in Microsoft SQL Server Management Studio.  When I run this as a stored procedure I return nothing.  There are no errors, SQL or otherwise.  I checked that I am connected to the correct database and the stored procedure is responsible without changing any error chain which is reported of this stored procedure (that code is not shown in the example above).  Has anyone seen this problem before, or have experience with SQL/Labview interfaces to tell me what I am doing wrong?

    Thanks in advance.


  • image shows not when you use the element type image display

    Hi all

    My table has a blob column containing images

    However, they are not displayed

    I have a type of image screen called P6_DISPLAY_IMAGE, its source is a db column called PRODUCT_IMAGE

    I think I did everything correctly

    Please take a look at apex.oracle.com:

    workspace: martijnke

    login/password: demo/demo

    application: 78396 test voor Bernd

    page: 6 (just click on the products in the menu bar and click on the first column)

    as you can see, the display of the image (bottom) remains empty

    any help would be appreciated

    KR

    Martin

    Martijnke wrote:

    My table has a blob column containing images

    However, they are not displayed

    I have a type of image screen called P6_DISPLAY_IMAGE, its source is a db column called PRODUCT_IMAGE

    I think I did everything correctly

    Please take a look at apex.oracle.com:

    workspace: martijnke

    login/password: demo/demo

    application: 78396 test voor Bernd

    page: 6 (just click on the products in the menu bar and click on the first column)

    as you can see, the display of the image (bottom) remains empty

    Thanks for making the effort to demonstrate the problem.

    It seems to be nothing more complicated than missing data. Run this query showed that there is no data in the BLOB column for all rows:

    select product_id, product_name, dbms_lob.getlength(product_image) from apa$nf_products
    

    I downloaded an image of the product of the belt and it seems to work fine.

  • Firefox does not open after the update. Cannot open the profile technical, even when you use the directory in cmd line path

    I'm using Firefox on a Windows 7 computer. Firefox does not open after the last update. I read the help articles and it seems that I need to create a new profile because my settings were probably corrupted. I'm unable to open the profile technical, even when you use the directory in cmd line path. I tried the following commands in the command line:

    Firefox Pei
    "C:\Program Files (x 86) \Mozilla" PEI

    Nothing happens with every order.

    I am also running Norton Internet Security. I read a help of virtual navigation features Re article that can cause a problem. The article says to check the setting of virtualization in the internet security software and to clear the virtual cache. I went through all the menus of settings in Norton Internet Security version 21.6.0.32 and I don't see anything that looked like in "virtualization" settings, so I guess that does not apply to me. "

    If you have any ideas, I had appreaciate that your expertise!

    Hello arcandl, at the launch of the firefox is not after you double-click the shortcut, it is sometimes also a sign of active malware on a system.
    you might want to try running a scan with some various other security like the free version of malwarebytes and adwcleaner tools that are specialized to remove the adware and browser hijackers.

    Fix Firefox problems caused by malicious software

  • WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    https://support.Mozilla.com/en-us/KB/granting+JavaScript+access+to+the+Clipboard

    This extension will help you implement the security policies for access to the Clipboard.

    Allow the extended Clipboard support:

    https://addons.Mozilla.org/en-us/Firefox/addon/852

Maybe you are looking for