Re: [web2py] Re: Bootstrap modal and ajax

2012-05-28 Thread Johann Spies
On 27 May 2012 09:38, Annet wrote: > I solved the problem by moving the JavaScript code from right below > {{extend calendar/index.html}} to right above > > > > > $("a[data-toggle=modal]").click(function (e) { > target = $(this).attr('data-target') > url = $(this).attr('href') > $(target

[web2py] Re: Bootstrap modal and ajax

2012-05-27 Thread Annet
I solved the problem by moving the JavaScript code from right below {{extend calendar/index.html}} to right above {{extend 'calendar/index.html'}} {{if rows:}} ... {{pass}} $("a[data-toggle=modal]").click(function (e) { target = $(this).attr('data-target') url = $(this).att

[web2py] Re: Bootstrap modal and ajax

2012-05-26 Thread Annet
Hi, Thanks for your reply. One thing: does it behave differently if you change ajax=False in the > LOAD()? > I don't think that's the cause of the problem, I replaced the ajax menu: Home Openingtijden Event list ... with a none ajax menu: Home Openingtijden Event list An

[web2py] Re: Bootstrap modal and ajax

2012-05-25 Thread pbreit
Hard to say. There are a number of moving parts in your design. One thing: does it behave differently if you change ajax=False in the LOAD()? On Friday, May 25, 2012 11:14:50 AM UTC-7, Annet wrote: > > In a controller I have the following functions: > > def eventList(): > response.view='cal

[web2py] Re: Bootstrap modal and AJAX

2012-04-22 Thread Annet
Hi Anthony, Thanks for your reply, after spending figuring out why I ended up with an empty backdrop I found that I had to move the JavaScript part from calendar/index.html to calendar/eventlist.html. I have no idea why, eventList.html is loaded into index.html. This is the relevant part in in

[web2py] Re: Bootstrap modal and AJAX

2012-04-21 Thread Anthony
> > > {{=LOAD('calendar','eventList.load',args=int(organization.nodeID),ajax=True,target='eventlist')}} > > > The eventList view lists all the events and each event has a view details > button. > > data-target="#myModal">View Details > Have you confirmed that the Ajax request is getting sent an