Oninput onpropertychange Siming interactive intelligent interaction

Recommended for you: Get network issues from WhatsUp Gold. Not end users.
 <textarea  id="title" name="title" rows="5" cols="40" oninput="getchange1();" onpropertychange="getchange1();"  >${ptitle}</textarea>


$(document).ready(function(){
	getchange1();
});
function getchange1(){
	debugger;
	var title="${object.title}";
	var content=$("#content").val();
	var url="<%=request.getContextPath() %>/servlet/AjaxServlet?date="+new Date();
	ajaxSend(title,content,"",url);
}
function ajaxSend(title,content,radio,url){
	$.get(url,{title:title,content:content,radio:3,id:"${object.id}"},function(data){
		//alert(data);
		
		if(data!=""){
		var content=eval("("+data+")");
		var b=content[0].list5;//The government.
		var d=content[0].title;
		//alert(d[0].title);
		var list= '';
		list+= '<table width="100%" border="0" align="center"  cellspacing="0" cellpadding="0" align="center" class="h32 mar_t15 t14  " bgcolor="#FFFFFF"> ';
		$.each(d,function(i,n){
		//list+= '<tr><input type="hidden" name="title" id="title" value="'+n.title+'"/> </tr>';
		//list+= '<tr><input type="hidden" name="radio" id="radio" value="'+n.radio+'"/> </tr>';
		});

		list+= '<tr><th colspan="2" bgcolor="#e9f3fd">For your reference.</th> ';
		if(b.length>0){
		list+= ' <td bgcolor="#e9f3fd" align="center"><a target="_blank" href="http://www.siming.gov.cn/zmhd/znhd/znhdxx/index.htm?url=common/jdbcPage.as?_in=outerquestion@014&more=1&title='+d[0].title+"&content="+d[0].content+"&radio="+d[0].radio+'">More>></a></td> '
		}
		var c=content[0].newList;//Their guide
		var list1= '';
		list1+= '<table width="100%" border="0" align="center"  cellspacing="0" cellpadding="0" align="center" class="h32 mar_t15 t14  " bgcolor="#FFFFFF">	 ';
		list1+= '<tr><th colspan="2" bgcolor="#e9f3fd">The relevant procedures for your reference.</th> ';
		if(c.length>0){
		list1+= ' <td bgcolor="#e9f3fd" align="center"><a target="_blank" href="http://www.siming.gov.cn/zmhd/znhd/znhdbs/index.htm?url=common/jdbcPage.as?_in=outerquestion@015&more=1&title='+d[0].title+"&radio="+d[0].radio+'">More>></a></td> ';
		}
		$.each(b,function(i,n){
			list+= ' </tr> ';
			list+= ' <tr> ';
			list+= ' <td width="4%" align="center">'+ '<img src="<%=request.getContextPath() %>/outer/search/news_gl_icon2.jpg " /> </td> ';
        	list+= ' <td width="36%" colspan="2"> ';
        	list+= ' <a title="'+n.title+'" href="http://www.siming.gov.cn/zmhd/smlh/index_1765.htm?url=common/hbnObject.as?_in=outerquestion@003&_url=/outer/question/detail.jsp&id='+n.id+'" target="_blank">'+n.gcstitle+'</a> ';	
        	list+= '</td> ';	
        	//list+= '<td width="10%"  ><br>';	
			list+='</td> ';
            list+='</tr> '; 	
			//alert(i+n);
			});
            list+= '</table>';
		
		$("#zfxx").html(list);
		$.each(c,function(i,n){
			list1+= ' </tr> ';
			list1+= ' <tr> ';
			list1+= ' <td width="4%" align="center"><img src="<%=request.getContextPath() %>/outer/search/news_gl_icon2.jpg"  /></td> ';
			list1+= ' <td width="36%"  colspan="2"> ';
	        list1+= ' <a title="'+n.title+'" href="'+n.docpuburl+'" target="_blank">'+n.gcstitle +'</a> ';	
        	list1+= ' </td>';	
        	//list1+= ' <td width="10%"><br>';	
    		list1+= ' </td>';
			list1+= '</tr> ';
			//alert(i+n);
			});
			list1+= '</table>';
		
		$("#bszn").html(list1);
			alert("Interactive knowledge base to find a reference value for your content, displayed in the Webpage below, please see!");
		}
		});	
}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Ford at December 13, 2013 - 12:42 AM