ziedinjsh Posted November 17, 2011 Report Share Posted November 17, 2011 Labrīt! Cīnos bet nevaru saprast kas pa problēmu $(document).ready(function() { $('#showmessages').load('process/show.message.process.php'); $(".display").animate({ scrollTop: $(document).height() }, 100); return false; }); ieejot lapā viņš ielādē informāciju no php failu un sāk scrolloties, bet nenotiet lidz div apakšai.. paliek pa vidam!! kapēc tā?? Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted November 18, 2011 Report Share Posted November 18, 2011 Ielādē jauno informāciju augšā nevis apakšā un nemokies... Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted November 18, 2011 Author Report Share Posted November 18, 2011 nē, vajag apakšā, augšā nav forši! :D Quote Link to comment Share on other sites More sharing options...
indoom Posted November 21, 2011 Report Share Posted November 21, 2011 to scrollu ieliec kā callbacku loadam, citādi, kad notiek skrollošana, tad load vēl nav ielādējies (kā nekā AJAX), un lapai ir mazāks height. Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted November 21, 2011 Author Report Share Posted November 21, 2011 ieliku, bet nu tas pats.. apstājas pa vidu! $(document).ready(function(){ $(".display").show(function(){ $('#showmessages').load('process/show.message.process.php'); $(".display").animate({ scrollTop: $(document).height() }, 1000); }); }); Quote Link to comment Share on other sites More sharing options...
indoom Posted November 23, 2011 Report Share Posted November 23, 2011 (edited) Kāpēc iekš show? $('#showmessages').load('process/show.message.process.php', function(){ $(".display").animate({ scrollTop: $(document).height() }, 1000); }); To, kāpēc skrollots tiek .display un ņemts document height, nemaz neprasīšu Edited November 23, 2011 by indoom 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.