From: Raymond I. <xw...@ya...> - 2002-11-28 04:27:10
|
Hello Everyone, I was just wondering if you would like to be able to clone and persist layers? I have the clone() function working so far (with some limitations) but the persist() function should not be too far away. With clone() I'm able to make a copy of an existing dynlayer even it was already added to the document object: var myclone; var lyr = new DynLayer('Copy Me!',100,100,100,100,'yellow'); dynapi.document.addChild(lyr); myclone = lyr.clone(true); // myclone is now a replica of lyr within the document object. its has all the attributes of lyr (color,width,etc) with persist() you'll be able to persist a layer to text save it and then regenerate the exact layer from the string: var lyr = new DynLayer('Persist Me!',100,100,100,100,'yellow'); var s = lyr.persist(); // now s can be saved to a database : : a few days later : var lyr = DynLayer.regenerate(s); // layer is ready to be used In theory is possible the dynapi.document object, save it and then regenerate it when the user returns to the web site. It's very similar to the hibernate feature found in windows xp. IMPORTANT! ------------ We have been very very silent over the past few months, but I would like for those interested to just post your response on the mailing list. Talk back to me. Would you like these functions yes or no? -- Raymond Irving __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |