Go Back   TechArena Community > Technology > Technology & Internet
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links


Website broken after updating to Mozilla Firefox 10

Technology & Internet


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-02-2012
Member
 
Join Date: Feb 2012
Posts: 50
Website broken after updating to Mozilla Firefox 10

Sponsored Links
hello recently i have upgraded my Firefox browser to Mozilla Firefox 10 and after that i have found some issue on mine website. my site is working properly with any issue but last night when i open this on Mozilla Firefox 10 i have got the below error message:
Quote:
mouseWheelForSite is not defined
jQuery( mouseWheelForSite );
i am getting this issue error message on Firefox 10 only and not in other browser. can anyone suggest on this issue and so that i can solve mine issue.


Code:
//to detect if it's a mobile
if(jQuery.browser.mobile) {

     jQuery('#frameHide').remove();
             
     jQuery( fancyboxMobileVer );

     //this is a test targeted to fix webkit mobile issue
     if(thisIsWebkit) {

          var fixcurvetextformobilewebkit = jQuery('<img />').attr('src', '/files/theme/fix-curve-text-for-mobile-webkit.png');
          var warpedJa = jQuery('#warped');

          jQuery(warpedJa).append(fixcurvetextformobilewebkit).find('span').remove();

          jQuery(warpedJa).css({ 'margin-top' : '185px', 'margin-left' : '-292px', '-webkit-transform' : 'scale(1) rotate(.25deg) translate(0px, 0px) skew(0deg, 0deg)', 'transform' : 'scale(1) rotate(.25deg) translate(0px, 0px) skew(0deg, 0deg)' });
     }

}

//opera mobile fails above test, so this is a test for opera mobile
else if( navigator.appVersion.match(/Android/i) || navigator.appVersion.match(/X11/i) ) {

     jQuery('#frameHide').remove();

     var bnFix = jQuery('<img />').attr('src', '/files/theme/bn.png');

     jQuery('#bnBackWelcome').append(bnFix).find('p').remove();

     jQuery( fancyboxMobileVer );

}

//this is desktop version, here is Firefox error
else {

     jQuery(myBody).css({ 'overflow' : 'hidden' })

     //Mouse Wheel Actions
     jQuery( mouseWheelForSite );  //line 469 which error occur in Firefox 10 

     function mouseWheelForSite() { //line 471
          jQuery(htmlBody).mousewheel(function(event, delta) {
               var dir = delta;
               if(dir>0) {
                    myPage = 1;
                    jQuery(htmlBody).stop().animate({ scrollTop: jQuery(wrapper).offset().top }, 1500, 'easeOutExpo');
               } else if(dir<0) {
                    myPage = 2;
                    jQuery(htmlBody).stop().animate({ scrollTop: jQuery(mapPage).offset().top }, 1500, 'easeOutExpo');
               }
               event.preventDefault();
          });
     }

     jQuery( fancyboxDesktopVer );

}

Reply With Quote
  #2  
Old 02-02-2012
Member
 
Join Date: Oct 2011
Posts: 77
Re: Website broken after updating to Mozilla Firefox 10

Hello i have my website and this running properly without any issue and i have never get the any error code in Firefox 10 and Firefox 9. currently i am using windows 7 with Firefox 10.
Reply With Quote
  #3  
Old 02-02-2012
Member
 
Join Date: Jul 2011
Posts: 278
Re: Website broken after updating to Mozilla Firefox 10

As i have sen code jQuery( mouseWheelForSite ); defined only executed for Opera Mobile and opera but not for the Firefox and i think your getting this issue due to that so therefore something wrong with your code and so your getting this issue.
Reply With Quote
  #4  
Old 02-02-2012
Member
 
Join Date: Jul 2011
Posts: 363
Re: Website broken after updating to Mozilla Firefox 10

Quote:
As i have sen code jQuery( mouseWheelForSite ); defined only executed for Opera Mobile and opera but not for the Firefox and i think your getting this issue due to that so therefore something wrong with your code and so your getting this issue.
Here this function mouseWheelForSite(){} which is only executed if it's desktop and reason for applying the statement for desktop because to run event while user used mouse wheel. but while doing this Firefox not working and i am getting error and i am facing this on Firefox browser only not other browsers..
Reply With Quote
  #5  
Old 02-02-2012
Member
 
Join Date: Jul 2011
Posts: 386
Re: Website broken after updating to Mozilla Firefox 10

Reference should be located after its definition and so therefore you should include jQuery( mouseWheelForSite ) to function after defining. so totally code look like this:


Code:
//Mouse Wheel Actions
-                jQuery( mouseWheelForSite );

                 function mouseWheelForSite() {
                    jQuery(htmlBody).mousewheel(function(event, delta) {
                        var dir = delta;
                        if(dir>0) {
               
                             myPage = 1;
               
                             jQuery(htmlBody).stop().animate({
                                 scrollTop: jQuery(wrapper).offset().top
                             }, 1500, 'easeOutExpo'); 
                        } else if(dir<0) {
               
                               myPage = 2;
               
                               jQuery(htmlBody).stop().animate({
                                 scrollTop: jQuery(mapPage).offset().top
                               }, 1500, 'easeOutExpo');
                          }
                        event.preventDefault();
                    });
                 }
+               jQuery( mouseWheelForSite );

                 jQuery( fancyboxDesktopVer );
Reply With Quote
Reply

  TechArena Community > Technology > Technology & Internet


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Website broken after updating to Mozilla Firefox 10"
Thread Thread Starter Forum Replies Last Post
Broken server certificate UI on Mozilla Firefox Grayson Technology & Internet 3 02-11-2011 10:48 PM
Add-ons crashing after updating Mozilla Firefox Kedar!nath Technology & Internet 7 15-09-2011 11:39 AM
Toolbar icons are broken under Mozilla Firefox 4 Fatendra Technology & Internet 5 24-03-2011 07:46 PM
Cannot Log into website using Mozilla firefox Colten Technology & Internet 5 03-02-2010 12:51 PM
How to bookmark a website in Mozilla Firefox? Zipp Windows Software 4 02-04-2009 05:18 PM


All times are GMT +5.5. The time now is 02:34 AM.