RobG <rg***@iinet.net.auau> wrote in message news:<ht*****************@news.optus.net.au>...
Sergio Millich wrote: I have an annoyîng problem with a javascript tree. When you scroll
down to the bottom of the tree and click to open a node the tree is
refreshed and scrolls back to the top, hiding the node. Is there a way
to prevent the page from being scrolled back to the top on every
refresh? Thank you for your help.
If you post a brief example, you may get an answer more quickly. I'm
not quite sure what you mean by a "javascript tree" - I presume you are
talking about collapsible, hierarchical menus - but I may be wrong.
Rob.
Is is in fact a tree that could be used as a menu or to navigate
through folders in Explorer style, it is indeed collapsible. The main
point is that as it expands in the frame so it has to be scrollable.
The source code snippet wouldn't be meaningful because it is embedded
in JSPs, here's what I have in the page:
<script language="JavaScript">function
setTreeParamsAndGo7129984(action, nodeId)
{setFieldValue('cti_current_contexte', 'GC_LOISFED.');go('/envirolex'
+ action + '?requestURI=%2Fenvirolex%2Fui%2FEnvUiLoisFed.jsp% 23tree7129984&nodeId='
+ nodeId, false);}</script>
<a name="tree7129984"></a>
<span class="tree"><ul>
<li><a class="treeActuator"
href="javascript
:setTreeParamsAndGo7129984('/fermerNoeud.do','242');"><span
class="treeNodeOpenCH"> </a><a class="treeActuator"
title="Numéro: RS 101"
href="javascript
:setTreeParamsAndGo7129984('/selectionnerNoeud.do','242');">CONSTITUTION
FEDERALE</a></span><span><a
href="http://www.admin.ch/ch/f/rs/101/index.html"> @ </a></span>
etc...
Pretty meaningless if you don't know what the functions do.
What interests me is how to control the scrolling part. Thank you for
your answers.
Sergio.