Javascript IE/Firefox

hello,
I pick up this code in the forum :
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
function deleteItemWithLink(linkObj) {
var toDelete = confirm('Do you want to delete the user?');
if (toDelete == true) {
linkObj.onclick();
</SCRIPT>
<h:commandLink action="#{userHandler.deleteFromRow}" onmousedown="return deleteItemWithLink(this);">
<h:outputText value="#{labels.delete}"
title='Deletes user \"#{user.firstName} #{user.surname}\"'>
</h:outputText>
</h:commandLink>
I work fine with IE but when I try it with firefox the popup is display but the action is executed even if I answer anything to the popup...
how can I make the confirmation work with both IE/firefox ?

Your actual problem is related to Javascript+DOM (DHTML) rather than Java/JSP. I suggest you to repost this at a forum devoted to DHTML. There are ones at webdeveloper.com and dynamicdrive.com. Don´t focus too much on JSP/Struts when posting a question over there, just focus on its generated HTML output (that what you see when you do a ´view source´ on the requested page). That´s namely where Javascript+DOM runs on. Good luck.
That was a deja-vu.

Similar Messages

  • Despite my Javascript for Firefox 23 being "enabled" ( I checked re the "about:config" steps), some websites are still asking me to enable my Javascript.

    Despite my Javascript for Firefox 23 being "enabled" ( I checked re the "about:config" steps), some websites are still asking me to enable my Javascript to view content. Safari works without any problem. OS/X 10.8.4

    These files are hidden to me because my OS/X is 10.8.4 and I cannot make them appear. This is way, way more trouble than it's worth. Thanks for your help. Firefox has lost me.

  • Javascript on Firefox 18

    Over the last couple of weeks I have been getting asked to update to Fx 18.0.1 as I am currently using Fx17.0.1. I was going to do it but then something I read on another forum stopped me.
    A poster on this forum I am a member of said that Firefox has disabled Javascript on his computer and that he can no longer watch videos and read most websites.
    Now is that true that there is no more Javascript on Firefox?
    If it is true then I am sticking with Fx17 for as long as I can as I need Javascript as I watch videos and need certain webpages to function right.
    So what is the Javascript situation with Fx18?

    What cor-el was trying to say is that no, the version of Java you have is out of date. You should uninstall it (and any other versions on your computer) and install the latest, Java 7 update 11.
    However, with that in mind, please note that Java is not at all related to Javascript (there is an unfortunate naming coincidence here but they aren't at all related, this is why alot of people get confused about Java blocks). If you don't use Java it is best to leave it disabled as it is a horrible vector for viruses and attacks.
    So, to sum it up, update to Java 7 update 11. Then install Firefox 18.0.1. This will ensure you are on the most secure and stable version of Java and Firefox.

  • Problem with javascript in Firefox

    Hi,
    In my JSP I call a Javascript function when a radio button is selected and it works fine if I use IE, When I use firefox I get the following error
    Error: document[getNetuiTagName(formId)] has no properties
    Source File: http://gio5wl06.mt.att.com:11100/frSvc/frAtmSvc/gotosalesOrder.do
    Line: 193
    This is my javascript function
    function showLayer(formId, tagId) {
    //alert("showLayer");
    //alert("formId " + formId);
    //alert("tagId " + tagId);
    if (tagId == "abnDataId") {
    //alert("In abnDataId");
    document[getNetuiTagName(formId)][getNetuiTagName("cwmProcessId")].disabled = false;
    if (tagId == "corrId") {
    document[getNetuiTagName(formId)][getNetuiTagName("corrTypeId")].style.visibility="visible";
    document.getElementById("corrTypeLablId").style.visibility="visible";
    I have no idea what the problem is?
    Dhruba

    Hello!
    first of all i don't speek english so i just try to write well but i don't guarantee about the results...
    Now, the problem is that you use the 2 dimension array in the code
    document[getNetuiTagName(formId)][getNetuiTagName("cwmProcessId")].disabled = false;
    If you use this alternative code:
    var inst = document.getElementById(getNetuiTagName("cwmProcessId");
    inst.disabled = false;
    or
    var inst = document.getElementById(getNetuiTagName("cwmProcessId",this);
    inst.disabled = false;
    you can see that your code work well either in firefox than in explorer!
    Try and enjoy!
    Bye!
    Marco

  • How can I disable javascript in Firefox 30 for all users on my Solaris 10 x86 box?

    I have a Solaris 10 box in a secure environment (no Internet) with Firefox 30 installed. I need to lock javascript in a disabled state for all users. I realize each individual user can toggle javascript with about:config, but that is only a per/user activity. I want to set the value of javascript.enabled to false for all users. Additionally, no user should be able to modify this setting.
    Is there a location with a config or prefs file that will affect all users?

    Try: http://kb.mozillazine.org/Locking_preferences

  • How can I get the selected action of content type by javascript from Firefox Options Applications?

    I works on my website, and it have to check the PDF file will be opened in which plugins
    So we have to implement some javascript to check the selected action of Content Type from Tool>Options>Application
    Do we have any javascript code to check this

    You can't check this with code that runs on the server or via JavaScript in the web page.
    Note that current Firefox version do not expose the built-in PDF Reader via the navigator.plugin array, so if you can't detect a plugin than maybe assume that the built-in PDF reader is used with Firefox version 19 and later.
    *Bug 840439 - Expose PDF.JS as a plugin navigator.plugins when enabled

  • Javascript causes Firefox to not respond for a few minutes.

    I have a website form with a large amount of dynamically generated javascript that uses jQuery to handle events. When clicking on radio buttons in the form Firefox 26 will get part way through then stop responding for around two minutes while showing (Not Responding) in the title. If I go into about:config and disable javascript.options.baselinejit.content the form works fine, if I enable that option FireFox becomes unresponsive part way through the form. This started recently but I don't know exactly which version is started on, Firefox 26 definitely has the issue for me. All extensions and plugins have been disabled and "Use hardware acceleration when available" is not selected. Also the form works correctly in Chrome 31, Internet Explorer 7, 8, 9, and 10.

    Hi keviga, would you be inclined to file a new bug for this? You can reference the Baseline JavaScript compiler as the problem. I guess the tricky part is figuring out what is going on in your scripts that is triggering the issue.
    You can submit bugs here: https://bugzilla.mozilla.org/

  • How do I enable JavaScript in FireFox 26.0

    Suddenly I cannot access any of my banking accounts online as they all ask me to Enable JavaScript (have been using them all for years with FireFox0. Also, I cannot even use my Facebook account or log on anymore.
    Everything is asking me to ENABLE JAVASCRIPT and I can find nowhere in FireFox 26 to allow me to do this?
    Please help.

    Yes, you can no longer do this in Tools > Options > Content.
    That setting has been removed from the user interface, so you need to check the related javascript.enable pref on the <b>about:config</b> page instead to make sure it is set to true.
    *http://kb.mozillazine.org/about:config
    You can also check your extensions:
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Javascript (in Firefox 3) takes several minutes to start working when computer wakes from sleep, Mac OSX 10.5.8

    Whenever I wake my Mac from sleep, with Firefox having been left running, some parts of Firefox take several minutes to start working again. These include switching between open tabs and any website functionality that uses javascript, eg gmail. This has gone on through many updates of Firefox. If I quit Firefox immediately on waking the Mac and restart it, everything is OK.

    The following worked for me:
    http://support.mozilla.com/en-US/questions/684867
    "Problem: I had the same problem but with mac osx 10.5.8, Firefox 3.6.6 sometimes prints and sometimes does not, but the preview was always blank and I could not save to pdf file.
    Solution: I downloaded Firefox 3.5.10, installed it on my desktop and opened it, tried print preview and it worked, quit Firefox 3.5.10 and ran 3.6.6 and voila! print preview is working fine and I can save to pdf fine.
    I guess running 3.5.10 fixes the profile in a certain way. I have no idea how that happened but it worked."

  • Access java from javascript in firefox

    Hi,
    I am trying to access java method from javascript.
    It works fine with ie, but firefox somehow brings up the error
    saying the method defined in java is not a function.
    I am calling like.
    document.applets["myapp"].soundAlarm();
    I have put MAYSCRIPT in the applet tag.
    still not works.
    Does anyone have idea ?
    Thanks

    Try with
    document.myapp.soundAlarm();I assume that the name attribute of the APPLET is myapp.
    Note the MAYSCRIPT is useless in your context. MAYSCRIPT is used when from Java you need to access the JSObject.
    See http://www.rgagnon.com/topics/java-js.html for examples.
    Bye.

  • Javascript Mozilla Firefox problem

    == Issue
    ==
    I have feedback about Firefox or would like a new feature
    == Description
    ==
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); window.open('','_self'); window.close(); unable to trigger force close.
    Hello Sir/Madam,
    In a simple example as shown below:
    Detecting browser close in IE
    function ForceCloseWindow()
    if(navigator.appName.toLowerCase()=="netscape")
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
    window.open('','_self');
    window.close();
    else
    try
    window.open("","_self");
    window.close();
    if(window || window.focus)
    window.focus();
    catch(e){
    window.open("","_parent");
    window.close();
    This works flawless. But when I incorporate it in my JScript.js big project and call the javascript function ForceCloseWindow() it did not work :c
    Error message of e.toString() states that 'A script from "http:" was denied UniversalBrowserWrite privileges.'
    My question follows. How can I programmatically enable UniversalBrowserWrite privileges.
    Thank you. Please advise.
    I still love firefox from all the browsers..
    Thanks Thanks.
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    XP
    == Plugins installed
    ==
    n/a

    This issue can be caused by the McAfee Site Advisor extension
    *https://community.mcafee.com/message/203466
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Problema con Javascript en firefox con Ubuntu

    Hola,
    el siguiente comando de Javascript me funciona en Firefox bajo Windows,
    pero me falla en Firefox con Ubuntu.
    var obint=document.getElementById('ajax').getElementsByTagName('a')[0];
    obint.click();
    ¿Alguna idea de porqué ?
    Saludos

    Mi cámara es marca "Nisupa" (O sea, ni su padre lo sabe) y marca las fotos como cámara "4MDSC".
    He visto una Rollei que es exactamente igual por fuera y en características, pero no se si será la misma.
    El problema que veo, tras investigar el tema, es que las fotos que el photoshop album reconoce la fecha aparece como: "sábado, 18 de junio de 2005 17:37:15", mientra que las de mi cámara aparece como "2005/09/03 19:50:52"
    Puede que sea un problema de configuración de formatos de fecha, pero no soy capaz de ver donde decirle al Album que use otro tipo de fecha... o a la cámara que le ponga la fecha en otro formato.
    Esperaré nuevas versiones...
    Gracias.

  • Disabling javascript in firefox 23

    I saw my friend's Firefox beta which did not had any option to disable JavaScript . is it some where else or the option is removed ?
    If it is removed i should look for alternative browser until it comes to stable version of Firefox and leave Firefox for ever.

    Third party programs are a very poor method for something so simple. Now you have to worry about the third party program continuing to work, and whether you can trust an extra party (as I mentioned, even NoScript has done untrustworthy things before).
    About:config is also a very poor method. It takes longer and is more annoying to use. You can't explain it to family members (since you don't want them messing with it). There have been times javascript was causing problems with a website and I could explain how to turn javascript back on when they were done with it. For that matter, I don't even want to be using it all the time since when I'm tired I might double click and change something accidentally (the option is mixed in right in the middle of tons of other stuff).
    For such an important and simple function, these are ridiculously bad methods. I'm in shock Firefox has gone down this dark path.

  • I have no Javascript in FIREFOX (even though it is enabled under preferences) but DO have it in Safari. What can I do pse?

    I have Mac OS X (Version 10.6.8). I have latest Firefox AND have already tried downloading Javascript TWICE. Why do I have
    Javascript on Safari but not on Firefox? How can I fix this pse?

    A lot of JavaScript functionality was killed off in Firefox 7.0.1 and that includes typing or pasting javascript into the location bar (address bar). You had to jump through hoops for Firefox 6 -- now there are no viable solutions for a lot of what we do.
    The alternatives within Firefox that might allow you hobble by are quite inadequate, I would say stick with what works for you for now,
    * [https://support.mozilla.com/en-US/questions/885558#answer-259571 Javascript command not working from address bar | Firefox Support Forum | Firefox Help]
    <p>
    Starting in Firefox 6 javascript in the url-bar runs with a null security principal for security reasons. This means it's almost disabled. You need a bookmarklet or an add-on for a workaround. See question [https://support.mozilla.com/questions/871828 871828].<br>
    [https://support.mozilla.com/questions/https://bugzilla.mozilla.org/show_bug.cgi?id=656433 Bug 656433 - Disallow javascript: and data: URLs entered into the location bar from inheriting the principal of the currently-loaded page]<br>
    <br>
    Starting in Firefox 7 window moving and resizing is no longer allowed with a few exceptions. See question [https://support.mozilla.com/en-US/questions/880032 880032].<br>
    [https://bugzilla.mozilla.org/show_bug.cgi?id=565541 Bug 565541 - Web sites shouldn't be allowed to resize main window]
    The great AwesomeBar features of Firefox have been compromised so that searching of bookmarks from sidebar, library, or location bar is unreliable.
    You could always turn JavaScript off, and had some limitations if you expected or ran into trouble before but now Firefox simply does not perform well and it is all the more exasperating when you find out that most of the troubles result from stripping out code which results in errors slowing things down and now in blocking features that you expect in a browser.

  • Lost JavaScript in Firefox 3.617

    After installing Firefox 4 and finding no support for Norton Identity Protection, I uninstalled 4 and reinstalled 3.617. Then iGoogle came up with a blank page (later blank page included statement that JavaScript is required). Other Google pages are similarly affected. JavaScript is enabled and I reset Firefox in the Norton firewall. JavaScript works in IE. Uninstalled and reinstalled 3.617.

    I assume you do not use NoScript, which allows you to manage JavaScript permissions on a site-by-site basis. (If you do, check whether you have blocked Google.)
    Could you try Firefox's Safe Mode, a diagnostic feature for identifying setting and add-on problems?
    I recommend first backing up your profile folder, which contains your bookmarks and other settings. See the section of this article on backing up your entire profile: [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information].
    Next, try starting Firefox in Firefox
    [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Be careful not to "reset" anything permanently if you didn't back up.
    Does JavaScript work correctly in Safe Mode? If so, you might disable all non-essential add-ons and re-enable them as needed. If not, hmmm, what could it be?

Maybe you are looking for

  • Payment Term/BP on the level of Charge type in FWO

    According to business process I have 2 variants of payment term  for transportation with payer: 1)      Prepaid (paid by Agency1(Payer1) in POL port of Loading) 2)      Collect (paid by Agency2(Payer2) in POD port of discharge) 3)      Today customer

  • My wreak while I met my read Using Laptop away from external hard drive.

    In one location, I use my laptop connected to an external hard drive. My iTunes folder and most of the music files are on the external hard drive. When I try to open iTunes at another location (without the external HD attached) I get an error message

  • Creating Attachment using Function Module

    Hi experts, My problem here is, I need know the Function Module that is used to Create Attachement in Generic Object Services. Currently, i only found this function module: SO_OBJECT_UPLOAD. But i do not really know how to use it. Can anyone here adv

  • Apple Care will not return my Hard drive.

    I have a Power Book G4 1.67 . The hard drive has failed, it is covered under applecare for another 6 months, I have case number, the person on the phone was very nice, they sent the shipping box. I think it's more then just the HD, however. The drive

  • Macbook Pro still Heating Up and faulty GPU

    I've listed a similar problem a while back This time it's a bit different. My macbook pro (early 2008) just a month out of warranty, starts showing distorted video on the screen. Turning it off and back on again just showed a distorted apple and the