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? Maybe a better and more browser
friendly way exists?

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. The form is simple,
no javascript, just this. I'd like to keep it that way.

$(function () {
   $("#myform").submit(function() {
      var inputs = $("form").serialize();
      $.post("save.php", { inputs : inputs });
      return true;
   });
});

Important note: When changing 'return true;' to 'return false;' it in
fact executes save.php in safari, however, of course it then won't
actually submit the form to the external site.

Reply via email to