Guest User

Untitled

a guest
Oct 16th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.73 KB | None | 0 0
  1. $( document ).ready( function() {
  2.     $( 'a.divLoad, #regEmpBut' ).click( function( e ) {
  3.         e.preventDefault();   // prevent the browser from following the link
  4.         e.stopPropagation();  // prevent the browser from following the link
  5.         $( '#divPage' ).load( $( this ).attr( 'href' ), function() {
  6.             $( '#divPage_white' ).height( $(window).height() - 93 ) + 'px';
  7.             $( '#divPage_white_content' ).height( $(window).height() - 148 ) + 'px';
  8.         });
  9.     });
  10.     $('#regEmpBut').submit(function(e) {
  11.         e.preventDefault();
  12.         $.ajax({
  13.             data: $(this).serialize(),
  14.             type: $(this).attr('post'),
  15.             url: $(this).attr('admin/register.php'),
  16.             success: function(response) {
  17.                 $('#divPage').html(response);
  18.             }
  19.         });
  20.         return false;
  21.     });
  22. });
Add Comment
Please, Sign In to add comment