ziedinjsh Posted October 9, 2012 Report Share Posted October 9, 2012 Nesaprotu, kā var apvienot load() ar effect piem: jQuery(document).ready(function(){ jQuery('#test').effect("bounce", { times:4, distance:200 }, 400).load('test.php'); }); Quote Link to comment Share on other sites More sharing options...
nice1 Posted October 9, 2012 Report Share Posted October 9, 2012 bļin.. tu kaut ko arī pamēģini atrisināt vai tīri aiz ieraduma skrien uz šejieni? risinājums varētu būt ielādēt datus un tikai tad elementam piešķirt kkādu efektu.. Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 9, 2012 Author Report Share Posted October 9, 2012 tā es arī meiģināju, bet nekā! Quote Link to comment Share on other sites More sharing options...
nice1 Posted October 9, 2012 Report Share Posted October 9, 2012 (edited) emm.. kas tas par .effect vispār ir? kkāds plugins or what? ok jqueryui sux.. :D Edited October 9, 2012 by nice1 Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 9, 2012 Author Report Share Posted October 9, 2012 pareizi laikam būtu šādi bet neiet jQuery('#comments').load('load_comments.php?id='+id, function(){ $(this).effect("bounce", { times:3 }, 300); }); Quote Link to comment Share on other sites More sharing options...
nice1 Posted October 9, 2012 Report Share Posted October 9, 2012 kr4 pēc tava varianta pareizāk būtu $element = $('#comments'); $element.load('load_comments.php?id='+id, function(){ $element.effect('bounce', {times: 3}, 300); }); nesolu ka strādās.. bet vajadzētu.. Quote Link to comment Share on other sites More sharing options...
ezis Posted October 9, 2012 Report Share Posted October 9, 2012 (edited) Tam '#test' saturs ir pirms mēģini viņu kustināt ar effect? varbūt vispirms vajag ielādēt Tavu test.php un tad tik izmantot effect? Domāju, ka tādā kārtībā, kā Tev norādīts, varētu būt problēmas. $('#test').load('test.php', function(){ $(this).effect("bounce", { times:4, distance:200 }, 400); }); btw, debuggers errorus neuzrāda? Edited October 9, 2012 by ezis Quote Link to comment Share on other sites More sharing options...
nice1 Posted October 9, 2012 Report Share Posted October 9, 2012 Tam '#test' saturs ir pirms mēģini viņu kustināt ar effect? varbūt vispirms vajag ielādēt Tavu test.php un tad tik izmantot effect? Domāju, ka tādā kārtībā, kā Tev norādīts, varētu būt problēmas. $('#test').load('test.php', function(){ $(this).effect("bounce", { times:4, distance:200 }, 400); }); btw, debuggers errorus neuzrāda? errora tur visticamākais nebūs jo fails tiek ielādēts par ko varētu būt vienīgais ziņojums..sooo.. problēma nav faila ielādē bet tajā $(this) tādēļ vajadzība ir norādīt kuram elementam tad piesaistam to effect().. p.s mans variants strādā.. nebiju sliņķis.. Quote Link to comment Share on other sites More sharing options...
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.