[web2py] Re: BlockUI with web2py

2011-11-03 Thread brushek
Yes, I think I do that, thanks anyway :). On 3 Lis, 16:40, Anthony wrote: > Is the other stuff inside your queue callback running (e.g., the > show("blind"))? The whole thing is fairly complicated and a bit hard to > follow just by reading the code. Maybe try simplifying and build up from > somet

[web2py] Re: BlockUI with web2py

2011-11-03 Thread Anthony
Is the other stuff inside your queue callback running (e.g., the show("blind"))? The whole thing is fairly complicated and a bit hard to follow just by reading the code. Maybe try simplifying and build up from something more basic. On Thursday, November 3, 2011 11:11:03 AM UTC-4, brushek wrote:

[web2py] Re: BlockUI with web2py

2011-11-03 Thread brushek
without load and without akcje.load i can see the blocking message, but there is no unblock if request.vars.a == 'restart': form=FORM(TR('Wybierz VPS',SELECT(ipvps,_name='ip', requires=IS_IN_SET(ipvps))), TR('',INPUT(_type='submit'), formstyle='ul'),_id='staty')

[web2py] Re: BlockUI with web2py

2011-11-03 Thread Anthony
Nothing jumps out. Doesn't look like a web2py issue, though. I think you'll just have to debug your JS code. Are you sure it's getting to the $.blockUI call (i.e., it's not returning in the preceding if clause)? On Thursday, November 3, 2011 9:54:30 AM UTC-4, brushek wrote: > > I have following

[web2py] Re: BlockUI with web2py

2011-11-03 Thread brushek
I have following javascript function: (function($) { $.fn.pytacz = function(options) { var opts = $.extend({}, $.fn.pytacz.defaults, options); var details = $('.details'); opts.message_txt = opts.message_txt.replace('[msg]', opts.tekst_czekania); return this.submit(function(e)

[web2py] Re: BlockUI with web2py

2011-11-02 Thread Anthony
Looks like the component will only load if request.vars.a='restart' -- is the main page visited with '?a=restart' in the URL? Where/how are you invoking BlockUI? On Wednesday, November 2, 2011 5:16:42 AM UTC-4, brushek wrote: > > here is controller (sleep is for emulating long lasting action):

[web2py] Re: BlockUI with web2py

2011-11-02 Thread brushek
Hello, >     if request.vars.a == 'restart': >         form=FORM(TR('Wybierz VPS',SELECT(ipvps,_name='ip', >             requires=IS_IN_SET(ipvps))), >               TR('',INPUT(_type='submit'), > formstyle='ul'),_id='staty') >         if form.accepts(request,session): I think, that here should b

[web2py] Re: BlockUI with web2py

2011-11-02 Thread brushek
here is controller (sleep is for emulating long lasting action): def akcje(): [...] if request.vars.a == 'restart': form=FORM(TR('Wybierz VPS',SELECT(ipvps,_name='ip', requires=IS_IN_SET(ipvps))), TR('',INPUT(_type='submit'), formstyle='ul'),_id='staty')

[web2py] Re: BlockUI with web2py

2011-11-01 Thread Anthony
Can you show some code? On Tuesday, November 1, 2011 6:47:13 PM UTC-4, brushek wrote: > > Ok, thanks for answer. I would like to use this plugin with LOAD > helper. How can I connect LOAD with blockUI ? When I use load, then I > can't make blockUI working (I want to ask user before send the > v

[web2py] Re: BlockUI with web2py

2011-11-01 Thread brushek
Ok, thanks for answer. I would like to use this plugin with LOAD helper. How can I connect LOAD with blockUI ? When I use load, then I can't make blockUI working (I want to ask user before send the validated form wheter do the action (by javascript confirm()) and make him waiting with blocked brows

[web2py] Re: BlockUI with web2py

2011-11-01 Thread Anthony
blockUI is just a client-side jQuery plugin, so just follow the usual instructions: http://jquery.malsup.com/block/. I don't think there's anything special about using it with web2py. On Tuesday, November 1, 2011 8:34:42 AM UTC-4, brushek wrote: > > Hello, > > I would like to use jquery blockUI