Can you please send me a link to an example where its applied so I get to 
learn from it?

On Wednesday, June 22, 2016 at 8:24:53 PM UTC-4, Anthony wrote:
>
> LOAD() is a Python helper, so it cannot be called via Javascript in the 
> browser. However, you can load/refresh a component via Javascript using 
> $.web2py.component(url, target) (the LOAD() helper simply creates the 
> target div and adds a data attribute that tells web2py.js to call 
> $.web2py.component).
>
> Anthony
>
> On Wednesday, June 22, 2016 at 7:16:37 PM UTC-4, Ron Chatterjee wrote:
>>
>>
>>        <div class="one" id="a">Click to read more</div>
>>       
>>       <div class="two" id="b">
>>           {{=LOAD('default','thread.load',args=[threads[i].id, 
>> threads[i].name],client_side=True)}}</p>
>>        </div>
>>
>>
>>
>>
>> <script>
>> jQuery(document).ready(function(){
>> jQuery('.one').click(function(){jQuery('.two').slideToggle()});
>> });
>> </script>
>>
>>
>> Without having to change the layout or using two redirect, I was hoping 
>> to combine two pages into one. But calling the LOAD inside the jquery ( 
>> Gives me bunch of loading shows up in the menu as in the attached picture). 
>> Any help how to inside the load inside the jquery ? Thanks in advance.
>>
>>
>> http://www.web2py.com/books/default/chapter/29/11/jquery-and-ajax?search=onload
>>
>

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