Advertisement
Guest User

ajaxLoad

a guest
Mar 28th, 2011
2,338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Подключаете jQuery
  2.  
  3. <div id="getContent"></div>
  4.  
  5.  
  6. <script>
  7. $(document).ready(function(){
  8. $.ajax({
  9. url: '/your-script.php?parametr=1',
  10. cache: false,
  11. beforeSend: function() {
  12. $("#getContent").html('Подождите, загружается контент');
  13. },
  14. success: function(html){
  15. $("#getContent").html(html);
  16. }
  17. });
  18. });
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement