jquery ajax

jquery ajax
< script  type ="text/javascript"  src ="/js/jquery.js" ></ script >
    
< script  language ="javascript"  src ="/js/common_layer.js" ></ script >
    
< script  language ="javascript"  src ="/js/jquery.form.js" ></ script >     
    
< script  language ="javascript"  src ="/js/core.js" ></ script >
    
< script  type ="text/javascript" >
        $(document).ready(
function() {            
            $('#form1').ajaxForm();                                
        }
); 
        
        
function submitForm(){
            showLoading(
"divResult");                        
            $(
"#form1").attr("action","/monitor/monitorQueryList.jspa");
            $(
"#form1").ajaxSubmit
            (
{     
                success:  
function (formData, jqForm, options) {                                                             
                    formData
=$.trim(formData);                        
                    $(
"#divResult").html(formData);                  
                }
       
            }
);        
        }
        
        
        
function queryPage(){
            
var param=buildParam(arguments);        
                
            showLoading(
"divResult");        
            $.ajax(
{
               type: 
"POST",               
               url: 
"/monitor/monitorQueryList.jspa",
               data: param,
               success: 
function(msg){
                       $(
"#divResult").html(msg);    
               }
        
           }
)            
        }
        
        
    
</ script >

你可能感兴趣的:(jquery ajax)