473,395 Members | 1,454 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

setExpression takes client processor to 100%

Dear All,

I have been trying to use the following:

document.getElementById('someId').setExpression('s omeExpression');

This works ok.

But in my actual implementation, I have over 20 different elements
which need to be positioned using this method. When I made the code, I
found that my CPU would be at 100% for even trival events such as
mouseover() and mouseout()

Am I doing something wrong?

Thanks and regards,
Jack
Jul 20 '05 #1
1 1277
"Jack Wright" <su***@volcanomail.com> wrote in message
news:8f**************************@posting.google.c om...
I have been trying to use the following:

document.getElementById('someId').setExpression(' someExpression');

This works ok.

But in my actual implementation, I have over 20 different
elements which need to be positioned using this method.
While you can position elements using that method (though only on recent
IE browsers) it is doubtful that you *need* to. There are plenty of
other ways of positioning elements, including method that will work
across many (all) dynamic browsers.
When I made the code, I found that my CPU would be at 100% for even
trival events such as mouseover() and mouseout()
Yes, expressions get applied frequently and repeatedly, if you use more
than a couple it is easy to overload IE, and the more complex the
expression the more work is needed for each.
Am I doing something wrong?


The balance of probability is that you don't need to position elements
with an expression and that identifying when you do need to position
them will allow you to implement their positioning in a way that doesn't
overburden the browser.

For animated positioning some sort of timer driven activity would
probably do. Animation is smooth at 40 millisecond intervals (though
browser timers are rarely capable of achieving that rate, or that
precision). Otherwise, event driven re-positioning would be better, an
initial placement and then re-positioning in response to onresize and/or
user interaction.

And for some re-positioning, say in response to user's re-setting their
display font size, an appropriate use of CSS units for positioning may
avoid the need to involve javascript in the process at all.

Richard.
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Frank | last post by:
Hi, we are using oracle clients (Release 9.0.1.0.1 - Production) on an NT4 (Service Pack6) computers. the server is a W2K, (Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production With the...
2
by: vishal | last post by:
Hi I a am executing a stored procedure from C code using SQLExecute . It takes some time to Execute the procedure. However when I see the processor usage during that time it shows 100% cpu usage....
5
by: Jorch | last post by:
Hi, Can you help me?? Why code 1 eats up 100% of processor time when browser window is active and code 2 doesn't???? Do I use setTimeout wrong somehow??? Code 1 changes visibility of div...
1
by: GB | last post by:
For various connectivity reasons to my employer's network, I frequently find myself using the telnet-based DB2 client for Sun. Unfortunately, on this client: - The return key submits an SQL...
9
by: DB2 | last post by:
Hello, everyone. Our developers are wondering if their swing Java-based application connecting to a DB2 server through JDBC requires the DB2 client access license (CAL) per user. They've got...
1
by: Chris | last post by:
I'm trying to do something really easy: just get the % CPU load. However, I just get mostly 0's sprinkled with an occasional 100. I poked around on the web for info, but all the stuff I found (I...
4
by: Edgardo Sepulveda | last post by:
Hi, one question, is there a limit on the numbers of sessions that a client can have? i dont know why but suddently, as i handle a lot of the user information with sessions, and also have added a...
0
by: Divyakumar Jain,SAP Netweaver consultant | last post by:
Hi all, I have created an web service on SAP system. I have created a .net client using Micrsoft Visual Studio 2003 and .net frame work 2.0. in Visual Basic. In that .net client i have created...
5
by: fniles | last post by:
I am having problem with thread. I have a Session class with public string variable (called Message) that I set from my Main program. In the session class it checks for the value of Message...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.