Author Topic: Works in firefox but crashes in IE  (Read 12349 times)

boogiechild

  • Newbie
  • *
  • Posts: 3
    • View Profile
Works in firefox but crashes in IE
« on: 07 January 2008, 23:47 »
I'm not too sure why it would be doing this, its a wonderful component. I have it working in firefox, and its kind of slow, which is ok, its working. But as soon as I go to Internet Explorer, which majority of the population uses by default, the main photo page loads with the galleries listed, but once you click on a gallery, it crashes and gives an error that it could not load. ???

I searched this forum to see if it happened to anyone else, but didnt see it...so here is my post.

Check this out on Firefox and IE, and submit any help if you can explain it. Thank you! ;D

http://onthelisttv.com/main/index.php?option=com_apa&Itemid=48


Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Works in firefox but crashes in IE
« Reply #1 on: 08 January 2008, 01:52 »
Hi,

Can you please test with default Joomla! template and see if the error persists.

boogiechild

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Works in firefox but crashes in IE
« Reply #2 on: 08 January 2008, 02:27 »
Ok update: I switched to the default to check it out real quick, and though ajax is still slow in firefox, it did infact work in IE under the default template.

Real Question is now, how do I get it to work in IE under the current template I have now? Any ideas, suggestions?

Thanks for responding quickly

Domenic aka boogiechild

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Works in firefox but crashes in IE
« Reply #3 on: 08 January 2008, 15:50 »
Hard to say, this error usually occurs when JS tries DOM manipulation before it's closed and ready. But my script doesn't do that. There could also be some JS collisions with the JS used in the template.
Here is some explanation (for my own reference): http://clientside.cnet.com/code-snippets/manipulating-the-dom/ie-and-operation-aborted/

You can send FTP details + admin password and I will do some experiments on your site and try to fix it.
« Last Edit: 08 January 2008, 15:54 by Saka »

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Works in firefox but crashes in IE
« Reply #4 on: 08 January 2008, 20:08 »
OK, looks like I've fixed it.

The problem seems to be occuring when 2 different events are added on domready, one in template and one in APA.

What I did is remove the APA event registration. To fix it open the file:
./components/com_apa/js/slimbox.js
Locate the follownig line:
window.addEvent('domready', Lightbox.init.bind(Lightbox));
Comment it out so it reads:
//window.addEvent('domready', Lightbox.init.bind(Lightbox));
« Last Edit: 08 January 2008, 21:09 by Saka »

boogiechild

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Works in firefox but crashes in IE
« Reply #5 on: 08 January 2008, 20:19 »
 ;D

Indeed it does work now, I've tried it out, thanks for doing that... it is weird the way that happens. Hopefully this will help if anyone else runs into this issue.

Thanks again Saka for your help!

Domenic

*Salvo*

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Works in firefox but crashes in IE
« Reply #6 on: 17 May 2008, 15:09 »
Hello, Saka.
After have bought your product and installed Ioncube it works...but with the same bug reported here.
Quote
What I did is remove the APA event registration. To fix it open the file:
./components/com_apa/js/slimbox.js
Locate the follownig line:
window.addEvent('domready', Lightbox.init.bind(Lightbox));
Comment it out so it reads:
//window.addEvent('domready', Lightbox.init.bind(Lightbox));

I did it into the /com_apa/js/slimbox.js, but is out of my knowledge how to modify  the template (VersatilityIII) in order to fix the bug with IE. Here is a sample
Just let me know, please, wich file did you change in the template not-default.
Have a great day.


*Salvo*

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Works in firefox but crashes in IE
« Reply #7 on: 18 May 2008, 20:46 »
I did not change the template, only the slimbox.js file.
You seem, however, to have a JS error on your site, try using the default template.

*Salvo*

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Works in firefox but crashes in IE
« Reply #8 on: 19 May 2008, 09:06 »
What I did to change behaviour in IE was a change in apa folder Js slimbox.js at the end of the file from:

Code: [Select]
function initLightbox() { window.addEvent('domready', Lightbox.init.bind(Lightbox)) }

window.addEvent('domready', Lightbox.init.bind(Lightbox));

to

Code: [Select]
function initLightbox() ;//{ window.addEvent('domready', Lightbox.init.bind(Lightbox)) };

//window.addEvent('domready', Lightbox.init.bind(Lightbox));

But I guess it's a very dirty coding as I did. And of course the fading effect left, and IE gives me an error as you stated.
Any suggestion is really appreciated, Saka.

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Works in firefox but crashes in IE
« Reply #9 on: 19 May 2008, 09:55 »
It seems it's different depending on template you use and the size of the site.
Please send the access info and FTP on mail and I will take a look on your site.

*Salvo*

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Works in firefox but crashes in IE
« Reply #10 on: 19 May 2008, 10:01 »
Great, thanks  ;)

*Edit: sent-
« Last Edit: 19 May 2008, 10:10 by *Salvo* »

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Works in firefox but crashes in IE
« Reply #11 on: 19 May 2008, 11:15 »
Looks ok with only the last line commented out:
Code: [Select]

function initLightbox() { window.addEvent('domready', Lightbox.init.bind(Lightbox)) };

//window.addEvent('domready', Lightbox.init.bind(Lightbox));


*Salvo*

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Works in firefox but crashes in IE
« Reply #12 on: 19 May 2008, 11:30 »
I've tried yesterday..but it didn't work.
Now it's absolutely perfect!!!
A big  and sincere thank you, for your professional and discrete support!!!!!

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Works in firefox but crashes in IE
« Reply #13 on: 19 May 2008, 13:12 »
No problem.

Just to let you all know, I added some code to v1.4.3 that will check if domready event is previously sent and add it only if needed. That should make this annoying "operation aborted" error on IE go away regardless of template you use.

If anyone should see this error on APA >=1.4.3 feel free to post here.

whitewitchzita

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • natures nexus
Re: Works in firefox but crashes in IE
« Reply #14 on: 26 June 2008, 01:15 »
 :)
I'm using the latest version of APA and when I view it in firefox I get operations aborted error,

Ruth