<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