Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $( document ).ready( function() {
- $( 'a.divLoad, #regEmpBut' ).click( function( e ) {
- e.preventDefault(); // prevent the browser from following the link
- e.stopPropagation(); // prevent the browser from following the link
- $( '#divPage' ).load( $( this ).attr( 'href' ), function() {
- $( '#divPage_white' ).height( $(window).height() - 93 ) + 'px';
- $( '#divPage_white_content' ).height( $(window).height() - 148 ) + 'px';
- });
- });
- $('#regEmpBut').submit(function(e) {
- e.preventDefault();
- $.ajax({
- data: $(this).serialize(),
- type: $(this).attr('post'),
- url: $(this).attr('admin/register.php'),
- success: function(response) {
- $('#divPage').html(response);
- }
- });
- return false;
- });
- });
Add Comment
Please, Sign In to add comment