日期:2014-05-17  浏览次数:20465 次

ajax 实现局部刷新


点击按钮刷新列表数据 ,求代码
------解决方案--------------------
这个应该使用框架吧...
------解决方案--------------------
求什么代码,显示区域可以套一个div,success返回后,直接根据id,改写id的innerhtml
------解决方案--------------------
比如一下代码,xxxx.ashx中可以处理要现实的内容,并返回给ajax的success,div1为层的id

         $.ajax({ 
              type: "POST",
              url: "xxxx.ashx",
              data:'CarNo='+escape(CarNo)+
                    '&CarName='+escape(CarName)+
                    '&CarMark='+escape(CarMark)+
                    '&Motorman='+escape(Motorman)+
                    '&Creator='+escape(Creator)+
                    '&CarType='+escape(CarType)+
                    '&Factory='+escape(Factory)+
                    '&FuelType='+escape(FuelType)+
                    '&EngineNo='+escape(EngineNo)+
                    '&Status='+escape(Status)+
                    '&Displacement='+escape(Displacement)+
                    '&SeatCount='+escape(SeatCount)+
                    '&Carrying='+escape(Carrying)+
                    '&BuyMoney='+escape(BuyMoney)+
                    '&BuyDate='+escape(BuyDate)+
                    '&VendorName='+escape(VendorName)+
                    '&VendorAddress='+escape(VendorAddress)+
                    '&Contact='+escape(Contact)+
                    '&ContactTel='+escape(ContactTel)+
                    '&CreateDate='+escape(CreateDate)+