[Album Select] causing IE script warning
picdude
Joined: 2006-06-13
Posts: 176 |
Posted: Fri, 2009-06-19 15:48 |
Gallery URL = http://www.photosbybailini.com/g2/main.php I have been using the Album Select all along in the "tree" configuration. About a month ago, I started seeing this warning when I was logged in as Admin: Stop running this script? A script on this page is causing Internet Explorer to run slowly. If it continues, your computer may become unresponsive. Yes/No If I click "yes", the album tree does not load, which is how I know that the problem is in there. Now I'm getting this warning even when I'm not logged in.... and so are all of my customers who are using IE. I've deleted and reinstalled the latest release of Album Select and also IE 8, but still getting the warning. It ONLY happens with IE. Mozilla, Opera, Safari, etc don't have this problem. My host is at a loss for ideas as am I. Thanks, PS. if you go to the url using IE, you can see the warning for yourself. |
|
Posts: 27300
Does it work with another theme?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 176
Hi Dave,
I tried it with a few different themes and still got the same script warning. The only one that did not produce the warning was the Floatrix theme (flash based) but I wasn't keen on the appearance. Also, there is not much customization available with Floatrix (copyright footer, logo, etc)
I've since had to disable the DHTML Album Select module because it was starting to freeze up my machine. It's unfortunate. The album tree was very handy for navigating my Gallery...
Andrew
Posts: 27300
I can only assume that you have too many items/albums for the browser to handle all the javascript.
I bet that the regular html ( dropdown ) album select module will work.
It could be modified to use css to get the same effect but you woul have to have <li> and css experience to make it all work.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 176
I came to the same assumption. When this first started, I could click "no" and the page including the problem script would load normally. Now, if I click "no" the page freezes up. Since I've added a few more events, it makes sense that there is a finite number of albums the script can process. You are correct, though, that the dropdown album select works fine. However, I have way too many albums to make it practical.
If you or any other developers who may be reading this have the inclination to delve into it further, my suggestion would be to have the script read only the top level albums as needed. Then, when one branch is opened, it can access the album info for only those sub-albums. Since I don't have any script experience, though, I don't even know if that is possible.
Thanks,
Andrew
PS. as a point of curiosity, does it make sense to you that this was only happening with IE? If it's a script problem, then shouldn't it happen regardless of which browser is accessing it? That's one thing I can't wrap my head around...
Posts: 27300
Why only IE you ask? If it works in most browsers it is not a script bug it seems to be a resource memory issue with IE. WHy....That is a question for the guys and gals in Redmond.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 176
now, THAT is interesting! With all the scripts on all the websites in the global community, it took my little ol' album select to find IE's limit.
I may follow up with them....
Thanks Dave.
Posts: 2
I just started seeing the problem using IE8 on a new site that I am developing for a customer. Note: Both sites listed below are hosted by the same hosting company.
On this site http://www.sullivanironworks.com/html/gallery.html, I embedded Gallery 2 as an object and have no problems.
On the new site http://www.kateskreations.biz/html/gallery.php, I tried to be fancier and use a modified embed.php for the gallery. If you click on one of the albums to open it, you get this script message every time. However, if I go directly to main.php (http://www.kateskreations.biz/html/main.php), it works fine.
Weird, huh. I'll keep looking for a cause.
Posts: 176
I never did find a solution, so I deleted the album select module...
Navigation takes a bit more time, but at least the pages load.