Hi there,

I can see the clone() function being very handy. I'm not so sure about the
persist() function... I suppose I am just used to generating the code at the
time it's used...

Cheers

Raymond Irving wrote:

> 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

--
David Scanlan




-------------------------------------------------------
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-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to