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";
?>

Recommended Answers

All 6 Replies

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

Firefox version is 12.0,my JQuery version jquery-1.3.1-min.js

What's not working ?

Explain what's not working.

Have you tried the latest jQuery ?

Did you try 1.7.2 ?

Not entering into the jquery post.
Not printing "ajax_loaded" and other outputs.

I have tried it with 1.7.2 and other versions.but not working

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.