help get code to work in safari
I'm a javascript and jquery newbie. That said, the following code works in firefox/opera/camino but not safari 4 (beta) and I'd like to know why. Is the code correct?
The form (id = myform) submits to an external site (different domain) but upon submit posts information to a local file (save.php). In safari it does not make the request to save.php.
-
$(function () {
$("#myform").submit(function() {
var inputs = [];
$(':input', this).each(function() {
inputs.push(this.name + '=' + escape(this.value));
});
$.post("save.php", { inputs : inputs.join('&') });
});
});
All suggestions welcome to this seemingly simple concept. jquery 1.3.2