In my application I have the following code:

<script type="text/javascript">
$(document).ready(function(){
  {{if url:}}
  web2py_component('{{=url}}', 'content');
  {{pass}}
});
</script>

url is set in a function: url=URL('smartapp', 'smartpage', 
args=[nodeID,categoryID])

In a view I have a div with id 'content' The problem with this code is that 
it does not load
the content until document ready. But it does make the request GET 53

I tried:

<div id="content">
     {{=LOAD(url,ajax=True,target='content')}}
 </div> <!-- /#component -->

But that results in a div containing 

<div id="content" data-w2p_remote"/init/smartapp/smartpage/53/2">loading 
...</div>

And it does not make a request.

I am using web2py 2.7.4 in which I build the application containing this 
code from cratch


Kind regards,

Annet


-- 
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/groups/opt_out.

Reply via email to