Computing.Net > Forums > Programming > JavaScript ; setTimeout issue

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

JavaScript ; setTimeout issue

Reply to Message Icon

Name: BelgainDSoul
Date: July 18, 2003 at 04:33:11 Pacific
OS: XP Pro SP1
CPU/Ram: Athlon 2400+, 256 DDR
Comment:

[CODE]
...
SetTimeOut("function()", 100);
...
onmousedown="getdata(),setdata(),function()"
...
[/CODE]

How can I avoid the SetTimeout
being factored each time the function is triggered? Kinda locking the event until x loops ran?

Thanks in advance




Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: July 18, 2003 at 06:46:46 Pacific
Reply:

I don't think that you've provided enough detail. All I see is two statements that both somehow call function(). Not much else can be seen from this bit of code.

There is nothing in the code that you've shown here that indicates that the SetTimeout() is inside 'function()'. Nor do I see any indication of a loop.

Maybe I'm just being dense today.


0

Response Number 2
Name: BelgainDSoul
Date: July 18, 2003 at 16:28:52 Pacific
Reply:

Sorry, wasn't really awake yet .

Found a sollution, thanks anyway : )


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


how do u get a machine's ... visual basic and access



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: JavaScript ; setTimeout issue

JavaScript, PATH ISSUE www.computing.net/answers/programming/javascript-path-issue/15913.html

Javascript addition problem. www.computing.net/answers/programming/javascript-addition-problem-/14391.html

Set focus for JavaScript www.computing.net/answers/programming/set-focus-for-javascript/10960.html