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):

<span id='mycomponent'></span>
<script>$.web2py.component('{{=URL(...)}}', 'mycomponent', el=$(
'#mycomponent'));</script>

Anthony

On Thursday, March 24, 2016 at 12:51:33 PM UTC-4, webmas...@trytha.com 
wrote:
>
> I want my component to load in a span() instead of the default 
> div(class="data-w2p_remote").  Anyone know the best way to do this?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to