I have a strange problem which I can't figure out. I have the following 
code in my main index.html view:

{{left_sidebar_enabled=True,right_sidebar_enabled=False,('message' in 
globals())}}
{{extend 'layout.html'}}

{{=LOAD('default','action.load',args=request.args,vars=request.vars, ajax=
True, ajax_trap=True, target='action')}}

{{block left_sidebar}}
  {{=LOAD('default','refresh.load',ajax=True, target='tasklist')}}
{{end}}

The problem is that these components loaded using the LOAD function are 
getting rendered within the initial page view instead of being loaded 
afterwards using ajax. Also, the form within the component doesn't get 
trapped either, which is how I noticed this in the first place. On clicking 
the submit button I get the form response replacing the whole page instead 
of being loaded into the relevant DIV element.

I have checked using the DHTTP utility in windows (which downloads a web 
page from the command line) to check what is returned without javascript 
getting involved, I see the full HTML from these two components in the 
index response, including the form elements from the action.load view.

I did this initially on v 2.9.9, but also upgraded to trunk (2.9.11) on the 
off chance this was a bug. I have done a simple test in another application 
on the same web2py installation and this works okay, so I'm at a loss to 
see why it doesn't work in this case.

Any ideas what might be going on?

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