Firefox and click javascript function on h:commandLink

I was wondering if you can help me with a problem i'm having with a h:commandLink tag. What I am trying to do is give the user a choice of executing the action or not by using the confirm() and click() javascript functions:
<h:commandLink id="runNowLink" styleClass="tableFooterText" value="#{ViewResources.RunNow}" action="#{Schedule.runNow}" onmouseup="if(confirm('#{ViewResources.RunNowConfirm}')) this.click()"/>
This works in IE, a dialog box with "ok" and "cancel" appears and depending on which option the user selects, the link is "clicked" or not. However, this does not work in firefox as the browser just goes through with the action regardless of the option selected. Can someone please help?

probably set the property of <h:commandLink type="submit" /> or <h:commandLink immediate="true" />

Similar Messages

  • Alert, confirm and prompt javascript functions died with ios 7

    Alert, confirm and prompt javascript functions died with ios7.  Will it be fixed? It breaks websites.

    Hi..
    JavaScript is no longer available to switch on or off in Settings > Safari.
    So apparently that function has died with iOS 7.
    message edited by:  cs

  • Hi. I have an older Mac running OS 10.4.11. I absent mindedly upgraded to FireFox 3.6.24 and now can no longer attach files to email in gmail or ymail. Is it possible to load an older version of FireFox and regain this function?

    FireFox 3.6.15 and newer require OS 10.5 or 10.6. The latest version of OS X the Macintosh G4 I own is physically capable of running is OS 10.4.11. Whenever I try to attach a file to an email in gmail.com or ymail.com, FireFox crashes. Is it possible to load a version of FireFox older than 3.6.15 to avoid having to buy a new computer?

    Hi again - since writing the above I have posted on Adobe>Webplayer>Flash forum the following request and will post on here if I receive a reply that works:
    Firefox updated to 3.6.14 and then advised Flash 10 be installed. I did this and now on YouTube videos all I see is a black screen with no play or pause button. System is OS X10.4.11 Have now followed Adobe instructions to Uninstall Flash player on system and then Install Flash 10. But still at YouTube Safari says Flash 10 is needed and in FF shows a black box only. I use Intego virus barrier but this has never blocked an update before. Flash is enabled in Firefox and Safari.
    eldnolb at Adobe forum advised: Go to this site and right click on the Flash logo, Settings, Display Settings. UNcheck the hardware acceleration.
    http://www.adobe.com/software/flash/about/
    But when I go to this page no logo appeared for me to right click on, which again means that Flash player is not working... so I could not access Settings, Display Settings, Uncheck etc. Was advised to start a new Mac entitled thread. Clare

  • I'm having trouble installing Firefox version 6.0.1 The setup wizard is telling me to close Firefox before it can go any further after I've chosen the standard setup. I closed Firefox and clicked the NEXT button again and it tells me the same thing.

    I've already tried re-downloading the setup wizard for Firefox 6.0.1 again and re-running it, but I still have the same problem as before.

    Flash Player Protected Mode provides a modern, sophisticated set of security protections that we see as critical in today's security landscape. 
    We highly recommend that users not disable ProtectedMode.  Also, it's worth noting that by manually changing your mms.cfg, you have opted out of Protected Mode for all future versions of Flash Player, as we will continue to honor that preference. This puts your system at risk, and that risk will continue to grow over time. 
    Ultimately, this is an issue with the RealPlayer Browser Record plug-in.  There is a more technical explanation in the Mozilla bug referenced above in the thread, but the simplified version is that the security enhancements designed to prevent the introduction of malware via Flash Player make RealPlayer Browser Record plug-in no longer compatible with Flash Player for Firefox.  You can disable the record functionality to eliminate this issue, while retaining the ability to view both Flash and Real Player content.
    To disable the Real Player Browser Record functionality while maintaining the enhanced security provided by Flash Player with Protected Mode, do the following:
        Launch RealPlayer
        Click the RealPlayer icon in the upper-left corner of the window, and choose Preferences
        Choose Download & Recording from the left-hand menu
        Uncheck "Enable Web Download & Recording for these installed browser"
        Click OK

  • Firefox and slow JavaScript in 64 bit

    Hello!
    I've installed 64 bit Archlinux on my laptop. I noticed poor JavaScript performance with firefox. I had 32 bit linux before. I ran benchmark from this site: http://www2.webkit.org/perf/sunspider-0 … pider.html and I got these results (approximately) - Less means better:
    firefox 3.0.11 - 3200 ms
    firefox 3.5rc2 - 1500 ms
    midori 0.1.7 - 1400 ms
    But now on 64 bit, firefox is slown down:
    firefox 3.0.11 - 3800 ms
    firefox 3.5rc3 - 3200 ms
    midori 0.1.7 - 860 ms
    I tried several builds including self compiling, but results are the same
    Well, it's not that big issue, because browsing is fine. I'm just curious why there is such difference. I thought 64 bit would be even faster...

    Same thing here.
    Firefox is significantly slower than midori.
    Here "FROM" is firefox 3.0.11, "TO" is midori 0.1.7.  Both are from extra.
    TEST COMPARISON FROM TO DETAILS
    =============================================================================
    ** TOTAL **: 3.01x as fast 3470.6ms +/- 6.6% 1152.4ms +/- 10.0% significant
    =============================================================================
    3d: 2.28x as fast 389.6ms +/- 8.4% 171.0ms +/- 17.1% significant
    cube: 3.04x as fast 138.8ms +/- 10.2% 45.6ms +/- 45.3% significant
    morph: 1.73x as fast 121.8ms +/- 9.9% 70.4ms +/- 42.9% significant
    raytrace: 2.35x as fast 129.0ms +/- 21.9% 55.0ms +/- 5.3% significant
    access: 4.34x as fast 474.8ms +/- 13.3% 109.4ms +/- 32.1% significant
    binary-trees: 4.15x as fast 56.4ms +/- 19.8% 13.6ms +/- 44.6% significant
    fannkuch: 4.93x as fast 208.2ms +/- 14.6% 42.2ms +/- 43.2% significant
    nbody: 3.94x as fast 137.2ms +/- 17.9% 34.8ms +/- 15.7% significant
    nsieve: 3.88x as fast 73.0ms +/- 39.8% 18.8ms +/- 56.2% significant
    bitops: 6.19x as fast 412.4ms +/- 7.4% 66.6ms +/- 12.1% significant
    3bit-bits-in-byte: 6.55x as fast 64.2ms +/- 19.9% 9.8ms +/- 48.6% significant
    bits-in-byte: 5.30x as fast 120.8ms +/- 17.8% 22.8ms +/- 11.2% significant
    bitwise-and: 9.86x as fast 116.4ms +/- 7.6% 11.8ms +/- 46.2% significant
    nsieve-bits: 5.00x as fast 111.0ms +/- 11.8% 22.2ms +/- 8.3% significant
    controlflow: 6.34x as fast 67.2ms +/- 24.1% 10.6ms +/- 58.4% significant
    recursive: 6.34x as fast 67.2ms +/- 24.1% 10.6ms +/- 58.4% significant
    crypto: 3.24x as fast 232.0ms +/- 11.4% 71.6ms +/- 18.5% significant
    aes: 2.45x as fast 82.4ms +/- 17.6% 33.6ms +/- 40.7% significant
    md5: 2.77x as fast 60.4ms +/- 18.2% 21.8ms +/- 11.0% significant
    sha1: 5.51x as fast 89.2ms +/- 15.7% 16.2ms +/- 44.2% significant
    date: 2.14x as fast 353.4ms +/- 15.6% 165.0ms +/- 16.0% significant
    format-tofte: 2.42x as fast 204.6ms +/- 14.0% 84.4ms +/- 17.8% significant
    format-xparb: 1.85x as fast 148.8ms +/- 20.4% 80.6ms +/- 25.5% significant
    math: 2.66x as fast 319.8ms +/- 8.7% 120.2ms +/- 27.4% significant
    cordic: 4.61x as fast 122.6ms +/- 13.9% 26.6ms +/- 46.2% significant
    partial-sums: 1.89x as fast 134.8ms +/- 20.7% 71.2ms +/- 32.1% significant
    spectral-norm: 2.79x as fast 62.4ms +/- 16.9% 22.4ms +/- 32.5% significant
    regexp: 5.46x as fast 288.4ms +/- 16.1% 52.8ms +/- 34.8% significant
    dna: 5.46x as fast 288.4ms +/- 16.1% 52.8ms +/- 34.8% significant
    string: 2.42x as fast 933.0ms +/- 16.6% 385.2ms +/- 11.1% significant
    base64: 2.78x as fast 124.6ms +/- 22.6% 44.8ms +/- 44.8% significant
    fasta: 1.90x as fast 171.8ms +/- 16.6% 90.2ms +/- 9.6% significant
    tagcloud: 2.32x as fast 189.4ms +/- 9.0% 81.6ms +/- 28.5% significant
    unpack-code: 2.99x as fast 323.8ms +/- 41.1% 108.4ms +/- 8.8% significant
    validate-input: 2.05x as fast 123.4ms +/- 11.0% 60.2ms +/- 29.4% significant

  • OS Hangs On Firefox and Thunderbird Javascript Errors

    Hello all,
    I recently swapped out my old HD for and SSD, and cloned my HD image to the SSD. Since then, whenever there is a javascript error in either Firefox or Thunderbird, the entire OS hangs for about 30-45 seconds, and when it recovers, either Firefox or Thunderbird pops up a javascript error notification. I can't remember the exact language used, but it was something about a script on the page being unresponsive. In Thunderbird, I keep a tab open for Google Calendar and Google Contacts. I also keep a tab open for SimpleNote. So that's where the problem comes from there, but in Firefox it can be from whatever happens to be open.
    I absolutely never used to get a system freeze when I had a hard drive, but now that I have the solid state drive, I get them all the time. And almost always it's from the javascript unresponsive error in Firefox or Thunderbird. And I also almost never used to get javascript errors in either app when I had the hard drive.
    I've done a good bit of searching for other reports of this but could only find one somewhat similar report that had gone unresolved. It is really frustrating sitting there waiting, because the entire OS usually freezes and I can't even switch to another app.
    Machine is a 2007 MBP 2.33 GHz C2D.
    Any help is greatly appreciated!
    Thanks,
    steiney

    Just a quick update with a screenshot of the type of error I receive:
    This one must be a real stumper. I posted the same question on another forum and no one was able to help or solve the problem.

  • After uninstalling Firefox and clicking the box that asked about uninstalling bookmards too I can't open my old links that I've had for years.(IE) Please help!

    The only links that are usable are the ones I had on a Yahoo toolbar on my IE homepage which I never deleted or changed during this whole process. I've tried System Restore and a ClickFree Restore. All the Clickfree did was put hundreds of icons on my desktop that look like they go on from here to timbuck two. System Restore said the restoration failed - numerous times. Not sure if I should use Recuva - I'm a little gunshy now to try anything. Please help. Thanks SO much!

    The Solution: Tools - Internet Options - Program Tab ... and there was the Default Web Browser option. It said that IE was NOT the default browser. I changed that and IT WORKED.
    A simple and sweet fix ... all thanks to: Martin Brinkmann a journalist from Germany who founded Ghacks Technology News Back in 2005. I found him through this article:
    http://www.ghacks.net/2011/01/19/firefox-profile-manager-to-be-removed-soon/
    Thank You again Martin Brinkmann!

  • I have no privacy! when anyone opens firefox and clicks on mail, it opens my email without a password. how can I stop this?

    question is self explanatory. I want to be asked for a password when I click on mail, less anyone can open it.

    Option to stay logged in will be stored in cookies. Delete the cookies for the email site (for details on doing that see the [[Deleting cookies]] article). When you next log into the mail site, deselect any option on the login screen that says something like"remember me" or "stay signed in".

  • Javascript functions to control QuickTime not working in Firefox

    I am using the provided Javascript functions to control QuickTime (7.6.2); however, the functions are not working in Firefox (3.0.11), whereas they are working in Safari (4.0.1).
    I create a QuickTime Player, as follows:
    QT_WriteOBJECT('Music.mp3', '0', '0', '', 'AUTOPLAY', 'True', 'KIOSKMODE', 'True', 'CONTROLLER', 'False', 'LOOP', 'False', 'obj#id', 'qtp', 'emb#name', 'qtp', 'emb#id', 'qtpID', 'ENABLEJAVASCRIPT', 'True', 'SHOWLOGO', 'False', 'VOLUME', '256');
    The Music.mp3 file starts playing in both Safari and Firefox; however, the Javascript functions to control that playing work only in Safari, not in Firefox.
    Examples of QuickTime functions that work in Safari, but not in Firefox:
    document.qtp.Stop();
    document.embeds[0].GetRate();
    document.embeds["qtp"].GetTime();
    document.embeds["qtpID"].GetQuickTimeVersion();
    The GetRate and GetTime functions always return a "0" in Firefox, the Stop command is ineffectual in Firefox, and the GetQuickTimeVersion function aborts the Javascript code in Firefox.
    Any ideas what's happening?

    Dave, what you have done is very similar to what I have done, with the following exceptions:
    1. I'm using the regular HTML version of QT_WriteOBJECT rather than the XHTML version.
    2. My first parameter is an .mp3 file rather than a .mov poster in combination with an 'href'.
    3. I'm not using some of your parameters, such as, 'target', 'targetcache', 'scale', 'href', and 'name'.
    4. Instead of 'name', I'm using --- 'obj#id', 'qtp', 'emb#name', 'qtp' --- which allows me to then reference the QuickTime functions as --- document.qtp.Play(); document.qtp.Stop(); --- etc.
    5. I'm not creating HTML buttons as player controls; rather I am using my javascript program to detect and control the player operation with functions such as --- document.qtp.GetRate(); document.qtp.GetTime(); document.qtp.GetDuration(); document.qtp.SetVolume(); document.qtp.SetMute(); document.qtp.Play(); document.qtp.Rewind(); document.qtp.Stop() --- etc.
    6. I change my .mp3 files using --- document.qtp.SetURL();
    7. All my javascript is contained in an iWeb HTML snippet using an iframe.
    Essentially, I've created a jukebox with button images of album covers that can be visually scrolled and then clicked to play an album via the HTML onClick, onMouseOver, and onMouseOut functions.
    This all works without a hitch in Safari; however, in FF, NN, and Opera, it only works if the iframe is completely visible on the screen. It can't be scrolled offpage, and the HTML album cover buttons in the iframe cannot be dimensionless, hidden, or blocked from view.
    I really think it's the iframe that is causing this behavior in all the browsers (except Safari).
    BTW, as an aside, I don't have a Windows machine, but no one I know using IE on a PC has been able to get my QuickTime Player working. I think it's because, when I want to collapse an album cover, I set its width to '1px' ('0px' works only in Safari), but I think IE may require a minimum width of '2px'. I have not tried changing my image widths to '2px' yet.

  • I am trying to uninstall firefox and when i click uninstall it says the program is still running so i stop it and it exits the remove program

    im trying to uninstal firefox so i went to my control pannel clicked on add or remove progams then clicked on mozzola firefox and clicked remove it said it was still running so i clicked ctrl alt dlt and clicked task manager and ended firefox from running and when i did that the box to uninstall firefox exited so i clicked it again and the program started running again i dont know what to do i need firefox uninstalled

    I assume you are using windows. There are two options:
    1. Try restarting your computer and then try uninstalling.
    2. Firefox might be a program that starts immediately upon booting. In that case, go to the task manager, end all tasks that firefox is running. Then try uninstalling firefox

  • When i close Firefox, i can't reopen it without 1st doing to taskmaster and clicking endtask for it.

    this happens most but not all of the time. I close Firefox and then cannot reopen it without going into taskmaster and highlighting Firefox and clicking "end task." Also related i think to this problem is that often when i am on a website using firefox as my web browser and there is a link to click on, nothing happens when i click on the link. I do not have this problem if i use Google Chrome for my web browser. I am running Windows 8 on a new computer but i had this problem develop in the past 2 months on my old computer before i switched to the new one.

    *Make sure that Firefox closes properly and that there isn't a hanging Firefox or plugin-container process left in the Task Manager.
    *Use "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: "Firefox > Quit Firefox"; Linux: "Firefox/File > Quit") to close Firefox if you are currently doing that by clicking the close X on the Firefox title bar.
    See also:
    *"Hang at exit": http://kb.mozillazine.org/Firefox_hangs
    *"Firefox hangs when you quit it": https://support.mozilla.org/kb/Firefox+hangs
    Are you using "Clear history when Firefox closes" to clear data like the cookies?
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings

  • Problem with onBlur=validate_int_range javascript function

    Hi i have a java script function which is use to check for the range of the integer i enter.
    The function works fine but the problem is once i click ok on the validation boxes that come up when i enter a wrong value it allows me to click the submit box.But if i click back on the text box then the validation box appears again.
    The report code is
    to_clob(HTMLDB_ITEM.text(5, pref_val,15,30,'onBlur="validate_int_range('||pref_name||','''||pref_expr||''');"style="width: 220px;"',pref_name)),
    and the javascript function is
    <script language="JavaScript1.1" type="text/javascript">
    function validate_int_range(pref_name, range) {
    var pos = range.indexOf('-');
    var start_val, end_val;
    var actual_val = pref_name.value;
    var non_digits = /\D/;
    if ( non_digits.test(actual_val) ) {
    alert('Validation Fail: only digits allowed. ' + range);
    if ( pos > 0 ) {
    start_val = range.substr(0,pos);
    end_val = range.substr(pos+1, range.length-pos+1);
    if ( eval(actual_val) < eval(start_val) ) {
    alert('Validation Fail: smaller value than ' + start_val );
    if ( eval(actual_val) > eval(end_val) ) {
    alert('Validation Fail: larger value than ' + end_val);
    function validate_rule(pref_name, exp) {       
    var actual_val = pref_name.value;
    expression = new RegExp(exp);
    if ( ! expression.test(actual_val) ) {
    alert('Validation Fail: Rule ' + exp);
    </script>

    >thanks you so much for the code, I'll test it out and
    reply with >the
    >results.
    Shouldn't that be "Thanks so much for the Cod"?
    "Dave Bar" <[email protected]> wrote in message
    news:e28c7t$hk1$[email protected]..
    > ahh yes, you are right..
    > I should have said OR instead of AND.
    > If Field is blank OR range is not between 1900 &
    2006. Thanks for catching
    > and pointing that out.
    >
    > thanks you so much for the code, I'll test it out and
    reply with the
    > results.
    > Thanks
    > -Dave
    >
    >
    >
    >
    > "Lionstone" <[email protected]> wrote
    in message
    > news:e28b1a$fu5$[email protected]..
    >> That's probably because you asked for a fish to help
    you out
    >>
    >>> Can some kind sole help with a modified version
    to also check for an
    >>> entered
    >>> number range?
    >>
    >> and fish can't type.
    >>
    >> You're off on the logic though, since something is
    not likely to be both
    >> blank and outside a certain number range. If it's
    blank or outside the
    >> range, either condition is sufficient for an error,
    right?
    >> You also want to make sure that no letters, etc, are
    entered, because
    >> that will mess up your comparisons to the other
    numbers. Keeping in mind
    >> that javascript validation can be defeated by
    sneezing and you'll need to
    >> re-validate on the server, this will be closer to
    right (not tested).
    >>
    >> var ThisYear = ThisForm_Right.DOB_Year.value;
    >> ThisYear = ThisYear.replace(/[^/d]/g,"");
    >> if(ThisYear.length == 0)
    >> {
    >> alert("Please enter the year of your DOB.");
    >> ThisForm_Right.DOB_Year.focus();
    >> return false;
    >> }
    >> else
    >> {
    >> ThisYear = parseInt(ThisYear);
    >> if((ThisYear < 1900) || (ThisYear > 2006))
    >> {
    >> alert ("The year of your DOB must be between 1900
    and 2006.");
    >> ThisForm_Right.DOB_Year.focus();
    >> return false;
    >> }
    >> }
    >>
    >>
    >
    >

  • I cant install an update to Firefox and cant remove the old version because a "Setup" pop up window "Your computer must be restarted to complete a previous upgrade of Firefox. Do you want to reboot now?" appears, reboots change nothing. What should I do?

    A friend said she downloaded an update to Firefox (a version of 6, I believe) but didn't install the update, but the desktop icon was gone. The only way to launch Firefox was from the Programs folder. When clicking on the Firefox file, a "Setup" pop up window appeared stating "Your computer must be restarted to complete a previous upgrade of Firefox. Do you want to reboot now?" Clicking "No" does not launch Firefox and clicking "Yes" reboots the computer, but nothing changes after restart and the same series of events keeps re-occurring. When clicking on the safe mode file, Firefox was launched. I went to "Add/Remove Programs" and found Mozilla Firefox 3.6.3. When attempting to remove the program, the same reboot "Setup" pop up appears, and the same non-results as previously described, persisted. I deleted all Firefox files and deleted the update set up .exe files. I again tried to remove the Firefox 3.6.3 program, with the same outcome as the previous attempt(s). I went to the Firefox website and downloaded the updated Firefox 7.0.1 set up .exe file, saved and ran it. When I reached the Setup Wizard page that prompts a "Standard" or "Custom" installation, I clicked on Standard and the same reboot pop up window appeared, again with no change after the reboot. So I have a Program installed (Firefox 3.6.3) with no files, and which can not be removed, an executed update/download .exe for Firefox 7.0.1 that can not be completely installed due to the failure to update by reboot problem. I'm out of ideas on how to try to resolve these problems. Any help would be greatly appreciated! Thank you

    Try a clean reinstall.
    * Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version or you lose your bookmarks and other data in the profile folder.
    * Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Profile_backup

  • PDF addresses not longer load and display PDF in Firefox and solutions suggest to other users with problem DON'T WORK (work fine in Chrome and Safari)

    This is an ongoing problem with other users. When putting a PDF in address window of Firefox and clicking go to address FIREFOX WILL NOT LOAD AND DISPLAY THE PDF. This problem has come up in questions from other users on your site. NONE OF THE SUGGESTED SOLUTIONS WORK! (trying either the Firefox PDF viewer or the Acrobat viewer as default viewer)
    I am using Firefox 23.0.1 (as some of the other users with the same problem). This was not a problem in the past with Firefox. Safari and Chrome continue load and display PDFs just fine from their addresses. This is a big problem as I now have to inform people who want to view my PDFs NOT TO USE FIREFOX BUT TO USE SAFARI OR CHROME.

    It appears that a link to a PDF on an internet page will not download in Firefox either!
    I went to this page:
    http://www.nasa.gov/connect/ebooks/earth_art_detail.html#.UjYEzrwsU08
    and tried to download the PDF link at the bottom of the page (Download: PDF 11.3 MB) It didn't work! Nothing happens. Tried it in Safari and it worked flawlessly.
    I have a PDF file of my work in the public_html folder on my URL. I give the address generated by that file to people who want to view my work---this works perfectly in Safari and Chrome. As to your other question, can't bookmark it if I can't get to it in Firefox.

  • Javascript-function doesn't work with user nobody

    I recently started to use AJAX with APEX. I defined a Application Process and a Javascript-Function which fetch values from a Lookup-Table into some fields, which works great. Except when I make the page available public (user nobody), then it doesn't work anymore.

    Hello,
    Do you have page 0 (zero) in your application? If you are using page 0 as a parameter in your htmldb_Get function, the page must be public (http://htmldb.oracle.com/pls/otn/f?p=11933:63).
    Regards,
    Arie.

Maybe you are looking for