Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var loadUrl=b_url+page;
- if (History.enabled) {History.pushState({state:2}, page, "/"+page);}
- window.name=page;
- $.ajax({
- cache: false,
- async: false,
- type: "POST",
- url: loadUrl,
- dataType: "html",
- beforeSend: function() {
- $('.contentarea').animate({
- 'opacity' : 0
- }, 180, 'jswing', function(){
- $('#mainc').hide(350, 'jswing');
- });
- },
- success: function(response) {
- $('#mainc').html(response);
- alert('success')
- },
- failure: function(msg) {
- alert('FAIL');
- }
- });
- $('#mainc').html(response);
- $(document).ajaxError(function(e, xhr, settings, exception) {
- alert('error in: ' + settings.url + ' n'+'error:n' + xhr.responseText );
- });
- $('#mainc').ajaxComplete(function(){ alert('bob')})
- $("#mainc").load(loadUrl);
- $("#mainc").load(loadUrl, function(){ alert('bob' });
- $("#mainc").load(loadUrl);
Add Comment
Please, Sign In to add comment