Javascript not working in Firefox on Mac OS 10.9.2

I am trying to learn Javascript from a tutorial. I'm using Text edit to create a simple .html file that calls a .js file using the script command. The .html file opens normally in the default browser and can print a message to a simple page. It looks like a window tries to open the .js file but it vanishes before opening. I have checked that Javascript is enabled in Firefox. Opening Firefox in Safe mode does not fix the problem. It also fails to execute the .js file in Safari and Chrome.
This problem happens on three Macs, all running Mavericks 10.9.2. When I try this on a Windows PC the .js file executes as expected.
I've tried everything I can think of including turning off the Firewall in Security Settings. It seems like it has to be something system-wide since it happens in all three browsers. Has Apple implemented some type of blocking of Javascript in Mavericks? Any suggestions for why this is not working on my Macs and what I can do to fix it would be greatly appreciated!

Cor-el: Thank you for noticing that! Turning off smart quotes in Textedit which I am using to create the scripts solved the problem. Everything working as expected now. I hope others using Mac OS 10.9.2 will benefit from this as well.

Similar Messages

  • JQuery/Javascript not working on Firefox and Chrome

    Hi guys, I've had this Jquery/Javascript on my page for a long time. This has stopped working. If the user clicks on buttons on the Apex page, nothing happens.
    It works on IE but doesn't work on Firefox and Chrome. It used to work fine.
    Is there anything I can change to make it work on all 3 browsers?
    Firefox error console shows a syntax error at this point in the script:
    $allButtons.click(function(){
    itemChanged = false;
    var toDo = $(this).attr('data-submitval');
    eval(toDo);
    Please can someone help?
    This is the full script:
    <script type="text/javascript">
    //<![CDATA[
    var itemChanged = false;
    $(document).ready(function(){
    var $items = $(':input');
    var $htmlButtons = $(':button[id]');
    var $templateButtons = $(':button[class]');
    var $allButtons = $($htmlButtons).add($templateButtons);
    $items.change(function() {
    itemChanged = true;
    $templateButtons.attr('data-submitval', function(){
    return $(this).attr('onclick').toString().split('\n')[2];
    $htmlButtons.attr('data-submitval', function(){
    return this.id;
    $allButtons.removeAttr('onclick');
    $allButtons.click(function(){
    itemChanged = false;
    var toDo = $(this).attr('data-submitval');
    eval(toDo);
    $('a').click(function(event){
    if ($(this).children('img[id="P&APP_PAGE_ID._DATE_PICKER_IMG"]').length > 0) {
    event.preventDefault();
    eval($(this).attr('href'));
    window.onbeforeunload = function() {
    if (itemChanged) {
    return 'You have made changes to data on this page. If you navigate away from this page without first saving your data, the changes will be lost.';
    //]]>
    </script>
    Thanks
    Sam
    Edited by: sam on 29-Jan-2013 03:50

    JavaScript doesn't work on any site at all? If particular sites are the issue, or you get specific error messages, please let us know.
    Usually the only two ways to disable JavaScript in Firefox are:
    (1) Options dialog > Content tab<br>
    (2) NoScript add-on (or other security-related add-ons)
    Normally Safe Mode bypasses issues caused by add-on problems or non-default settings, so it's worth considering external issues.
    Does JavaScript work normally in any other browsers you have installed?

  • Javascript not working in Firefox 32.0 - about:config says enabled - but web pages say different

    For example maps not loading on hotel pages. Various other errors appear now on web pages saying ' You must have JavaScript enabled'. I'm not a computer person, but I can see from about:config says its enabled -
    javascript.enabled;true
    Any other suggestions???

    You can open the Web Console (Firefox/Tools > Web Developer).
    Check on the Network tab if any content is blocked and has a file size 0 (zero).
    *https://developer.mozilla.org/Tools/Web_Console
    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    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 not working in Firefox

    Hi
    My javascript looks something like this..
    <script type="text/javascript">
    function formSubmit(){
    var targetURL = "http://www.xyz.com?";
    targetURL = targetURL + "sectorCode=" + searchform.sectorCode.value + "&tradeCode=" + searchform.<portlet>PropertyType.value+"&county=" + searchform.<portlet>PropertyLocation.value +"&Tenure=" + searchform.<portlet>Tenure.value + "&Minprice=" + searchform.Minprice.value + "&maxprice=" + searchform.maxprice.value + "&accommodation=" + searchform.accommodation.value + "&relocatable=" + searchform.relocatable.value + "&franchise=" + searchform.franchise.value + "&duration=" + searchform.duration.value;
    window.open(targetURL);
    </script>
    where searchform is my form name.
    <input>
    this is my submit button...
    while this is working fine in IE upon clicking the button, nothing is happening in Firefox...no javascript errors are being displayed either...
    upon opening the error console in firefox...there is a message saying "searchform is not defined", while the same is being recognized is IE...
    Can anyone please help me in this regard...

    This is a Java forum and JavaScript is not the same as Java. Post your question on a JavaScript forum.

  • Wacom - Application specific features do not work with firefox. - Mac OSX

    I have been in touch with Wacom and they have confirmed the following:
    Wacom tablets, pen and mice, have mappable buttons and features that are programmable to perform whatever functions are desired.
    Furthermore, they can have individual programing for each program being operated. So, say, Photoshop, finder and Safari could all use the same button on a pen, but that button would do different things in each (left click, right click, keystroke etc)
    Firefox, some time ago, broke this ability and ignores/disallows program specific functions to be applied.
    This is the only piece of software I have ever seen that doesnt work with wacom products.
    Please fix this issue.
    (I have a tendency to love applying "Middle click" to the pen's button to allow for page scrolling at a wave of the hand.)

    There is no time limit in Firefox 4+ versions for the history.<br />
    Firefox determines automatically how many pages can be kept without affecting the performance.<br />
    You can see the current value via the reads-only pref places.history.expiration.transient_max_pages on the about:config page.
    See:
    * http://blog.bonardo.net/2010/01/20/places-got-async-expiration
    If you lose the history then make sure that you do not use Clear Recent History to clear the browsing history.<br />
    Also make sure that you do not have cleanup software that might clean up files in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *Firefox > Preferences > Privacy : History: [X] Clear history when Firefox closes > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History

  • Application shortcut for bookmarks toolbar not working on firefox for mac

    OS X allows users to assign shortcut keys to arbitrary menu items. I'm trying to add an application shortcut to firefox to show/hide the bookmarks toolbar (in my case, I'd like to use cmd-ctrl-L, but I've tried others too), however the shortcut key doesn't work. I can see the menu item flash as if the OS is trying to activate it, but the bookmarks toolbar doesn't toggle. Manually clicking the menu item does work.
    Any ideas? Is this a known bug? Am I missing something obvious?

    Nope. Haven't solved it, and I'm convinced I can't from this end. The only thing helping me is the extension I mentioned above, but that fix is very specific to showing/hiding the bookmark bar.

  • Javascript "Play Video" button not working in Firefox

    When clicking on "play video" (java), QuickTime will not open while using firefox. It does work in Google Chrome and IE. I have tried using a clean user profile & allowing popups, and I made sure the Java and QuickTime addons were working and up to date.
    The problem is with twit.tv/twit. Clicking the "Live" link on google.com does play the live stream, but the actual Java buttons are not working in Firefox.
    == URL of affected sites ==
    http://twit.tv/twit

    Make sure that you do not block [[JavaScript]]
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • Silverlight plug-in does not works in FireFox 4 - beta 7 ( Mac OS 10.6.6 ) !!!! What is the problem ? I don't have any installed add-on !!!

    Hi every one
    Silverlight plug-in does not works in FireFox 4 - beta 7 ( Mac OS 10.6.6 ) !!!!
    I don't have any installed Extensions except "Better GReader" and "Video Helper" !!!
    I have problem with Seesmic.com and installing applications that required Silverlight !
    I installed latest version of Silverlight many times.
    Please help me.
    (I don't have any problem with Safari or other Web Browser.)
    Thank You all.

    Silverlight only supports non-64 bit versions of Firefox on OSX (and from Firefox 4 onwards we're shipping 64-bit Firefox to 64-bit OSX users) and unlike with other plugins, we can't just start a 32-bit process to run it because of issues with the silverlight plugin architecture. We're working with the Silverlight team at Microsoft to get those fixed but it's essentially waiting on them.
    (Or you could try to pressure them into releasing a 64-bit Silverlight for Macs.)

  • 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.

  • Flash Player 10.3.183.10 will not work in Safari on Mac OS X 10.5.8

    Mac OS X 10.5.8
    Safari 5.0.6
    Flash Player 10.3.183.10
    Flash Player10.3.183.10 will not work in Safari on Mac OS x 10.5.8
    The instillation says that it is successful, however when using Safari I'm informed I do not have flash player installed. When I check the hard drive, flash player in no where to be found. I have tried all of the troubleshooting from the Adobe website, and I am still stumped. I was able to get the Flash Player to run in firefox 5.0, but not Safari.
    Please Help!!!! I have searched the discussion boards for days now in my spare time and have not been able to find an answer.
    I am not the most savvy person with computers, what am I missing here??

    In my Library/Internet Plug-ins folder I have a file named Flash Player.plugin (it's 22.8 MB however, not 23.9mb) and another named flashplayer.xpt (it's 4 KB however, not856 bytes).
    I am unable to open the Plug-Ins menu (the browser pops up but wont load)...is there another way to check for Shockwave Flash?? When I do a search for "Shockwave" on my hard drive I do find a plug-in named "DirectorShockwave.plugin" (76 KB)
    Also...The "Open using Rosetta" checkbox was already unchecked

  • URL Does Not Work in Firefox, but DOES Work in Other Browsers

    The following URL does NOT work in Firefox. However, it DOES work in Internet Explorer and Google Chrome:
    https://www.ascap.com/ace/
    The main ASCAP URL works just fine. The problem seems to be confined to this link alone. Please fix; thank you!

    There is a server redirect on this URL.
    <pre><nowiki>
    https://www.ascap.com/ace/
    GET /ace/ HTTP/1.1
    Host: www.ascap.com
    HTTP/1.1 302 Found
    Location: https://www.ascap.com/Home/ace-title-search/index.aspx</nowiki></pre>
    If you use a bookmark then try to navigate to the want page starting with the main (home) page.
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • Applet cache is not working on Mountain Lion(Mac 10.8)

    Applet cache is not working on Mountain Lion(Mac 10.8)
    OS Details:  Mac 10.8
    Applet cache is not working on Safari 6 and Firefox 15.0.1 with java 7(provided by oracle) on Mac 10.8(mountain Lion) and even applets are not working  on chrome because its not supporting java 7(64 bit).
    In order to run applets on Firefox and Safari we need to install Java SE6 which provided by Apple otherwise “PlugInProcess” does not work and it show the below warning message.
    For your information I given screen shots below
    ) Safari screen shot with Java Plug-in
         2.) Firefox screen shot with Java Plug-in
         3) Chrome screen shot( it does not have java plugin)
    4) Java cache viewer console
    5) Applet Java console and it is using Java 7
    Kindly review above mentioned problem and suggest us.

    Problem solved.
    I switched to a Western Digital powered Hard Drive from the Toshiba Canvio I was using.
    I suspect the USB 3.0 did not mount correctly after the first save.
    Fortnuately the Canvio does work on my Windows 7 machine.
    Thanks for yur suggestions

  • Npapi or webkit plugin are not working in firefox

    I have a Webkit plugin and NPAPI plugin. Both work fine in Safari but just would not work in Firefox (Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3) .
    about:plugins shows it as installed but when I try to access it from html page none of the entry points in a code are being called.(None of trace statement are being hit)
    I think Firefox has problem loading those plugins.
    I have similar NPAPI plugin working fine in Windows environment on all browsers, but MAC is giving me this problem.
    Does anyone has any ideas of what could be the problem?
    I even took a BASICPLUGIN sample for MAC and it has the same problem. Anyb
    == This happened ==
    Every time Firefox opened

    Christofer,
    I solved my problem after not getting any responses.....
    Turns out that some of my xcode compilation switches had to be changed, send me your minimal code that I can compile and i will help you finding it......My NSAPI plugin works just great with all mac browsers....in fact it is the same code excatly as i have for windows, just had to rename some files from .cpp to .m so that I could yuse some cocoa objects....
    Mark

  • Page is working ok in chrome and IE but not working in firefox. jquery problem i guess

    http://184.170.251.149/raschet-shkafa-kupe
    this page is working correctly in chrome and IE but not working in firefox, i cant click and of the dropdown menus(ДСП, доличество дверей). it was working perfectly prior firefox 18. can you please fix the compatibility problem ?

    I was referring to the second page in my above post.
    I disabled JavaScript as a test after loading the page with JavaScript enabled and that worked.<br />
    I also get the selects to open if I right-click instead of left-click the select.<br />
    That way the select get selected (shows a focus ring) and after that left-clicking works as well .
    This assumes that JavaScript is monitoring the left-click, but that script no longer works properly.
    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • Animation will not work in Firefox.  It works in Safari.

    I created an animation and uploaded it to wordpress.com.  Using Firefox, I went to the website to play the animation.  But the animation wouldn't appear.  I checked it again using the Safari browser.  And the animation appeared and it worked fine.  Why will it not work in Firefox?  I uploaded the newest version of Adobe Flash and installed it.  And I have the most recent version of Firefox on my Mac computer.  Will someone fix my problem please?  Thank you.

    Hello.  Thank you for the information.  I checked if the flash plugin is activated in the Firefox browser using your instructions.  And it is active.  The problem seems to occur with all of the flash containing web pages in my wordpress site.  My art machine animation and other animations on the site do not appear when the pages load.  I checked other websites containing swf file animations and they work.
    I'm providing the information that you suggested.  And it is as follows...
    Operating System:  OSX Yosemite, version 10.10.3
    Web Browsers:  Safari, version 8.0.5 (10600.53.17)
                                      Firefox, version 37.0.2
                                      Chrome, version 42.0.2311.90
    Problem:  In my wordpress.com website, none of the .swf flash files will appear using the Firefox nor Chrome browsers.  But they do in the Safari browser.
    Direct link to the problem sites are as follows:  Firefox- 3 Art Machine | Nora Christians
                   Chrome- 3 Art Machine | Nora Christians
                   Safari- 3 Art Machine | Nora Christians
    The code that I used to upload the .swf file to wordpress.com is the same for all three browsers.  I didn't write any different codes for any specific browser.

Maybe you are looking for