FancyBox 1.3.4 jquery issue in IE8 and IE7

I was hoping that someone can help me with this fancybox plugin issue.

Problem is in the IE7 and IE8. Error - SCRIPT87: Could not get the display property. Invalid argument.

As I noticed scripts break on this line:

            $(fx).animate({prop: 1}, {
                 duration : currentOpts.speedIn,
                 easing : currentOpts.easingIn,
                 step : _draw,
                 complete : _finish
            });

I'm using jquery version 1.4.2

live example and issue on this link: http://goo.gl/x0rF7

Answers


You are adding 3 instances of jQuery when you only need one (ideally the latest version): http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

http://www.crystalhotel-belgrade.rs/test/plugins/content/simplepopup/jquery-1.4.3.min.js

and an empty call to http://www.crystalhotel-belgrade.rs/test/jomres/javascript/jquery-1.4.2.min.js

.....Also you are loading jQuery UI twice

http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js

http://www.crystalhotel-belgrade.rs/test/jomres/javascript/jquery-ui-1.8.5.custom.min.js

IE is more susceptible to this kind of conflicts/errors than other browsers. Try reducing your calls to a single instance of each script and beware of the order (jQuery first and jQuery plugins after)

Additionally, make sure that the DOCTYPE is the very first line of your html document (not preceding spaces or comments), otherwise IE will fail to run in standards mode hence fancybox won't work properly.


Need Your Help

jquery ajax call on button click validation not working

javascript jquery ajax

I'm submitting a form on a btn click using jquery ajax call. I'm doing form validation and if input is not valid then need to stop the ajax call. I've tried the following code but form submits ever...

Change tab names in app

android singleton

I have in my settings page a toggle. The toggle switches languages from English to french. It works at changing all the labels to french but the tab bars are staying the same.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.