Hi,
What I am trying here is that from my first file I am making a call to handler.php file
//////////////////////////////FirstFile////////////////////////
[HTML]<html>
<head>
<script src='jquery-1.1.3.1.pack.js ' type='text/javascript'></script>
<script type='text/javascript'>
$.post("http://practice.dev/handler.php",
function(data)
{
alert(data);
//document.write( data);
$("#test").appe nd(data);
$("#test").html (data);
});
</script>
</head>
<body>
<div id='test'>
</div>
</body>
</html>[/HTML]
////////////////////////handler.php/////////////////
[CODE=php]<?php
echo 'here';
?>[/CODE]
[CODE=javascript]<script type='text/javascript'>
alert('hello');
</script>
[/CODE]////////////////////////////////////////////////////////////
Now in firefox it is working fine means it show's alert saying hello, but when I try in IE it doesn't but if in callback function instead of using append/prepend/ html, if I use document.write( data) then it runs the javascript means it display hello message in IE 7.
Anything I am doing wrong ? IE sucks plz help help help ?
What I am trying here is that from my first file I am making a call to handler.php file
//////////////////////////////FirstFile////////////////////////
[HTML]<html>
<head>
<script src='jquery-1.1.3.1.pack.js ' type='text/javascript'></script>
<script type='text/javascript'>
$.post("http://practice.dev/handler.php",
function(data)
{
alert(data);
//document.write( data);
$("#test").appe nd(data);
$("#test").html (data);
});
</script>
</head>
<body>
<div id='test'>
</div>
</body>
</html>[/HTML]
////////////////////////handler.php/////////////////
[CODE=php]<?php
echo 'here';
?>[/CODE]
[CODE=javascript]<script type='text/javascript'>
alert('hello');
</script>
[/CODE]////////////////////////////////////////////////////////////
Now in firefox it is working fine means it show's alert saying hello, but when I try in IE it doesn't but if in callback function instead of using append/prepend/ html, if I use document.write( data) then it runs the javascript means it display hello message in IE 7.
Anything I am doing wrong ? IE sucks plz help help help ?
Comment