[web2py] Re: Load component in a ?

2016-03-26 Thread Anthony
On Saturday, March 26, 2016 at 7:51:07 AM UTC-4, Michael Beller wrote: > > You may be able to use jquery unwrap, wrap, or replace > > For example, I want to load a component and not generate the wrapping DIV > so I added a unique id to the top element in my view.load file and this > inline at the

[web2py] Re: Load component in a ?

2016-03-26 Thread Michael Beller
You may be able to use jquery unwrap, wrap, or replace For example, I want to load a component and not generate the wrapping DIV so I added a unique id to the top element in my view.load file and this inline at the bottom: $("#unique-id").unwrap(); I think you may be able to use replace als

[web2py] Re: Load component in a ?

2016-03-24 Thread Anthony
You could also do: LOAD(..., _class='w2p_component') and then add a CSS rule for that class. Anthony On Thursday, March 24, 2016 at 1:38:04 PM UTC-4, webmas...@trytha.com wrote: > > Works for my use case, thanks! Got so wrapped up in not wanting to do > anything global in my CSS, I completely

[web2py] Re: Load component in a ?

2016-03-24 Thread webmaster
Works for my use case, thanks! Got so wrapped up in not wanting to do anything global in my CSS, I completely drew a blank on defining an in-line style. Thanks! On Thursday, March 24, 2016 at 10:26:50 AM UTC-7, Anthony wrote: > > If you're talking about using the LOAD helper, it only generates

[web2py] Re: Load component in a ?

2016-03-24 Thread Anthony
If you're talking about using the LOAD helper, it only generates a DIV, and the JS code only looks for DIVs. Would setting it's display to inline do the trick: mycomponent = LOAD(..., _style='display:inline') If not, you should be able to do something like this in the view (not tested): $.we