Current date/time is May 8th 2024, 4:01 pm

Search found 1 match for block11

Loading profile information ?

Code:
<div id="block1"></div> 





<script type="text/javascript">  


$(document).ready(function(){


$.get('my-page.com', function (data) {  


  $('#block1').html( $('#block11', data).html() ) 


});


}); 


</script> 





my-page.com - Page with which you need to load content.

#block1 - The block in which the content should be loaded from #block11.

#block11 - That part of the content that needs to be downloaded to another page.





I need this script to load avatars / posts / reputation of users on the list, ie, u1 / u2 / u3

Well, or something like that ... I no longer know how to translate it into reality! ...


Code:
<div id="main-avatar-user"></div>  -- Avatar of User 1


<div id="main-avatar-user"></div>  -- Avatar of User 2


<div id="main-avatar-user"></div>  -- Avatar of User 3


<div id="main-avatar-user"></div>  -- Avatar of User 4


<div id="main-avatar-user"></div>  -- Avatar of User 5





<script type="text/javascript">  


$(document).ready(function(){


$.get('my-site.com/u1 + 2', function (data) {  


  $('#main-avatar-user').html( $('#user-avatar', data).html() ) 


});


}); 


</script>
by Storyteller of Wonderland
on April 8th 2019, 7:25 am
 
Search in: Scripts Problems Archives
Topic: Loading profile information ?
Replies: 22
Views: 4083

Back to top

Jump to: