On Monday, March 23, 2015 at 5:52:46 PM UTC-7, Anthony wrote:
>
> LOAD generates a div with an id set to the value of the "target" 
> attribute, so you do not want to put LOAD inside a div that already has 
> that id (then you will get nested divs with the same id).
>
 
You're right, I do, as I noted above, but after the LOAD() completes, I 
just have the target DIV, with only the LOADed contents inside.

So, I got away with it for now.

/dps


> On Monday, March 23, 2015 at 8:44:51 PM UTC-4, Dave S wrote:
>>
>> [...] 
>>
> Here's the code I use for load(); notice the LOAD() is inside the target 
>> DIV:
>>
>> <DIV id="my_hats">
>> {{=LOAD(c='thats', f='thats2.load', target='my_hats', ajax=True)}}
>>     <span id="jsoffs">Javascript off?  <a href="thats2.html" 
>> id="jsoffa">Click 
>> here</a></span>
>>     <br>
>>     <span class="fa fa-spinner fa-spin"></span>
>> </DIV>
>>
>>

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