Hi Mike, I've faced exactly the same problem. When I upload a file via the
.ajaxFrom all seems to be well, except that success function doesn't fire.
But json response that the server returns is ok. As it was written in
Jquery
Form code samples I return json in textarea tags. I've searched
I would not have been able to post the page since it¹s an internal app.
However, I commented out the $('#docform').ajaxForm();
When it submitted the form as normal, I was able to see what the server was
returning and there was an error in the JSON. That is now fixed and I¹m
working on the next
The form submits when I click the submit button on the form. But the addDoc
function doesn't fire. Not even when I simply reduced it to alert('hello
world). What I don't know is what data is coming back from the server and
if there's a problem. If there is no problem from the server, why
Shelane,
Since it is not possible to upload files via ajax the form plugin manages
the process with a hidden iframe technique. So you won't see the get/post
trace in Firebug's console. However, callbacks *should* be called as
expected. Can you post a link to the page in question?
Josh,
I think you need to use the ajaxSubmit method rather than (or in addition
to) the ajaxForm method. ajaxForm just preps the form AFAIK.
-- Josh
- Original Message -
From: Shelane [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Friday, February 15, 2008 11:17
] Re: ajax form plugin question
The form submits when I click the submit button on the form. But the
addDoc
function doesn't fire. Not even when I simply reduced it to alert('hello
world). What I don't know is what data is coming back from the server
and
if there's a problem
6 matches
Mail list logo