how to stop evaluating script tags in jquery ajax and post responses?
Please find the corresponding code below.The function sendForm() is being evaluated even when i am using dataType : 'text'
<HTML>
<HEAD>
<TITLE>This is the title</TITLE>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"></script>
<SCRIPT>
function get_info(url,data,callback,errorFunction)
{
$.ajax({ type: 'POST', url: url, data: data, success: callback, dataType: 'text', error: errorFunction, cache : false });
}
</SCRIPT>
</HEAD>
<BODY>
<A NAME="this"></A> <A HREF="#this" ONCLICK="get_info('Result1.lasso','temp=1&testParam=Rajesh',function(response){$(document.getElementById('test')).html(response);},function(){$(document.getElementById('test')).html('Error');})">Some Text</A>
<DIV id = 'test'></DIV>
</BODY>
</HTML>
Result1.Lasso
<script type="text/javascript">
function sendForm()
{
alert('hi');
}
</script>
<form name= "abc" method = "get" action = "abcd.lasso">
<input type ="text" name = "element1"/>
<input type = "button" value="Click" onClick = "javascript: sendForm();"/>
</form>