I am doing an ajax request to a php page ('test.php') inside of test.php is
<script type="text/javascript">
function test() {
alert('test');
}
</script>
<div id="abc">some normal content too</div>
now this function is unique to each page load, i.e it is generated via php to do different things
so, my question is how do i call that function test();
as jquery thinks the response is just text so it does not eval it
jquery has datatypes for the return
one is script the other is html
however it does not seem to have mixed.
how can i fix this?