Jquery problem |
[eluser]Unknown[/eluser]
I got a bit of a problem with my photogallery! my views are loaded from a template.php with this: Code: <?php $this->load->view('includes/header'); ?> and from controller i pass the $page variable; in my header i declared the jquery Code: <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'></script> Thanks for your replyes!
[eluser]weboap[/eluser]
you are trying to execute the .flexslider(); before the div is loaded.... use instead Code: $(document).ready(function() { http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
[eluser]Anonymous[/eluser]
Code: $(window).load(function() { You should always use document.ready tho To help you we must have more code (HTML) to find the problem.
[eluser]Unknown[/eluser]
i rewrote the code and it worked http://edengardencompany.ro/galerie/afiseaza/1
[eluser]Tpojka[/eluser]
[quote author="weboap" date="1337794939"]you are trying to execute the .flexslider(); before the div is loaded.... use instead Code: $(document).ready(function() { http://docs.jquery.com/Tutorials:Introducing_$(document).ready()[/quote] Hi all, I have similar problem here with jquery.cycle.all and it just solve it. Thank you weboap so much
[eluser]InsiteFX[/eluser]
You can also place all your jQuery code at the end of the document. |
Welcome Guest, Not a member yet? Register Sign In |