SSTWebmaster

$.ajax() post

Nov 29th, 2011
252
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("#selSvcPkgBtn").live('click', function(event){
  2.     $.ajax({
  3.         type: 'post',
  4.         url: 'index.cfm?cfaction=DepartureReport.CreateNewCheckFormVars',
  5.         data: $('#frm_SvcPkgSel').serialize(),
  6.         cache: false,
  7.         success: function(){
  8.             alert(data);
  9.     /*$.get('index.cfm?cfaction=DepartureReport.CreateNewCheckFormVars',function(data){
  10.                         $('#s4').html(data);
  11.                     });*/
  12.                 },
  13.                 error: function(){
  14.                     alert('data');
  15.                 }
  16.         })
  17.     });
  18.  
RAW Paste Data