|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
javascript - working with timings
anyone dealt with timings in javascript using the setTimeout and setInterval
I am having real issues where it is not doing it correctly. mainly seems to when others are running. what I am doing is a simple set interval but they seem to not be working right is this a know issue, not to trust timeings I have noticed some other inaccuracies let me know if you have dealt with this stuff thanks |
|
#2
|
|||
|
|||
|
RE: javascript - working with timings
I've done some work with setTimeout and setInterval - whats the problem your having?
|
|
#3
|
|||
|
|||
|
RE: javascript - working with timings
well this issue that it does not work right
I did some javascript animation I told it to move an object 1 pixel every 100ms for like 10000ms and it did, problem was that on different machines it moved a different amount of pixels in that time! so I figured maybe slower pcs was taking longer to actually run the function and it was backing up. so I made it move every 500ms, nothing worked. I ended up having toi include a stop check in the function to stop after the right number of pixels. Now I am animating a resize and in some instances (to maintain aspect ratio) I am moving like 0.11 pixels and it looks like it can't handle that amount. now I could change it and use time to move it 1 pixel but calc the time diff, but because of my time issues that will probably not work! I am a little frustrated, I guess I am asking just too much! |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > javascript - working with timings |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|