DOM innerHTML equivalent ?
Craig Newman
craig at starfirelighting.com
Wed Oct 16 11:53:21 EDT 2024
Hi.
I am confused. As usual.
"Group them then store the group as an array,"
I read the OP as wanting to gather all the information about all the controls, not the controls themselves. If so, then the”slow” part is to gather the data, which has to be done control-by-control, card-by-card and stack-by-stack. But once through all that, collecting and storing the information, array or plain, is virtually instantaneous.
Anyway, how do you store a group as an array?
Craig
> On Oct 16, 2024, at 10:54 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Group them then store the group as an array, but placing them won’t be any faster methinks. You can also arrayEncode the array first if you need it in a serialized format.
>
> Bob S
>
>
>> On Oct 16, 2024, at 7:19 AM, jbv via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> Hi list,
>>
>> Is there a way to catch all controls on a card
>> (for instance) with all their properties and
>> values, and store them in a variable, like
>> innerHML for a DOM element, and have all these
>> controls displayed later very fast and in one go ?
>>
>> I hope I made myself clear.
>> I tried several things, like storing all properties
>> and values as text in a variable and then recreating
>> all controls (quire slow), or duplicate the controls
>> on a hidden card or another stack, but nothing is as
>> easy as what is available i the DOM.
>>
>> Thank you in advance.
>> jbv
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list