Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-03-21 10:50:47

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 215
Website

bind txpAsyncForm to button in jquery ui dialog

Hello,

don’t if this is possible. What i’m trying to do is :
a form is loaded dynamically in a jquery ui dialog (all this is happening on admin side)
Instead of having the submit button inside the form, i want to use the buttons functionality of the dialog ui.
Therefore the button type “submit” does not reside inside the form …
What i want is take advantage of the already defined jQuery.fn.txpAsyncForm to async-submit this form.

First : is it possible ?
Second : i can’t find how to do it !

Thanks for any advice

Offline

#2 2014-03-21 11:06:09

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: bind txpAsyncForm to button in jquery ui dialog

Don’t know if it works asynchronously, but you could try the form attribute:

<input type="submit" form="your_form_id" />

Offline

#3 2014-03-21 12:56:58

planeth
Plugin Author
From: Nantes, France
Registered: 2009-03-19
Posts: 215
Website

Re: bind txpAsyncForm to button in jquery ui dialog

@etc :
It worked perfectly. Thanks a lot

Offline

Board footer

Powered by FluxBB