views:

78

answers:

1

When I use fancybox for iframe, the loading icon isn't displayed while fancybox is loaded...

How can I fix this problem?

Thanks in advance.

A: 

Fancybox have some bugs or problems when using iframes.

You can edit the source code (not the compressed, packed or minified version) and put this:

$.fn.fancybox.showLoading();

right after this:

} else if (href.match("iframe") || elem.className.indexOf ("iframe") >= 0) {

I think its in line number 131 but I'm not sure you just need to search for it in the source code.

This and nother (more complicated) solutions, are in the support group of Fancybox:

Fancybox iframe loading icon fix

loading indicator

or do a search in the Fancybox support group.

Good look!

Jonathan
There is no such line in fancybox 1.3.1!
Levani
mmm so possible they are talking about an earlier version of the script.... theres nothing else in the support group? maybe you can open a new post there...
Jonathan