jQuery.ajax and page refresh in Firefox
Couldn't find the answer on the forum.
So my problem is that i can't send form data in FF without page refresh (though in IE7-8 everything works smoothly).
My code fragments:
- <input id="f_submit" type="image" src="submit.png"/>
- ...
- $(document).ready(function(){
- $("#f_submit").click(function(e){
- e.preventDefault();
- $.ajax({
- async: true,
- type: "POST",
- url: "http://../callback.php",
- data: f_str,
- dataType: 'html',
- success: function(result) {...
- ...
- }