Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Table Javascript runnaway script
Table Javascript runnaway script [message #40768] Wed, 25 July 2007 20:19 Go to next message
Adam Hamel is currently offline Adam HamelFriend
Messages: 6
Registered: July 2009
Junior Member
Bug found Testing with Firefox 2.0.0.5 with the SWT Controls Demo

If you load the "Table" test
1) add about 28 columns
2) add about 55 rows

then just attempt to resize a column. Causes a runnaway script. Firefox
asks if you would like to stop the script. This is also a very slow
delay. Sounds like maybe a setWidth is being called on the JS table
instead of maybe using colgroup object.
Re: Table Javascript runnaway script [message #40958 is a reply to message #40768] Thu, 26 July 2007 10:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Adam,

Firefox asks to stop the script due to the bad performance of the Table
in some respects. We are working on this.
Concerning the setWidth and colgroup, I am not sure that means.

Cheers,
Rüdiger


Adam Hamel wrote:
> Bug found Testing with Firefox 2.0.0.5 with the SWT Controls Demo
>
> If you load the "Table" test
> 1) add about 28 columns
> 2) add about 55 rows
>
> then just attempt to resize a column. Causes a runnaway script. Firefox
> asks if you would like to stop the script. This is also a very slow
> delay. Sounds like maybe a setWidth is being called on the JS table
> instead of maybe using colgroup object.
Re: Table Javascript runnaway script [message #41051 is a reply to message #40958] Thu, 26 July 2007 14:13 Go to previous messageGo to next message
Adam Hamel is currently offline Adam HamelFriend
Messages: 6
Registered: July 2009
Junior Member
Rüdiger Herrmann wrote:
> Adam,
>
> Firefox asks to stop the script due to the bad performance of the Table
> in some respects. We are working on this.
> Concerning the setWidth and colgroup, I am not sure that means.
>
> Cheers,
> Rüdiger
>
>
> Adam Hamel wrote:
>> Bug found Testing with Firefox 2.0.0.5 with the SWT Controls Demo
>>
>> If you load the "Table" test
>> 1) add about 28 columns
>> 2) add about 55 rows
>>
>> then just attempt to resize a column. Causes a runnaway script.
>> Firefox asks if you would like to stop the script. This is also a very
>> slow delay. Sounds like maybe a setWidth is being called on the JS
>> table instead of maybe using colgroup object.

After inspecting the runtime HTML Dom It appears that the Table Widget
isn't using a table at all. It looks like it is using just divs to give
the appearance of a table. HTML tables have a <colgroup> tag that
determine column properties including width, and I thought maybe the
Table was using that tag. That is what I meant by colgroup. Sorry for
the confusion.

Adam
Re: Table Javascript runnaway script [message #41082 is a reply to message #41051] Thu, 26 July 2007 18:29 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Adam Hamel wrote:
> Rüdiger Herrmann wrote:
>> Adam,
>>
>> Firefox asks to stop the script due to the bad performance of the
>> Table in some respects. We are working on this.
>> Concerning the setWidth and colgroup, I am not sure that means.
>>
>> Cheers,
>> Rüdiger
>>
>>
>> Adam Hamel wrote:
>>> Bug found Testing with Firefox 2.0.0.5 with the SWT Controls Demo
>>>
>>> If you load the "Table" test
>>> 1) add about 28 columns
>>> 2) add about 55 rows
>>>
>>> then just attempt to resize a column. Causes a runnaway script.
>>> Firefox asks if you would like to stop the script. This is also a
>>> very slow delay. Sounds like maybe a setWidth is being called on the
>>> JS table instead of maybe using colgroup object.
>
> After inspecting the runtime HTML Dom It appears that the Table Widget
> isn't using a table at all. It looks like it is using just divs to give
> the appearance of a table. HTML tables have a <colgroup> tag that
> determine column properties including width, and I thought maybe the
> Table was using that tag. That is what I meant by colgroup. Sorry for
> the confusion.

ah, now I got it. In the future we might switch the implementation to
use a table if this further improves performance. But for now, as you
already discovered, its only divs.

Rüdiger

>
> Adam
Previous Topic:CellEditor support?
Next Topic:TableViewer w/Virtual enabled redraw problem
Goto Forum:
  


Current Time: Thu Apr 25 09:55:13 GMT 2024

Powered by FUDForum. Page generated in 0.03291 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top