0

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";
?>
3
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by asaretitilope
0

What's not working ? What version of FF ? Have you tried the latest jQuery ?

Edited by pritaeas

0

I tried it on FF 13 and it works fine. Hope you haven't configure FF not to display additional dialog for the site as this will cause you javascript to break when an alert statement is executed.

You can try using other techiques to display the notification message such as using jQuery Ui dialog box to writing to the DOM directly.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.