Jump to content
php.lv forumi

jquery scrollTop


ziedinjsh

Recommended Posts

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ā??

Link to comment
Share on other sites

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 by indoom
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...