[jQuery] Re: ajax form plugin question

2008-02-18 Thread Mike Alsup
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

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Shelane Enos
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

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Shelane Enos
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

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Mike Alsup
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,

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Josh Nathanson
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

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Josh Nathanson
] 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