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).
On Monday, March 23, 2015 at 8:44:51 PM UTC-4, Dave S wrote:
>
> Ooops..
>
> On Monday, March 23, 2015 at 5:28:26 PM UTC-7, Dave S wrote:
>>
>>
>>
>> On Monday, March 23, 2015 at 1:43:26 PM UTC-7, Garry Smith wrote:
>>>
>>> [...]
>>>
>>
>
>
>> That doesn't happen with the code I use , which I referred to in your
>> other thread. But I use "c=" and "f=" explicitly, rather than positional
>> arguments. I don't know if that is the source of the confusion or not,
>> since the embedded URL looks like it took c=default, f=post.load; I don't
>> see another difference there. FF's Inspect Element shows things too
>> briefly to get all the divs expanded, but Show Source fives a static
>> snapshot view, and I see my target DIV with the id I specify, and within
>> that a div data-w2p_remote with the *same* ID and the "loading" message.
>>
>
>
> Sorry, that's the jquery example.
>
> 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>
>
>
> That div also includes 2 other things: the spinner I learned about in the
> "show busy" thread,
> <URL:https://groups.google.com/d/topic/web2py/BQ1i-xahk8A/discussion>
>
> and a simple way of handling javascript being disabled (the pages'
> onready()' function uses javascript to hide the jsoffs span); I did this
> because noscript seems to be deprecated these days.
>
> /dps
>
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.