-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2014-11-23 08:19, Rabbi David Botton wrote:
> 
> 
> If you are not going to set any handlers on the table elements you
> could also do everything static and just let the child elements of
> the table finalize right after creating them (this doesn't remove
> them from the DOM, you just have no more access to them unless you
> "attach" to them again).
> 
> At library level: Result_Table  :
> Gnoga.Gui.Element.Table.Table_Type;
> 
> Say in some procedure Fill_Me.
> 
> Row : Table_Row_Type; ... for i in 1 .. Last_Result loop declare 
> Col : Table_Column_Type; begin Col.Create (Row, Result (i)); end; 
> end loop;
> 
> Then you can use the Result_Table.Inner_HTML (""); to erase the
> children in the DOM and start over and call Fill_Me again.
> 

This works very well for my purpose


> 
> I then tried View.Result_Table.Remove; View.Result_Table.Create
> (View);
> 
> 
> Create in the above code is invalid, i.e. View.Result_Table exists,
> in this case in the browser (although not in the DOM) and on the
> Ada side.

Yes I noticed that...


> Remove removes the entire table element from the DOM but it still
> exists in the browser's "gnoga cache".

And this too

> You could put it back using View.Result_Table with
> Place_Inside_Top_Of, Place_Inside_Botton_Of, Place_Before, or
> Place_After. All the children would also be put back as well and as
> long as the Ada objects used to create them are still around you
> can access those elements if they are in the DOM or not.

But this is really good to know

Thank you.


- --
Björn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUcbXoAAoJEGaQZvZiZLyCLmQH/0uPh9HHabaA28INd/wB21ml
Sik2bw5jrxHf8NBNQRm0s/nWrMNB/a0lXUM1pR/pntm7UN0K+uq78fZx6nKmyjnt
B9ik1IhBDagfCBxDPDnDTfCkuNYm6eFLlvvODVZkWuIP/+DgtVQ5MqcvooSqQEth
ivY5ZkXGFEkhGZaDyy9iMMp9LDJalMqOBQIpkdwvB3YYFYGnoQLwBpD1RTU6nHln
+HbvpYIGCTezkLEICxYridV+Is8dI6bv5fNsEGzK/7ve1UR7lndt5MQUNIbiEEYV
cTgJJgYCllaKkgl1KDHdXFB4bQjoKWZROYdC3h+Hq/J+hPPRYO3C4/nNEx+ZdJM=
=h5dT
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to