It's that I need, with using [0][0] Can you explain that are it means? Does web2py return html like set of helpers? is [0][0] the first container's content of returned set (first div's content)?
On 20 мар, 10:32, Anthony <[email protected]> wrote: > On Saturday, March 19, 2011 5:18:23 PM UTC-4, LightOfMooN wrote: > > > no, it doesn't be a controller. > > But I can not use ajax too, because I need variables in template, but > > not the rendered block. > > (and I don't like that LOAD() loads components in new div, because it > > may cause a problems with css and jquery) > > As pbreit pointed out, if you don't want Ajax, you can use LOAD(..., > ajax=False), and web2py will insert the content on the server side before > delivering the page. In that case, I think the DIV that LOAD wraps around > the content is unnecessary (as long as ajax_trap is also False -- looks like > the DIV is used as the target for the Ajax response). Because LOAD is a > helper, you should be able to do some manipulation of it to remove the outer > DIV. So, maybe try something like this in your view: > > {{=LOAD('mycontroller', 'options', ajax=False)[0][0]}} > > Anthony

