From: Raymond I. <xw...@ya...> - 2002-12-02 21:08:33
|
Well I never tried it with inline layers but in theory it should. I'm of the belief that it will clone at least 98% of the object at a reasonable speed. Some properties will take a take a longer time to clone. -- Raymond Irving --- Seamus Malone <se...@ca...> wrote: > yeah that would be helpful. > does this copy the contents of inline layers as > well? > > -----Original Message----- > From: Raymond Irving [mailto:xw...@ya...] > Sent: Wednesday, November 27, 2002 8:27 PM > To: DynAPI-Dev; DynApi-Help > Subject: [Dynapi-Dev] Would you like to able to > clone() and persist() > DynLayers? > > > 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 > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm > Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |