You can use XHTMLRequest (AJAX) to handle this for you. This would have the added benefit of not needing to reload the container on each load.
So, it would work something like this
-----------------------------------------------------------
<script>
function_to_fill_div(whichView){
//some js that does the mochikit/XHTMLRequest stuff
}
</script>
<a href="" > <a href="" > <a href="" >
<div id="information"></div>
--------------------------------------------------------
the downside to doing it this way is that its not search engine friendly, and you won't have friendly links to the different content pages. If those aren't an issue, than this will likely improve speed/usability.
matt
On 10/24/05, Swaroop C H <[EMAIL PROTECTED]> wrote:
Isn't that how the master.kid and welcome.kid templates generated by `tg-admin quickstart` work?
You can edit master.kid for your overall design/HTML, and then make copies of welcome.kid and edit them for your individual pages (qotw, potw, ...)
Hope this helps,
--
Swaroop C H
www.swaroopch.infoOn 10/25/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
First, I realize I should probably use the kid mailing list for this
question. However, I'm sure that at least one other turbogears user
will benefit from this information (or at least it's a good enough
excuse ;))
I am designing a website that has a handful of different `locations'.
For instance, the following URLS will probably be used:
http://mysite.com/members
http://mysite.com/qotw
http://mysite.com/potw
Now, whenever a user visits one of the links above, from the `main'
page, the only thing that I want to change is an `information' div -
<div id="information"/>.
This information div will contain either member information, quote of
the week (qotw) or picture of the week (potw). However, *everything*
else around the `information' div remains the same.
I examined using py:match, but its usage seems to be more appropriate
for changing "headers" and "footers". For instance, you're main
document extends some helper document that provides new headers and
footers.
However, my usage is perpendicular to the `header' and `footers' usage.
Instead of having a `main' document that has bits and pieces to
replace, I want to have a small `auxillary' document that replaces the
`information' div in the main document. Can anyone give me an idea on
how to do this. It seems to be simple, but I can't quite grok it. (I
hope I'm clear on what I'm attempting to do!)
Thanks!
jw

