spring 配置 dwr

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.ltd.uk/dwr/dwr20.dtd">
<dwr>
	<allow>
		<create javascript="proservice" creator="spring">
			<param name="beanName" value="prodwrclsss"></param>
		</create>			
	</allow>
</dwr>

 

function updateProState(id,state,obj)
{
   proservice.updateProState(id,state,function back(data){
		if(state==0)
		document.getElementById(obj).innerHTML="<span class='STYLE1'>已激活</span> | <a href='javascript:updateProState("+id+","+1+","+obj+")'>  <span class='STYLE2'>屏蔽</span></a>";
		else
		document.getElementById(obj).innerHTML="<span class='STYLE1'>已屏蔽</span> | <a href='javascript:updateProState("+id+","+0+","+obj+")'>  <span class='STYLE2'>激活</span></a>";
		
	});

}

  

 

你可能感兴趣的:(JavaScript,spring,xml,Web,DWR)