On Mon, 11 Feb 2008 17:32:40 +0100,
fluk@tluk.it
<francesco.campana.76@gmail.comwrote:
Quote:
Hi guys,
This is the structure of every page inside my site.
>
Header: nothing special
>
Body:
leftColumn: a Javascript folding menu, which calls the the actual
contents of the page
something like this:
-menuItem1
subItem1
subItem2
+menuItem2
-menuItem3
subItem1
subItem2
subItem3
>
rightColumn: This is the place where the contents are displayed.
>
Footer: nothing special
>
The problem is that I shouldn't refresh the leftColumn because in this
way my menu is resetted.
>
I think I'd solve everything easily with some frames, but I know
frames are evil ;-) and I wouldn't use them if not obligated!
Is there a way to make my pages not frames-free?
As it is javascript based, why not store the folding/expanding of certain
nodes in a cookie? Another method would be not actually loading another
page, but using javascript & a XMLHTTPRequest to load new 'inner' content
from the server in some element (rightColumn?) on the page. As it's more
difficult to make pages bookmarkable in that solution I normally don't
choose this option BTW. Be sure you have a fallback for the people without
javascript (searchbots/indexers for instance, to often overlooked).
--
Rik Wasmus