plugin not working correctly with .load() function
-
If i use the plugin in a page, it works fine, however, i have a menu that uses the load function to retrieve a div of a page, where the slider is. the problem is, it doesn’t load the scripts correctly.
Menu HTML
<div id="listabiodiversidade" class="listabiodiversidade"> <ul id="listaflora" class="listaflora"> <li id="subclasse" class="subclasse" > <div href="">árvores</div> <ul> <li class="planta" rel="/sitepds/pagina-inicial/link-2/biodiversidade/flora/castanheiro-da-india #castanheiro-da-india" > <a href="#">Castanheiro da índia</a> </li> <li rel="/sitepds/pagina-inicial/link-2/biodiversidade/flora/tilia #tilia" class="planta" > <a href="#">Tília</a> </li> </ul> </li> <li id="subclasse" class="subclasse" > <div href="#">Arbustos</div> <ul> <li class="planta"> <a href="#" class="planta">Ligustruum</a> </li> <li class="planta"> <a href="#" class="planta">Hebe</a> </li> </ul> </li> <li id="subclasse" class="subclasse"> <div href="#">Flores</div> <ul> <li class="planta"> <a href="#" class="planta">Cana índica</a> </li> <li class="planta"> <a href="#" class="planta">Amores Perfeitos</a> </li> </ul> </li> </ul> </div>
header jscript
//file to load: jQuery(function(){ jQuery('.planta').click(function(){ jQuery('#infoplantas').load(jQuery(this).attr('rel')); return false; }); }); //fim de file to load
loaded page(this is the html i wrote using wordpress)
<div id="tilia" class="infoplantas" charset=utf-8> [promoslider slider="castanheiro-da-india" width="400px" Height="250px" display_nav="thumb"] <h3>Tilia</h3> <h4>bla bla bla whiskas saquetas</h4> CARACTERíSTICAS GERAIS </div>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘plugin not working correctly with .load() function’ is closed to new replies.