Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread Richard Vézina
Can't understand why this code from view is working properly (*I mean the LOAD form is complete form input and form tag*) : {{=DIV(DIV(XML('×'), XML(''+'TITRE MODAL TEST'+''), _class='modal-header'), DIV(LOAD(c='ref', f='add_eregistry', args='test_ph_eregistry_i

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread Richard Vézina
I think I start to understand what going on... For a reason that I ignore the form tag of my embedded component form is not present when I use modal, but it is present if I use jQuery .dialog() Richard On Fri, Nov 2, 2012 at 9:34 AM, Richard Vézina wrote: > Hello, > > Thanks for you help... > >

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread Richard Vézina
Hello, Thanks for you help... My code look pretty much like the one of LightDot. I will double check for the details. To your question LightDot, yes I mean the page that contain the load component reload when the form included in the component is submit, since the page that contain the component

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread LightDot
I simply did (actual functions etc. are stripped out, so some minor detail about displaying the data after it has been processed might be missing): View: Open modal ×  {{=LOAD('controller','somepage.load', ajax=True, ajax_trap=True, user_signature=True)}}

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-02 Thread Annet
Hi Richard, Here's how I implemented Bootstrap Modal: Button in the view: {{=T("View details")}} » At the bottom of the same view: $("a[data-toggle=modal]").click(function (e) { target = $(this).attr('data-target') url = $(this).attr('href') $(target).load(url); }) Kind

Re: [web2py] bootstrap modal and web2py LOAD()

2012-11-01 Thread LightDot
By "the whole page", do you mean the page from where the modal is called or just the contents of the modal itself..? Anyway, I'm using LOAD() to display a form in a Bootstrap modal, the form submits data, data is processed by a function and a result is displayed in the same modal. I'd have to l