Why scrolltop stop working in firefox 36?

I have a script of jquery scrollTop who works for years, but doesn't matter since I loaded Firefox 36. The script still works in Chrome and IE, so it must be a problem with FF. The script is the following:
function scrollTo() {}
var e = document.getElementById ("findname");
var x = e.options [e.selectedIndex] .value;
var $target = $('#' + x);
var targetOffset = $target.offset () .top;

	$('html, body').animate({scrollTop: targetOffset-15}, 900);

};
And is activated by an onClick event:
< input type = "button" value = "Click to find" onClick = "scrollTo ()" / >

If I change the onclick handler of your button to your actual script, it works:

<input onclick="var e = document.getElementById('findname'); var x = e.options[e.selectedIndex].value; var $target = $('#'+ x); var targetOffset = $target.offset().top; $('html, body').animate({scrollTop: targetOffset-15}, 900);" class="switchbutton3" value="Click to find" type="button">

Makes me think that Firefox can be interpreted

onclick="scrollTo()"

to refer to the function native window.scrollTo () instead of your function. I don't know why it wasn't a problem in the past, but maybe if you rename your function into something like scrollToName() that will fix it?

Tags: Firefox

Similar Questions

  • FDM has stopped working with firefox

    Free Download Manager has stopped working with firefox after I speedup firefox opening. (not after restart or update of firefox) Before that, I used FDM on firefox. I already try with restart firefox and follow-up of the implementation under the quiz "Windows Media or other plugins stopped working after Firefox update | Firefox Help", but none of them worked.

    When you say after you speed up Firefox, do you mean you used the reset feature? You can tell because Firefox will create a new 'Old Firefox Data' folder on your desktop when you reset.

    The Reset function deletes your extensions as part of the cleaning process. You probably need to reinstall FDM from its original source. Maybe the Addons site? https://addons.Mozilla.org/Firefox/

  • Google has stopped working in firefox 28

    Search Google has suddenly stopped working in firefox 28. I noticed when I try to access the url says https://accounts.google.com/CookieMismatch google.com site. I get the same when trying to do a google search with that on the page

    We have detected a problem with your cookies settings.
    Enable cookies

    Make sure that your cookies are enabled. To enable cookies, follow these browser-specific instructions.
    Cookies and empty the cache

    If you have cookies enabled but are still having problems, clear the cache and cookies of your browser.
    Adjust your privacy settings

    If your cache and clearing cookies doesn't resolve the issue, try adjusting the privacy settings of your browser. If your settings are up, manually add www.google.com to your list of allowed sites. To learn more
    I have tried everything I can think of including reboot and uninstall then reinstall firefox. Google works fine in Internet Explorer. Any thoughts?

    See also:

    You can control and manage permissions for the domain in the tab currently selected through these steps:

    • Click on "Site Identity" (globe/lock) in the address bar
    • Click on 'More information' to open ' tools > Page Info "with the Security tab is selected
    • Go to the permissions tab (Tools > Page Info > permissions) to check the permissions for the domain in the currently selected tab

    See also:

  • My Epson printer has stopped working with Firefox today. It test pages works on laptop and works with IE. Until today, he has worked with Firefox. Why can I not print anything from the internet with Firefox?

    Until today, I did everything with Firefox. Then I was on Paypal and went to print a shipping label and the printer will not work. I went to troubleshoot page and printed a test page. I uninstalled my printer and then re-installed. Still would not work from a Web page. I did a system restore. Still did not work. Called Epson. They say that it is a problem of Firefox because it works on the pages of specifications and testing. I installed IE and the printer works. What happened and how can I return to work with Firefox?

    Try of the reset described here:

    http://KB.mozillazine.org/Problems_printing_web_pages#Reset_pr...

  • Bookmarks have stopped working in Firefox 41.0.1

    Bookmarks have stopped working (i.e. I can't create new ones) in Fx 41.0.1. My old favorites are still there and they still work as expected. In the past, when I created a bookmark (' bookmarks > Bookmark this page') I would get a dialog box so that I could determine whenre the bookmark has been going. Now I get nothing, and I can't find any new bookmark.

    I don't know exactly when Fx itself 41.0.1 upgrade, but I first noticed this problem 2-3 days ago.

    Hi, it is possible that the update has interfered with one of your extensions - a number you need! So, try Firefox Mode safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    If it's OK in Mode without failure, you will need to temporarily disable all of your extensions one by one until you find the culprit.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Video playback stopped working in Firefox until I DISABLED the plugin of primetime content decryption module

    From one day to the next video (youtube, Vimeo, etc) stopped not working in Firefox. I checked my plugins/addons and discovered the plugin Adobe "primetime content decryption module" which I had not noticed previously had been installed. I've disabled the plugin and found that the video playback was still functional.

    I realize the Primetime plugin is intended to facilitate playback of certain content (DRM), which would not otherwise play with Silverlight/Flash plugins, but unless that I turn it off it's actually prevents me from normal video content playback.

    As this is a Firefox/Adobe plugin suggested I prefer it to work as expected rather than disable/remove it.

    colmacc said

    From one day to the next video (youtube, Vimeo, etc) stopped not working in Firefox. I checked my plugins/addons and discovered the plugin Adobe "primetime content decryption module" which I had not noticed previously had been installed. I've disabled the plugin and found that the video playback was still functional.

    I realize the Primetime plugin is intended to facilitate playback of certain content (DRM), which would not otherwise play with Silverlight/Flash plugins, but unless that I turn it off it's actually prevents me from normal video content playback.

    As this is a Firefox/Adobe plugin suggested I prefer it to work as expected rather than disable/remove it.

    A quick update to my problem noted above (maybe I should try this first)

    I ACTIVATED the plugin once more see if it would cause video playback yet, but everything seems to be ok now (IE, Primetime plugin is activated and all videos play normally)

    Will report if the problem arises again

  • NoSquint 2.1.9 has stop working in Firefox 30.0?

    After that I upgraded to 30 NoSquint Firefox will not work. I keep my office to 125% and kept NoSquint at 80%, but now it's 100% and nothing I try helps. I'm confused.

    IF she stopped working, where can I find the previous version of Firefox? I can't surf with all that huge.

    NoSquint should still work in Firefox 30, but you need to install an add-on that restores the add-on bar.

    If you have extensions to place toolbar buttons in the bar of the add-on so you need an extension like CTR to restore this toolbar.

  • Java has stopped working with Firefox

    I've never had a problem before, but now I can't get Java to work. I tried to use Google Drive with Firefox, but he said I had to activate Java get a feature to work. As far as I knew, he was already activated.

    So I removed the old versions, then downloaded and installed Java, and now it does not work with Firefox. I uninstalled and reinstalled Firefox with no difference. Under modules, it says Java is enabled, but no site it doesn't recognize. Java site cannot check it out when I try to test it.

    It's very frustrating because many sites do not work without it. I'm doing something wrong? It is installed, it is there, but it just didn't happen to Firefox. It works fine in other browsers, but I had rather not use other browsers.

    Thank you for your help.

    You should run the latest version of Java, since outdated versions and insecure Java are blocked in Firefox. See How to enable Java on trusted sites

    If you not see Java (TM) Platform SE 7 U45 in the list of the Plugins of Firefox Add - ons, then you have the latest version installed.

    Ochd12, you still have problems with Java? Your information troubleshooting programming ' javascript.enabled: false ' which may cause some plugins to stop working (ref.)

    To test this, please enable Javascript as follows:

    1. In the address bar, type Subject: config and press enter. The subject: config "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise!, to continue on the subject: config page.
    3. In the list of preferences, search for javascript.enabled.
    4. Click this preference, and then click reset to reset the value to "true" (the default).
  • CTRL + H and CTRL + B have stopped working for Firefox. All other commands CTRL works. What is the problem and how to fix it?

    Whenever I want to open my history (CTRL + H) or Favorites (CTRL + B), I use these commands. They have always worked. Yesterday, they mysteriously stopped working. All other commands CTRL + KEY still works perfectly.

    I did not anything out of the ordinary in the last few days, and I tried to restart my computer. What could be the cause of this?

    Thank you.

    Wow - I restarted it in safe mode, opened again normally and CTRL + H and CTRL + B running again.

    I don't know why, but it worked. Thank you.

  • Auto scroll has stopped working in Firefox 3.6.28 for Mac OS 10.4

    I have two desktops Mac G4 and have always had automatic scrolling in Firefox. Now the feature no longer works. I do not remember recently updates to Firefox, but cannot go beyond my current version, 3.6.28 because the machines are not Intel.

    Automatic scrolling is very useful. I tried to check the preferences... AutoScroll is checked. I tried to restart. No luck. I can not start safe mode because there is no option for this.

    If there is any fix for this, it is not apparent on the Firefox help site.
    So any suggestion that would restore this feature will be very appreciated. It doesn't seem to be a plug-in, or and add - we. My feeling is it may be a necessary process... but I have no idea how to do that. Yet once, help restore the popular auto-scroll. He worked for years... all I had to do was press the central button of the mouse. He could go slow and faster. Now what happens when I press the middle button, it's that I get my apps dashboard. Hmm.

    Thank you!

    No need to do safe mode, what I discovered the problem seems to be in the control panel mouse settings. Deactivation of these brought AutoScroll - Hooray! Although I don't exactly remember to change all settings before automatic scrolling stops working.

    That, in any case was the apparent difficulty. Hope this helps someone else's similar problem

  • Why loadvars stop working when I gave him the field?

    Maybe you can understand this one.

    When I specify the full url to load vars, including field it stops working when I put the SWF on the server. However if I load the SWF locally it loads the page from the remote server. I find that I must take the domain of the server of the argument to make it work on the server, as follows:


    var sendVars = new LoadVars();

    var result: LoadVars = new LoadVars();
    result.onLoad = function(success:Boolean)
    {
    _root.dataStr = Success +""+ result;
    }

    It works when I load the SWF file on my local computer, but not when I put it on my web server:
    sendVars.sendAndLoad (" http://myserver.com/myFile", is translated, "POST");

    works when I put it on the web server, but not when the SWF file is local (of course):
    sendVars.sendAndLoad ("myFile", result, "POST");


    No idea what I am doing wrong?

    Turn off must be a "crossdomain.xml" on your server file to allow access to the files of other sovereign wealth funds. For example:

    http://www.Flash-MX.com/crossdomain.XML

    Contains:




    It is clear to me why this is never mentioned in the docs of loadvars.

  • Why used to work with firefox 22 norton?

    the memorandum stipulates that Norton will not work with firefox. I don't want to give up my security. How will this work?

    Hello, according to norton toolbar is compatible with firefox 22. Please run the liveupdate from norton repeatedly & until all components are up-to-date. Additionally, make sure that the toolbar is enabled under firefox > addons > extension thereafter.

    For more information, refer to http://community.norton.com/t5/Norton-Toolbar-Norton-Identity/Firefox-22-Support-for-Norton-Toolbar/td-p/979947

  • All drag and drop functionality stopped working in Firefox 16 / Firefox 16.0.2

    Note that when it stopped working exactly but all drag and drop functionality work more... images, URLS, tabs... you name it. I was on 16 FF and upgraded to 16.0.2 without help. SafeMode... same behavior. Disable each add-on single and plugin... same thing again. using the default theme.

    What's left to try?

    I am running Windows XP SP3.

    A complete remission to zero of the system got things working again for me. Not ideal, but I'll take it for now.

  • Why IE stops working when you try to download a flie?

    I try to download anything, IE stops working and closes.

    Hello

    You can try resetting Internet Explorer as follows: be aware that this will remove bookmarks and saved passwords etc

    Open windows control panel, open Internet Options, click the Advanced tab, and then click the reset button.  Click 'Yes' or 'Ok' for all additional guests needed to complete the process.

    Kind regards

    DP - K

  • Why acrobat stop working after 30 days?

    I installed cs6. Every 30 days since the initial installation Acrobat stops working. If Acrobat uninstall and reinstall... it works very well for more than 30 days. It's embarrassing. How can I solve this problem?

    Hi POP_Patti,

    Try the steps in the link below:

    http://helpx.Adobe.com/Creative-Suite/KB/trial--1-launch.html

    Concerning

Maybe you are looking for