Hi,
I have used the following code to load data from a php page using AJAX with JQuery.The script running well in all browsers except Firefox.
The script I used is as follows.
test_ajax.php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title></head>
<body>
<script type="text/javascript" src="jquery-1.3.1.min.js"></script>
<script type="text/javascript">
function get1()
{
alert('inside fun');
var dgroup=$("#int_entry_id").val();
alert(dgroup);
$.post("test1.php",{dval:dgroup},function(data)
{
alert("ajax_loaded");
alert("data="+data);
});
}
</script>
<form name="f">
<select name="int_entry_id" onchange="get1()" id="int_entry_id" >
<option value="" selected="selected">Select One</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
</form>
</body>
</html>
test1.php
<?php
$group=$_POST['dgroup'];
echo "Inside php";
?>