Re: CSS to javascript - CSS events are too slow.



On Jul 9, 9:36 pm, mjpdata...@xxxxxxxxx wrote:
On Jul 6, 6:28 pm, The Natural Philosopher <a...@xxx> wrote:

Peter Michaux wrote,............

Sorry it took me so long to get back to everyone.

The issue is not whether this is attainable...it is and I am doing
it. Also, the table is editable through the addition of a javascript
that adds a textbox to the cell <TD> that has the focus. The real
trouble is the speed.

The more rows that I have then it causes CSS to slow to a crawl
because IE has to re-evaluate the position of so many objects. This
is why I tried to convert the CSS to an event-driven javascript. But,
as I said before, javascript does not recalc fast enough for the
graphic to move smoothly so it is jerky all over the table.

I am just trying to find out if there is a faster function to re-eval
the cell locations.

To answer the one other question, Yes, this is an internal app that is
behind a firewall so it is easy for me to standardize on IE.

Thanks again for all of the help.

Have you considered asking your question in a CSS group? You can try:

comp.infosystems.www.authoring.stylesheets
<URL: http://groups.google.com.au/group/comp.infosystems.www.authoring.stylesheets?lnk=li&hl=en


You might get a few gnarly responses, but persevere and you may just
get a pure CSS answer that does exactly what you want. Make sure you
specify that it has to work in IE.

My suggestion would be to put the fixed columns in separate tables in
divs, set it all up with table-layout:fixed and allow the content to
scroll it its own div. Use javascript to establish the initial
alignment only (and perhaps to update when cells are edited).

Good luck!


--
Rob

.


Loading