You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I don't know .js but am building a website and its included and I have an issue with it. I want to put flexslider inside a modal. I have done this - but on load, the flexslider is min height and width. I saw this earlier post:
**> You need to initialize FlexSlider when you load the modal, in other words, on the click event or callback for the modal, you would call your .flexslider() method then. Not on window(load) or document(ready).
The reason for this is that if you don't, FlexSlider will think the height is zero.**
So I know what the issue is, I just don't know how you do the above.
Hi,
I don't know .js but am building a website and its included and I have an issue with it. I want to put flexslider inside a modal. I have done this - but on load, the flexslider is min height and width. I saw this earlier post:
**> You need to initialize FlexSlider when you load the modal, in other words, on the click event or callback for the modal, you would call your .flexslider() method then. Not on window(load) or document(ready).
So I know what the issue is, I just don't know how you do the above.
My current .js in my page:
<script defer src="jquery.flexslider.js"></script> <script type="text/javascript"> $(function(){ SyntaxHighlighter.all(); }); $(window).load(function(){ $('.flexslider').flexslider({ animation: "slide", start: function(slider){ $('body').removeClass('loading'); } }); }); </script>and the html with the modal and the flexslider placed inside:
I am building a page which has 20 modals, and want to include different slides in each.
If anyone can help me on how to initialise flexslider when loading the modal, I would be very appreciative.
Thanks
The text was updated successfully, but these errors were encountered: