Hey all,
I'm trying to use LOAD to load a webpage in the main division
<div class="span9" id="mainsection">
{{block center}}
{{include}}
{{end}}
</div>
After I opened my website (index.html), I clicked the link rendered by my
layout file {{=A('Query',_href='query',cid="leftbar")}} (#leftbar is the
leftsidebar <div class="span3 left-sidebar" id="leftbar"></div>
defined in layout file)
so my leftsidebar loaded my controller query which directed to my view
query.html.
In the query.html view, I've got
{{=LOAD('default','try',ajax=True, target="mainsection")}}
which should load the 'try'page in the mainsection division. However, I
could only load it within the leftsidebar division, which means the try
page only appeared in the leftsidebar division.
However, if I change {{=LOAD('default','try',ajax=True,
target="mainsection")}} to {{=LOAD('default','try',ajax=True,
target="menu")}} (menu is another division defined by layout)
the menu division could load the 'try' file.
Could anyone help me solve the problem? Thank you very much!
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.