Problem launching Fancybox via javascript
-
Hi,
I’m trying to show some content in Fancybox using javascript only, as suggested here at #6. Start FancyBox on page load:
https://fancybox.net/blogWhen I try this, I get a console error:
TypeError: loading is undefined loading.hide();
What might be causing this problem?
My code looks basically like this:
jQuery(document).ready(function ( $ ) { $.fancybox( '<h2>Hi!</h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis id et neque</p>', { 'autoDimensions' : false, 'width' : 350, 'height' : 'auto', 'transitionIn' : 'none', 'transitionOut' : 'none' } ); });
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Problem launching Fancybox via javascript’ is closed to new replies.