Try creating an unload event handler that goes through your forms and writes the data therein to a cookie. Same thing with the state of the tree. Then write an onload event handler that looks for the cookies, and if found, populates the form elements and the tree state.
If that doesn't work, then you are going to have to add events to all of the form elements that allow the cookie data to be saved as you go. But... why are you pressing F5 in the first place? On Thu, Jan 21, 2010 at 1:32 AM, Danijel <danijel.vuko...@gmail.com> wrote: > i spent about several days trying to figure out hot to save state of > open forms. > > > In my web page I have a jquery treeview tool, when I click form is > loaded into the #treview div. > > $(document).ready(function(){ > .... > > $("#treview").treeview({ > url: "category_async.php", > fileClick: function() { > id = $(this).attr("id"); > $.get("categories.php?id=" + id, {}, function > (data) { > $("#forms").html(data); > }); > } > }); > ... > > }; > > data repreesnt url page address i.e. "forms/inputdata.php" > > When i F5 - refresh page on browser div #forms clears and div #treevew > is set > to root element. > > I exepcteed #treeview should stay open (on the node which i clicked) > and #form should have page loaded with inserted data ../forms/ > inputdata.php > > What should i do to treevew will stay open, page will stay in div > #forms and > data will be displayed on page? > > thanks in advance > > br,Dani > -- John Arrowwood John (at) Irie (dash) Inc (dot) com John (at) Arrowwood Photography (dot) com John (at) Hanlons Razor (dot) com -- http://www.irie-inc.com/ http://arrowwood.blogspot.com/