keiG Posted November 10, 2010 Report Share Posted November 10, 2010 Tas kas iekš index.php Te ir fancybox $(document).ready(function() { $("#comment").fancybox({}); }); Tad vēl ir ielādēta lapa $(document).ready(function(){$("#1").load("<?php echo $page;?>");}); Šeit ir jaunumi.php saturs, kuru ielādē iepriekšminētā f-cija <a id="comment" href="#koments" >komentēt</a> Kad šis links atrodās indexā, tad viss iet, bet jaunumos.php gan nē. Ir kāda ideja? Quote Link to comment Share on other sites More sharing options...
0 indoom Posted November 10, 2010 Report Share Posted November 10, 2010 Pēc .load() palaid fancybox() pa jaunu Quote Link to comment Share on other sites More sharing options...
0 keiG Posted November 10, 2010 Author Report Share Posted November 10, 2010 (edited) $(document).ready(function(){ $("#1").load("<?php echo $page;?>"); $("#login").fancybox({}); $("#comment").fancybox({}); }); Šādi? Neiet.. Vienalga kādā secībā. Edited November 10, 2010 by keiG Quote Link to comment Share on other sites More sharing options...
0 marcis Posted November 10, 2010 Report Share Posted November 10, 2010 Ar "pēc load()" tika domāta load() callback funkcija: $("#l").load("<?php echo $page;?>", function(){ $("#login, #comment").fancybox(); }); Quote Link to comment Share on other sites More sharing options...
0 keiG Posted November 10, 2010 Author Report Share Posted November 10, 2010 Super liels paldies :) Esmu jauniņais jq Quote Link to comment Share on other sites More sharing options...
Question
keiG
Tas kas iekš index.php
Te ir fancybox
Tad vēl ir ielādēta lapa
Šeit ir jaunumi.php saturs, kuru ielādē iepriekšminētā f-cija
Kad šis links atrodās indexā, tad viss iet, bet jaunumos.php gan nē.
Ir kāda ideja?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.