Am 13.03.2012 um 19:01 schrieb Daniel Nouri:

> On Mon, Mar 12, 2012 at 6:18 PM, Benjamin Sims <[email protected]> wrote:
>> Hi, this looks great - I've recently been looking into bootstrap so this is
>> very timely for me.
>> 
>> I note however that it is not possible to use use_ajax with the package. I
>> wonder if you or the deform team might expand on this - what would it take
>> to use the two together?
> 
> You're right.  We broke use_ajax sometime in the process.  I think
> there was a version conflict between a newer jQuery required for
> Bootstrap and the jquery.form.js in deform.  Might be easy to fix.
> Adding Andreas and Tom in the CC who worked on the JS, maybe they
> would know more.

The problem is that Bootstrap requires a recent version of jQuery, but deform's 
use_ajax feature doesn't work with any jquery.form version greater than 2.43, 
which in turn is limited to jQuery versions 1.4.x (IIRC).

So basically there are 2 options:

1. manually using (the most recent version of) jquery.form.  This works just 
fine by just putting a one liner in your projects' templates (something like 
"$('form').ajaxForm({target:$('form').parent()})").

2. updating all JS (static files *and* templates) in deform.  This should be 
done in deform itself, not deform_bootstrap.

Approach 1 is working fine for me in my current project and doesn't add much 
code (compared to "use_ajax=True").


HTH,

Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to