On Monday, March 23, 2015 at 6:44:15 PM UTC-7, Dave S wrote: > > [...] > Looking again at > <URL: > http://www.web2py.com/books/default/chapter/29/12/components-and-plugins?search=LOAD%28%29#LOAD > >, > it seems the example DOESN'T have a pre-existing DIV. To clean up my > code, I need to do the 'contents=' parameter with the spinner as well as > the text. > > (The "jsoffs " stuff should be able to be moved into the outer environment > (good ol' "span12"), because it can lay around hidden forever and ever.) > > Side note: In FF, "Show Source" always shows the pre-load version. > "Inspect Element" shows the updated contents. This might help some later > reader. > >> >>> This seems to be a working correction:
<span id="jsoffs">Javascript off? <a href="thats2.html" id="jsoffa">Click here</a></span> <br> {{loadmsg = CAT("loading ...", BR(), SPAN(_class="fa fa-spinner fa-spin"))}} {{=LOAD(c='thats', f='thats2.load', target='my_hats', content=loadmsg, ajax=True)}} -- 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.