[jQuery] Re: handle ajaxSubmit error as normal response instead of ajax response.

2009-05-31 Thread mar4eva mar4eva
hi !! yes :) :) just get "prototype.js" . don't upload it into ur html/php page ==> just link your jquery framework annd it's gonna b the magic of xhr so my solution is like this !! 1- Replace all the $ of jquery code with jQuery to get any conflict 2- and create a functio like send_my_form()

[jQuery] Re: handle ajaxSubmit error as normal response instead of ajax response.

2009-05-30 Thread BalusC
OK, I solved it as following: [code] $('#myform').ajaxSubmit({ error: function(xhr) { document.open(); document.write(xhr.responseText); document.close(); }, success: doSomething }); [/code] Isn't there a "nice" jQuery way of doing this anyway? Cheers, B On