Does not seem to work if the form was called in from ajax

View: New views
3 Messages — Rating Filter:   Alert me  

Does not seem to work if the form was called in from ajax

by juliandormon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The plug-in does not work if the form with the file field was created after the dom is ready ie, the form was called in from an ajax call after the page has loaded.

We bind our forms using the jquery forms plug-in. Can we hook in the multi plug-in once the form as been wired up from the form plug-in? Can we chain this?

Can you give an example if possible?

Much appreciated. Hoping to use this.
Thanks.

Re: Does not seem to work if the form was called in from ajax

by bmsterling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Assuming you are bring the form in via the $.load function, just do something like:

$.load(url, function(){
$('#formID').ajaxForm();// I think this is the form plugin call.
})

On 7/19/07, juliandormon <julian@...> wrote:


The plug-in does not work if the form with the file field was created after
the dom is ready ie, the form was called in from an ajax call after the page
has loaded.

We bind our forms using the jquery forms plug-in. Can we hook in the multi
plug-in once the form as been wired up from the form plug-in? Can we chain
this?

Can you give an example if possible?

Much appreciated. Hoping to use this.
Thanks.

--
View this message in context: http://www.nabble.com/Does-not-seem-to-work-if-the-form-was-called-in-from-ajax-tf4114484s15494.html#a11700312
Sent from the jQuery Multiple File Upload mailing list archive at Nabble.com.




--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Re: Does not seem to work if the form was called in from ajax

by juliandormon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes Thanks.
I just needed to call the multiFile again once the form was created in the dom after my ajax call.

bmsterling wrote:
Assuming you are bring the form in via the $.load function, just do
something like:

$.load(url, function(){
$('#formID').ajaxForm();// I think this is the form plugin call.
})

On 7/19/07, juliandormon <julian@righthookmedia.com> wrote:
>
>
>
> The plug-in does not work if the form with the file field was created
> after
> the dom is ready ie, the form was called in from an ajax call after the
> page
> has loaded.
>
> We bind our forms using the jquery forms plug-in. Can we hook in the multi
> plug-in once the form as been wired up from the form plug-in? Can we chain
> this?
>
> Can you give an example if possible?
>
> Much appreciated. Hoping to use this.
> Thanks.
>
> --
> View this message in context:
> http://www.nabble.com/Does-not-seem-to-work-if-the-form-was-called-in-from-ajax-tf4114484s15494.html#a11700312
> Sent from the jQuery Multiple File Upload mailing list archive at
> Nabble.com.
>
>


--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com