IE8 error-Object doesn't support or method (modal.js)

Phoca Gallery - image gallery extension
almamun
Phoca Member
Phoca Member
Posts: 20
Joined: 03 Aug 2008, 22:54

IE8 error-Object doesn't support or method (modal.js)

Post by almamun »

Hi,
My version is 2.5.6
I'm getting an error in Internet Explorer 8

Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: IE8 error-Object doesn't support or method (modal.js)

Post by Jan »

Hi, modal box is a part of joomla framework and is called by joomla methods. maybe you should check all the code which can call it on your site :(
By which action you get this problem?
If you find Phoca extensions useful, please support the project
pizanti
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Oct 2009, 14:54

Re: IE8 error-Object doesn't support or method (modal.js)

Post by pizanti »

I have this problem too...it is only happend when loading the phoca gallery, i am using the JAK lightbox so i don't need the modal.js inserted in the code...so i stripped it out of the code...still, i am getting a second error now:

Code: Select all

Message: Object doesn't support this property or method
Line: 24
Char: 3
Code: 0
I have looked at the code and it is becuase i have the following code when i load phoca gallery:

Code: Select all

 <script type="text/javascript">
 
		window.addEvent('domready', function() {
 
			SqueezeBox.initialize({});
 
			$$('a.modal-button').each(function(el) {
				el.addEvent('click', function(e) {
					new Event(e).stop();
					SqueezeBox.fromElement(el);
				});
			});
		});
  </script>
so the question is why this is loading and how can i remove this code? , what files are responsible for loading this code when phoca gallery is working?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: IE8 error-Object doesn't support or method (modal.js)

Post by Jan »

Hi, modal box is a part of Joomla! so it can be loaded by other extensions (modules, template) too. but it is loaded in case e.g. if JAK is used as JAK doesn't support iframe loading, for some detail windows (info, map) you need some other detail window method.


see this too:
https://www.phoca.cz/documents/2-phoca-g ... ent/24-faq
(5)
Jan
If you find Phoca extensions useful, please support the project
Post Reply