Error in gk.script.js

GK User
Wed Nov 30, 2011 10:37 am
Hi NormanUK

I use your JOOMLA 1.5 VERSION EDITS

BUT in IE I get an script error all the time:

gk.script.js, linje 93 tegn 6
popup_overlay.setStyle('display', 'block');

something like : value of setstyle cant be set

Can you help remove this error!

regards
bison
User avatar
Expert Boarder

GK User
Wed Nov 30, 2011 11:03 am
I don't think this has anything to do with edits but most likely a javascript conflict on frontpage. Can you please try clicking on login button while viewing an article so its a plain html so we can see if it causes the same error.
User avatar
Platinum Boarder

GK User
Wed Nov 30, 2011 11:53 am
normanUK wrote:I don't think this has anything to do with edits .


Hi NormanUK

What I meant by edits, was your custom code for making login and register go to jomsocial...

Have testet and the error is on every page of the site...
www.kameratest.dk

regards
Bison
User avatar
Expert Boarder

GK User
Wed Nov 30, 2011 12:23 pm
i ve checked your site with ie 9 and i can't see any errors, whats your ie version ?
User avatar
Platinum Boarder

GK User
Wed Nov 30, 2011 1:09 pm
My ie version is:Version 9.0.8112.16421

Errors:

www.kameratest.dk/ie-error1.jpg

www.kameratest.dk/ie-error2.jpg

regards
Bison
User avatar
Expert Boarder

GK User
Wed Nov 30, 2011 1:29 pm
I am using the same version but seriously i don't have any problems same as yours. If you can try it with another computer and ie to see if problem still occurs.
User avatar
Platinum Boarder

GK User
Wed Nov 30, 2011 2:07 pm
Have tested on at least 20 different pc and lap tops with the same result....

Is there a way to just remove that script, I mean since we customized the login code, we dont use that popup feature at all anyway...
User avatar
Expert Boarder

GK User
Wed Nov 30, 2011 2:25 pm
Of course you can remove pop-up functions itself.

Code: Select all
   if($('btn_login') || $('btn_register')) {
       var popup_overlay = $('gk-popup-overlay');
       popup_overlay.setStyle('display', 'block');
       var popup_overlay_fx = new Fx.Style(popup_overlay, 'opacity', {duration:200}).set(0);
       var opened_popup = null;
       var popup_login = null;
       var popup_login_h = null;
       var popup_login_fx = null;
       var popup_register = null;
       var popup_register_h = null;
       var popup_register_fx = null;
       
       if($('btn_login')) {
          popup_login = $('gk-popup-login');
          popup_login.setStyle('display', 'block');
          popup_login_h = popup_login.getElement('.gk-popup-wrap').getSize().size.y + 8;
          popup_login_fx = new Fx.Styles(popup_login, {duration:200, transition: Fx.Transitions.Circ.easeInOut}).set({'opacity': 0, 'height': 0, 'margin-top':0});
          $('btn_login').addEvent('click', function(e) {
             new Event(e).stop();
             popup_overlay_fx.start(0.85);
             popup_login_fx.start({'opacity':1, 'margin-top': -popup_login_h / 2, 'height': popup_login_h});
             opened_popup = 'login';
          });
       }
       
       if($('btn_register')) {
          popup_register = $('gk-popup-register');
          popup_register.setStyle('display', 'block');
          popup_register_h = popup_register.getElement('.gk-popup-wrap').getSize().size.y + 8;
          popup_register_fx = new Fx.Styles(popup_register, {duration:200, transition: Fx.Transitions.Circ.easeInOut}).set({'opacity': 0, 'height': 0, 'margin-top':0});
          $('btn_register').addEvent('click', function(e) {
             new Event(e).stop();
             popup_overlay_fx.start(0.85);
             popup_register_fx.start({'opacity':1, 'margin-top': -popup_register_h / 2, 'height': popup_register_h});
             opened_popup = 'register';
          });
       }


By the way did you disable any login modules in position login?
User avatar
Platinum Boarder

GK User
Wed Nov 30, 2011 2:31 pm
There is NO login modules active.. meaning mod_login is disabled

regards
bison
User avatar
Expert Boarder

GK User
Wed Nov 30, 2011 4:10 pm
Hi NormanUK

I removed the popup script, but now I get these errors


SCRIPT1006: Tegnet ')' was expected gk.script.js, linje 129 tegn 1

SCRIPT5009: 'gkAddEvent' is not defined dropline.js, linje 154 tegn 1

Do I have to remove even more ??
User avatar
Expert Boarder

GK User
Wed Nov 30, 2011 10:23 pm
I ll have a look at this properly when i get back home in the morning...
User avatar
Platinum Boarder

GK User
Thu Dec 01, 2011 11:00 am
I have done new edits and checked with IE9 and i cant see any problems at all.
I have even checked your website from my work computers using IE9 and again no problems.

if this was working fine and recently stopped working then i would think you've added or installed or enabled a extra component/plugin/module that uses js and thus conflicting with gk scripts. But then again i should also see this error which i cannot.

So my question remains can you really see these errors from another computer.

Steps i follow is simply going to your website url and clicking on login or register links. Using ie9 of course.

If this happens while trying to login in when entering username and password then if you see these errors by all means correct me...

It is difficult when we cant see an error that we are trying to correct.

As for the javascript removing functions by removing below where i have posted does not give me any problems.

I believe i have had your login details , if they are still correct and valid i ll try to login into your website later on...

Let me know. See you around.
User avatar
Platinum Boarder


cron