473,508 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

question about Timers @ stuff............

hi can Variant archiving setTimout('.. capability be done without
using it? :-)

May 17 '07 #1
35 1868
re********@gmail.com said the following on 5/17/2007 2:02 PM:
hi can Variant archiving setTimout('.. capability be done without
using it? :-)
Could you try reposting that in some form of comprehensible English?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 17 '07 #2
Could you try reposting that in some form of comprehensible English?

archiving = achieving sooory

May 17 '07 #3
re********@gmail.com wrote in news:1179427611.981289.6840
@p77g2000hsh.googlegroups.com:
>Could you try reposting that in some form of comprehensible English?

archiving = achieving sooory
still doesnt make sense
May 17 '07 #4
re********@gmail.com said the following on 5/17/2007 2:46 PM:
>Could you try reposting that in some form of comprehensible English?

archiving = achieving sooory
Your doesn't question sense still make.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 17 '07 #5
Your doesn't question sense still make.

I've got a super intergalactic problem, a very complex interface that
uses javascript setTimer to execute functions with 1, 5 or 10 second
delays.... without get into all the political issues, i just need a
simple, if not ad-hoc replacement for it, that gives me finite
control, to set delays that lead to running other functions(); can
this be done without messing up timing or CPU% overload? :-) thank you
for your braintime

May 17 '07 #6


I've got a super intergalactic problem, a very complex interface that
uses javascript setTimer to execute functions with 1, 5 or 10 second
delays.... without get into all the political issues, i just need a
simple, if not ad-hoc replacement for it, that gives me finite
control, to set delays that lead to running other functions(); can
this be done without messing up timing or CPU% overload? :-) thank you
for your braintime

----------------
MORE
----------------

btw, its a low-end ie browser interface, that has a quirk that render
use of javascript setTimer inoperable, very specifically, (everything
else Javascript seems to be ok), ..... changing aspects of what I have
to work in is never going to happen, so I just need something that can
act like setTimer for about a dozen places I need to change the
"engine" out, so to speak i hope i am clearer about my problem and
can help me please with best solution!!


May 17 '07 #7
Lee
re********@gmail.com said:
>
I've got a super intergalactic problem, a very complex interface that
uses javascript setTimer to execute functions with 1, 5 or 10 second
delays.... without get into all the political issues, i just need a
simple, if not ad-hoc replacement for it, that gives me finite
control, to set delays that lead to running other functions(); can
this be done without messing up timing or CPU% overload? :-) thank you
for your braintime

----------------
MORE
----------------

btw, its a low-end ie browser interface, that has a quirk that render
use of javascript setTimer inoperable, very specifically, (everything
else Javascript seems to be ok), ..... changing aspects of what I have
to work in is never going to happen, so I just need something that can
act like setTimer for about a dozen places I need to change the
"engine" out, so to speak i hope i am clearer about my problem and
can help me please with best solution!!
The best solution is to use setTimeout or setInterval.

99.4% of people who insist that they can't use them for their
purposes turn out to not know what they're talking about.

Unfortunately for you, that puts the burden on you to convince
us that you really have a quirk that makes them unusable.
--

May 17 '07 #8
On May 17, 5:27 pm, Lee <REM0VElbspamt...@cox.netwrote:
rebecca...@gmail.com said:


I've got a super intergalactic problem, a very complex interface that
uses javascript setTimer to execute functions with 1, 5 or 10 second
delays.... without get into all the political issues, i just need a
simple, if not ad-hoc replacement for it, that gives me finite
control, to set delays that lead to running other functions(); can
this be done without messing up timing or CPU% overload? :-) thank you
for your braintime
----------------
MORE
----------------
btw, its a low-end ie browser interface, that has a quirk that render
use of javascript setTimer inoperable, very specifically, (everything
else Javascript seems to be ok), ..... changing aspects of what I have
to work in is never going to happen, so I just need something that can
act like setTimer for about a dozen places I need to change the
"engine" out, so to speak i hope i am clearer about my problem and
can help me please with best solution!!

The best solution is to use setTimeout or setInterval.

99.4% of people who insist that they can't use them for their
purposes turn out to not know what they're talking about.

Unfortunately for you, that puts the burden on you to convince
us that you really have a quirk that makes them unusable.

--
Its a fixed group of people, not public, and I am not in a political
position in my job to change the fact setTimeout does not work,
therefore, evidence non-withstanding, I need to find a way as I
articulated before to ..... ?

May 17 '07 #9
On May 17, 6:22 pm, rebecca...@gmail.com wrote:
On May 17, 5:27 pm, Lee <REM0VElbspamt...@cox.netwrote:
rebecca...@gmail.com said:
>I've got a super intergalactic problem, a very complex interface that
>uses javascript setTimer to execute functions with 1, 5 or 10 second
>delays.... without get into all the political issues, i just need a
>simple, if not ad-hoc replacement for it, that gives me finite
>control, to set delays that lead to running other functions(); can
>this be done without messing up timing or CPU% overload? :-) thank you
>for your braintime
>----------------
>MORE
>----------------
>btw, its a low-end ie browser interface, that has a quirk that render
>use of javascript setTimer inoperable, very specifically, (everything
>else Javascript seems to be ok), ..... changing aspects of what I have
>to work in is never going to happen, so I just need something that can
>act like setTimer for about a dozen places I need to change the
>"engine" out, so to speak i hope i am clearer about my problem and
>can help me please with best solution!!
The best solution is to use setTimeout or setInterval.
99.4% of people who insist that they can't use them for their
purposes turn out to not know what they're talking about.
Unfortunately for you, that puts the burden on you to convince
us that you really have a quirk that makes them unusable.
--

Its a fixed group of people, not public, and I am not in a political
position in my job to change the fact setTimeout does not work,
therefore, evidence non-withstanding, I need to find a way as I
articulated before to ..... ?
BTW, I don't know where 99.4 % comes from, but technically are you
able to write something like this, or just conjuring up?

May 17 '07 #10
Lee
re********@gmail.com said:
>
On May 17, 6:22 pm, rebecca...@gmail.com wrote:
>On May 17, 5:27 pm, Lee <REM0VElbspamt...@cox.netwrote:
rebecca...@gmail.com said:
>I've got a super intergalactic problem, a very complex interface that
uses javascript setTimer to execute functions with 1, 5 or 10 second
delays.... without get into all the political issues, i just need a
simple, if not ad-hoc replacement for it, that gives me finite
control, to set delays that lead to running other functions(); can
this be done without messing up timing or CPU% overload? :-) thank you
for your braintime
>----------------
MORE
----------------
>btw, its a low-end ie browser interface, that has a quirk that render
use of javascript setTimer inoperable, very specifically, (everything
else Javascript seems to be ok), ..... changing aspects of what I have
to work in is never going to happen, so I just need something that can
act like setTimer for about a dozen places I need to change the
"engine" out, so to speak i hope i am clearer about my problem and
can help me please with best solution!!
The best solution is to use setTimeout or setInterval.
99.4% of people who insist that they can't use them for their
purposes turn out to not know what they're talking about.
Unfortunately for you, that puts the burden on you to convince
us that you really have a quirk that makes them unusable.
--

Its a fixed group of people, not public, and I am not in a political
position in my job to change the fact setTimeout does not work,
therefore, evidence non-withstanding, I need to find a way as I
articulated before to ..... ?

BTW, I don't know where 99.4 % comes from, but technically are you
able to write something like this, or just conjuring up?
I was being generous. In my experience, I believe it's 100%.
In other words, it's very nearly certain that you can do what
you need with setTimeout(), but don't know how.
--

May 17 '07 #11
I was being generous. In my experience, I believe it's 100%.
In other words, it's very nearly certain that you can do what
you need with setTimeout(), but don't know how.

--
Sorry Lee, you are, and for clarification, I cannot run/execute
setTimeout(), in a real pure technical sense, IE just ignores it.....
it might be a security issue, but I work in a real integrated legacy
environment, and really this is a particularly minor thing affecting
about half dozen problem areas in some new code I am integrating that
uses setTimeout().

<script>

var hold_timer=5000;milliseconds

do (pause in a 5 sec loop based on hold_timer) {

then runthis();

}

I know it is asinine , but for me, in a real special case it will be
immensely helpful.

Have a very pretty day.
</script>

May 17 '07 #12
Lee
re********@gmail.com said:
>
>I was being generous. In my experience, I believe it's 100%.
In other words, it's very nearly certain that you can do what
you need with setTimeout(), but don't know how.

--

Sorry Lee, you are, and for clarification, I cannot run/execute
setTimeout(), in a real pure technical sense, IE just ignores it.....
it might be a security issue, but I work in a real integrated legacy
environment, and really this is a particularly minor thing affecting
about half dozen problem areas in some new code I am integrating that
uses setTimeout().

<script>

var hold_timer=5000;milliseconds

do (pause in a 5 sec loop based on hold_timer) {

then runthis();

}

I know it is asinine , but for me, in a real special case it will be
immensely helpful.

Have a very pretty day.
</script>
The most common mistake in using setTimeout() makes it appear
that it is being ignored. What happens when you try this:

<html>
<body>
<script type="text/javascript">
setTimeout("alert('hi')",3000);
</script>
</body>
</html>
--

May 18 '07 #13
On May 18, 9:47 am, rebecca...@gmail.com wrote:
I was being generous. In my experience, I believe it's 100%.
In other words, it's very nearly certain that you can do what
you need with setTimeout(), but don't know how.
--

Sorry Lee, you are, and for clarification, I cannot run/execute
setTimeout(), in a real pure technical sense, IE just ignores it.....
it might be a security issue, but I work in a real integrated legacy
environment, and really this is a particularly minor thing affecting
about half dozen problem areas in some new code I am integrating that
uses setTimeout().
Your users must have very old versions of IE. According to a Richard
Cornford post (link below) version 4 doesn't support function
references, it wants a string.

There is an interesting thread regarding it titled "small function
doesnt work in IE", link below. Richard Cornford's answer is copied
below my signature, check for auto-wrapping (though I think Richard
was pretty thorough with manually wrapping it).

<URL:
http://groups.google.com.au/group/co...32dff72df262c0
>
<script>

var hold_timer=5000;milliseconds

do (pause in a 5 sec loop based on hold_timer) {
Javascript doesn't have a pause function. You must use either
setTimeout or setInterval.
--
Rob

Erwin Moller wrote in message

<3ebbb857$0$49100$e4fe5...@news.xs4all.nl>...
<snip>
>..., it is solved now I guess.
Hopefully, but your proposed solution used the javascript pseudo
protocol which is not something that the regulars on this group ever
recommend (with the possible exception of Lee's pop-up window timing
solution application of it). The group's FAQ (section 4.24) advises
against its use in general terms and DU recently proposed that the FAQ
entry's wording should be modified to go provide some explanation of
the
many undesirable and often browser type, versions and/or operating
system dependent side effects of its use.

One of its (many) problems is that to the browser it represents
navigation, putting the current page into a waiting state in which the
browser stops performing resource hungry tasks. The most obvious
manifestation of which is that animated GIFs stop playing, but other
facilities also disappear with its first invocation.

Mac IE 5 suffers really badly from side effects of the use of the
javascript pseudo protocol, but it seems to have some undesirable
effects on every browser.

<snip>
>I use Konquerer 3.0.3-14, so I can test it if you want.
>But.... I always pass a string (with a function)
to the setTimeout....
The string argument versions is more widely supported but most of the
modern browsers will accept function references as the first argument.
The string argument version must invoke the eval function in order to
execute the code in the string, which would be slower than invoking a
function by reference. Also, Avant Go and possibly other small,
embedded
browsers do not have the resources to implement the eval function and
so
they cannot use the string argument version. I don't know whether they
support the function reference version or just don't implement a
setTimeout function at all (it is extremely hard to get documentation
on
most embedded browsers).
>I do not know how to create a reference to a function.
Given a function:-

function myFunction(){
...

}

- the identifier - myFunction - is a function reference. That is, it
is
a property of the global object that holds a reference to the function
object that was created when the function definition above was
interpreted.

When calling the function as - myFunciton(); - the brackets '()' might
best be viewed as an operator (a function execution operator) that
operates on the function referred to by the value in the property -
myFunction - . So, if you can append '()' (possibly with arguments) to
an identifier and execute a function, then that identifier _is_ a
reference to a function (a function object in JavaScript).

As the properties that refer to functions contain references to
function
objects the references can be copied:-

var copyOfFuncRef = myFunciton;

- leaves both properties - myFunction - and - copyOfFuncRef - holding
references to the same function object. And that function object can
now
be called as - copyOfFuncRef() - .
>But if you post a sample I'll be happy to test it for you.
The reason for my interest is that I am aiming at maximum efficiency
(the function reference version) and maximum compatibility (fall-back
to
the string argument version if that is all that is available) and I
want
to do this without having to go through a battery of tests like the
ones
I will post below.

I have noticed that if IE 4 or Opera 5 are passed a function reference
as the first argument to setTimeout (which they do not support) they
type convert it into a string. To do the type conversion they call the
function's toString method. toString is defined on the
Function.prototype but if the function object in question is provided
with its own toString method it will override the method on the
prototype.

My plan is to provide any functions that are passed as references to
setTimeout with toString methods that will return a string that would
call the function anyway. All of the (20 odd) browsers/versions that I
have accept the function reference argument except IE 4 an Opera 5 and
those two happily type-convert the function reference to a string
using
its toString method.

I have not been able to test with Konquerer 3. If it accepts function
reference arguments my plan can go ahead, if it will type-convert the
reference with the function's toString method I am still in business.
If
it only accepts string arguments and will not type convert a function
reference then I will have to adopt testing and code branching
strategy
instead (much more code).

It may seem wasteful to provide any function that is to be used with
setTimeout with an additional toString method but that can be done for
just one setTimeout-setting function as I described in the thread with
the subject 'closures, what are they good for?'.

The following HTML should test setTimout and setInterval and alert the
results about half a second after the onload event. The alert should
say
if each function supports function reference arguments, string
arguments
and, if only string arguments, whether Konquerer is willing to type
convert function references into strings.

(sorry it is not shorter but I may as well find out once and for all.
I
should have handled the line wrapping (at 72 characters) so that the
page can just be cut-n-pasted from your newsreader.)

<html>
<head>
<title>setTimeout tests</title>
<script type="text/javascript">
var setTmExists = (typeof window.setTimeout != 'undefined');
var setInExists = (typeof window.setInterval != 'undefined');
var setTmString = false;
var setTmString2 = false;
var setTmFunc = false;
var setInString = false;
var setInString2 = false;
var setInFunc = false;
var testTimer,testTimer2;

function testSetTm(){
setTmFunc = true;
setTimeout('setTmString = true;', 1);
}

testSetTm.toString = function(){
return 'setTmString = true;';

}

function testSetIn(){
clearInterval(testTimer);
setInFunc = true;
testTimer = setInterval(
'setInString = true;clearInterval(testTimer);', 1);
}

testSetIn.toString = function(){
return 'setInString = true;clearInterval(testTimer);';

}

if(setTmExists){
setTimeout('setTmString2 = true;', 1);
setTimeout(testSetTm, 1);
}

if(setInExists){
testTimer2 = setInterval(
'setInString2 = true;clearInterval(testTimer2);', 1);
testTimer = setInterval(testSetIn, 1);

}

function checkTest(){
var st = 'The window.setTimeout function '+
(setTmExists?'exists':'does not exist')+'\n';
if(setTmExists){
st += '\tstring arguments are '+
(setTmString?'':'not ')+'supported\n\tfunction arguments are '+
((setTmFunc||setTmString2)?'':'not ')+'supported\n';
if((!setTmFunc)&&(!setTmString)&&(setTmString2)){
st +=
'\tfunction arguments are not type-converted by setTimeout\n';
}
}
st += '\nThe window.setInterval function '+
(setInExists?'exists':'does not exist')+'\n';
if(setInExists){
st += '\tstring arguments are '+
(setInString?'':'not ')+'supported\n\tfunction arguments are '+
((setInFunc||setInString2)?'':'not ')+'supported\n';
if((!setInFunc)&&(!setInString)&&(setInString2)){
st +=
'\tfunction arguments are not type-converted by setInterval\n';
}
}
alert(st);
}

checkTest.toString = function(){
return 'checkTest();';
}

</script>
</head>
<body onload="setTimeout('checkTest()', 400);">
<p>setTimeout tests.
</p>
</body>
</html>

Thanks,

Richard.

May 18 '07 #14
RobG said the following on 5/17/2007 9:22 PM:
On May 18, 9:47 am, rebecca...@gmail.com wrote:
>>I was being generous. In my experience, I believe it's 100%.
In other words, it's very nearly certain that you can do what
you need with setTimeout(), but don't know how.
--
Sorry Lee, you are, and for clarification, I cannot run/execute
setTimeout(), in a real pure technical sense, IE just ignores it.....
it might be a security issue, but I work in a real integrated legacy
environment, and really this is a particularly minor thing affecting
about half dozen problem areas in some new code I am integrating that
uses setTimeout().

Your users must have very old versions of IE. According to a Richard
Cornford post (link below) version 4 doesn't support function
references, it wants a string.

There is an interesting thread regarding it titled "small function
doesnt work in IE", link below. Richard Cornford's answer is copied
below my signature, check for auto-wrapping (though I think Richard
was pretty thorough with manually wrapping it).
Except that Google Groups screwed your signature by removing the space
in it. Does Google Groups still blow it up if you double space it?
<dash><dash><space><spaceor does it just automatically remove any line
ending spaces?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 18 '07 #15
<sniiiipporinie>

None of these thoughtful examples worked, mainly because they use
setTimeout to achieve delay. Can some other weird out of box thinking
achieve reliable delay/then do ()function step?

Thank you a million ways.

May 18 '07 #16
re********@gmail.com wrote:
<sniiiipporinie>

None of these thoughtful examples worked, mainly because they use
setTimeout to achieve delay. Can some other weird out of box thinking
achieve reliable delay/then do ()function step?
What version of Internet Explorer are you using?

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 18 '07 #17
On May 17, 8:59 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
<sniiiipporinie>
None of these thoughtful examples worked, mainly because they use
setTimeout to achieve delay. Can some other weird out of box thinking
achieve reliable delay/then do ()function step?

What version of Internet Explorer are you using?

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Under fixed 6.0 basic js standards minimum thx!!

May 18 '07 #18
re********@gmail.com wrote:
On May 17, 8:59 pm, -Lost <maventheextrawo...@techie.comwrote:
>rebecca...@gmail.com wrote:
>><sniiiipporinie>
None of these thoughtful examples worked, mainly because they use
setTimeout to achieve delay. Can some other weird out of box thinking
achieve reliable delay/then do ()function step?
What version of Internet Explorer are you using?

Under fixed 6.0 basic js standards minimum thx!!
Um, my Internet Explorer 6 runs setTimeout() just fine.

Can you show us the page where this is failing?

Did you ever try Lee's example, just to see if a very simple call worked?

The more of an attempt you make, the better solution others can provide.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 18 '07 #19
On May 17, 10:04 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
On May 17, 8:59 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
<sniiiipporinie>
None of these thoughtful examples worked, mainly because they use
setTimeout to achieve delay. Can some other weird out of box thinking
achieve reliable delay/then do ()function step?
What version of Internet Explorer are you using?
Under fixed 6.0 basic js standards minimum thx!!

Um, my Internet Explorer 6 runs setTimeout() just fine.

Can you show us the page where this is failing?

Did you ever try Lee's example, just to see if a very simple call worked?

The more of an attempt you make, the better solution others can provide.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Lost, just seperating the theory from the request, can such
theoretical delay to execute functions, be created without expressly
using the command setTimeout()?

May 18 '07 #20
re********@gmail.com wrote:
On May 17, 10:04 pm, -Lost <maventheextrawo...@techie.comwrote:
>rebecca...@gmail.com wrote:
>>On May 17, 8:59 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
<sniiiipporinie>
None of these thoughtful examples worked, mainly because they use
setTimeout to achieve delay. Can some other weird out of box thinking
achieve reliable delay/then do ()function step?
What version of Internet Explorer are you using?
Under fixed 6.0 basic js standards minimum thx!!
Um, my Internet Explorer 6 runs setTimeout() just fine.

Can you show us the page where this is failing?

Did you ever try Lee's example, just to see if a very simple call worked?

The more of an attempt you make, the better solution others can provide.

Lost, just seperating the theory from the request, can such
theoretical delay to execute functions, be created without expressly
using the command setTimeout()?
Alright, separating both theory and logic:

1. Setup a never ending loop that checks if Date returns a value at or
beyond the length of your "delay."
2. Use setInterval once by immediately clearing it after a certain
amount of executions. 1, in this case.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 18 '07 #21
On May 17, 10:44 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
On May 17, 10:04 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
On May 17, 8:59 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
<sniiiipporinie>
None of these thoughtful examples worked, mainly because they use
setTimeout to achieve delay. Can some other weird out of box thinking
achieve reliable delay/then do ()function step?
What version of Internet Explorer are you using?
Under fixed 6.0 basic js standards minimum thx!!
Um, my Internet Explorer 6 runs setTimeout() just fine.
Can you show us the page where this is failing?
Did you ever try Lee's example, just to see if a very simple call worked?
The more of an attempt you make, the better solution others can provide.
Lost, just seperating the theory from the request, can such
theoretical delay to execute functions, be created without expressly
using the command setTimeout()?

Alright, separating both theory and logic:

1. Setup a never ending loop that checks if Date returns a value at or
beyond the length of your "delay."
2. Use setInterval once by immediately clearing it after a certain
amount of executions. 1, in this case.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
1. is better, as setInterval seems to not function too, so we are left
with comparing system dates.... can you super plz. show starting
example, that shall execute alert('green'); after declared input wait
of 5 seconds?

May 18 '07 #22
On May 18, 1:32 pm, rebecca...@gmail.com wrote:
On May 17, 10:04 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
On May 17, 8:59 pm, -Lost <maventheextrawo...@techie.comwrote:
>rebecca...@gmail.com wrote:
>>None of these thoughtful examples worked, mainly because they use
>>setTimeout to achieve delay. Can some other weird out of box thinking
>>achieve reliable delay/then do ()function step?
>What version of Internet Explorer are you using?
Under fixed 6.0 basic js standards minimum thx!!
Um, my Internet Explorer 6 runs setTimeout() just fine.
Can you show us the page where this is failing?
Did you ever try Lee's example, just to see if a very simple call worked?
The more of an attempt you make, the better solution others can provide.

Lost, just seperating the theory from the request, can such
theoretical delay to execute functions, be created without expressly
using the command setTimeout()?
Yes, using setInterval. Where setTimout runs once, setInterval runs
regularly at the interval you set. So you could put commands to be
run in a queue (say using an object to store them), then have
setInterval wake up at say 5 second intervals , execute whatever is in
the queue (or not if a particular item's time isn't up yet), then
remove executed functions from the queue.

This strategy is employed by those who wish to construct their own
system of calling multiple handlers for an event and don't trust
browsers to run them in the right sequence, or who want to
conditionally execute some handlers based on the outcome of other
handlers. Most javascript libraries include some kind of queue
management.

There is no other way to run a command at some specified time or
interval or to insert a pause/wait/sleep in a running function.
--
Rob

May 18 '07 #23
Lee
re********@gmail.com said:
>
On May 17, 10:44 pm, -Lost <maventheextrawo...@techie.comwrote:
>rebecca...@gmail.com wrote:
On May 17, 10:04 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
On May 17, 8:59 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
<sniiiipporinie>
None of these thoughtful examples worked, mainly because they use
setTimeout to achieve delay. Can some other weird out of box thinking
achieve reliable delay/then do ()function step?
What version of Internet Explorer are you using?
Under fixed 6.0 basic js standards minimum thx!!
Um, my Internet Explorer 6 runs setTimeout() just fine.
>Can you show us the page where this is failing?
>Did you ever try Lee's example, just to see if a very simple call worked?
>The more of an attempt you make, the better solution others can provide.
Lost, just seperating the theory from the request, can such
theoretical delay to execute functions, be created without expressly
using the command setTimeout()?

Alright, separating both theory and logic:

1. Setup a never ending loop that checks if Date returns a value at or
beyond the length of your "delay."
2. Use setInterval once by immediately clearing it after a certain
amount of executions. 1, in this case.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.

1. is better, as setInterval seems to not function too, so we are left
with comparing system dates.... can you super plz. show starting
example, that shall execute alert('green'); after declared input wait
of 5 seconds?
It would be irresponsible to show you how to code a loop that
consumes the entire CPU until you've at least shown that you've
been attempting to use the proper methods correctly.

If you can't figure out how to code a loop that compares the
time, I certainly don't believe you've been able to figure
out the correct way to use setTimeout() and/or setInterval().

Did you try running my example code?
--

May 18 '07 #24
On May 17, 11:58 pm, Lee <RE**************@cox.netwrote:
re********@gmail.com said:


On May 17, 10:44 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
On May 17, 10:04 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
On May 17, 8:59 pm, -Lost <maventheextrawo...@techie.comwrote:
rebecca...@gmail.com wrote:
<sniiiipporinie>
None of these thoughtful examples worked, mainly because they use
setTimeout to achieve delay. Can some other weird out of box thinking
achieve reliable delay/then do ()function step?
What version of Internet Explorer are you using?
Under fixed 6.0 basic js standards minimum thx!!
Um, my Internet Explorer 6 runs setTimeout() just fine.
Can you show us the page where this is failing?
Did you ever try Lee's example, just to see if a very simple call worked?
The more of an attempt you make, the better solution others can provide.
Lost, just seperating the theory from the request, can such
theoretical delay to execute functions, be created without expressly
using the command setTimeout()?
Alright, separating both theory and logic:
1. Setup a never ending loop that checks if Date returns a value at or
beyond the length of your "delay."
2. Use setInterval once by immediately clearing it after a certain
amount of executions. 1, in this case.
--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
1. is better, as setInterval seems to not function too, so we are left
with comparing system dates.... can you super plz. show starting
example, that shall execute alert('green'); after declared input wait
of 5 seconds?

It would be irresponsible to show you how to code a loop that
consumes the entire CPU until you've at least shown that you've
been attempting to use the proper methods correctly.

If you can't figure out how to code a loop that compares the
time, I certainly don't believe you've been able to figure
out the correct way to use setTimeout() and/or setInterval().

Did you try running my example code?

--
Sorry but to clarify, I cannot use setTimeout, not because of syntax
dysfunction or I am not a perfect novice at Javascript, it just is
what it is --- separating the politics from my request, it would be
great if someone could show me a example using whatever technique to
delay execution of functions I specify, such as delay 5 seconds then
execute green(); or alert('hey'); !:-) Hogging down the system or
causing the Alert box telling me the computer is tilting (consuming
the entire CPU) as you say, is not what I want.

May 18 '07 #25
Lee
re********@gmail.com said:
>Sorry but to clarify, I cannot use setTimeout, not because of syntax
dysfunction or I am not a perfect novice at Javascript, it just is
what it is
That's not good enough. If you want help, you have to cooperate.
Why can't you use setTimeout()?

If you don't want help, just continue to say that "it just is what it is".
--

May 18 '07 #26
In comp.lang.javascript message <11**********************@q23g2000hsg.go
oglegroups.com>, Thu, 17 May 2007 11:02:01, re********@gmail.com posted:
>hi can Variant archiving setTimout('.. capability be done without
using it? :-)
If your mother tongue is of non-obscure West European mainland origin,
please write in it. For any such language, there is almost certainly
someone here who can read it. You can add an 'English' translation to
confuse the monoglots.

--
(c) John Stockton, Surrey, UK. ??*@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
In MS OE, choose Tools, Options, Send; select Plain Text for News and E-mail.
Don't quote more than is needed, and respond after each quoted part.
May 18 '07 #27
In comp.lang.javascript message <11**********************@k79g2000hse.go
oglegroups.com>, Thu, 17 May 2007 20:53:54, re********@gmail.com posted:
>
1. is better, as setInterval seems to not function too, so we are left
with comparing system dates.... can you super plz. show starting
example, that shall execute alert('green'); after declared input wait
of 5 seconds?
Take a copy of my small Web page <URL:http://www.merlyn.demon.co.uk/js-
alarm.htm>, put it on your system, and see whether it works there.

There is one problem, apart from the obvious, likely to occur with a
loop-wait; it can be fixed with a unary +.

The FAQ, alas, lacks the word "unary", especially in 4.21.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
May 18 '07 #28
On May 18, 11:44 am, Lee <REM0VElbspamt...@cox.netwrote:
rebecca...@gmail.com said:
Sorry but to clarify, I cannot use setTimeout, not because of syntax
dysfunction or I am not a perfect novice at Javascript, it just is
what it is

That's not good enough. If you want help, you have to cooperate.
Why can't you use setTimeout()?

If you don't want help, just continue to say that "it just is what it is".

--
Unfortunately the parser interpreter in a ultra-secure class, though
maybe 1990s technologies, does not like execution of javascript.
maybe it was a legacy programmer who wrote it in the mainframe, but
without divulging further, anything too detailed classified i would
hope to find some hopefully innovative thinking solution to a timer,
but not using the obvious command Javascript intended for such
purpose :-)

May 19 '07 #29
VK
On May 19, 6:19 am, rebecca...@gmail.com wrote:
Unfortunately the parser interpreter in a ultra-secure class, though
maybe 1990s technologies, does not like execution of javascript.
If so then why are you worrying about any Javascript issues at all -
plus making others being worried about it? :-) Either Javascript is
allowed to be executed in the target UAs or not. In the first case use
Javascript language in the proper way as it was already shown in this
thread. In the second case look for another media for the task (C++,
Java etc.). As simple as that.

It is circa the same as with the memory management. Either you can
live with the automated garbage collection and then use Javascript or
Java; or the manual memory management is a must for you to sleep well:
then use C++. Always use the right tool for the job - and the right NG
to ask for help.
i would
hope to find some hopefully innovative thinking solution to a timer,
but not using the obvious command Javascript intended for such
purpose :-)
There is not such way, so see above. Javascript operates on IRQ basis
over setTimeout / clearTimeout commands. The only other alternative is
in "long loops", but they are not usable for several reasons:
1) they effectively hang up the system by taking ~100% of resources
2) any Javascript engine has pass control flow limit to prevent
endless loops - so instead of delays you'll often get system alert
with the proposal to break script execution on the page.

It is not a solution of your problem really. From the other side
saying that "the problem has no solutions with the given arguments" is
still a useful solution ;-) It means that you can stop wasting paper
for calculations and start trying with another set of arguments.

May 19 '07 #30
On May 19, 2:15 am, VK <sc**********@yahoo.comwrote:
On May 19, 6:19 am, rebecca...@gmail.com wrote:
Unfortunately the parser interpreter in a ultra-secure class, though
maybe 1990s technologies, does not like execution of javascript.

If so then why are you worrying about any Javascript issues at all -
plus making others being worried about it? :-) Either Javascript is
allowed to be executed in the target UAs or not. In the first case use
Javascript language in the proper way as it was already shown in this
thread. In the second case look for another media for the task (C++,
Java etc.). As simple as that.

It is circa the same as with the memory management. Either you can
live with the automated garbage collection and then use Javascript or
Java; or the manual memory management is a must for you to sleep well:
then use C++. Always use the right tool for the job - and the right NG
to ask for help.
i would
hope to find some hopefully innovative thinking solution to a timer,
but not using the obvious command Javascript intended for such
purpose :-)

There is not such way, so see above. Javascript operates on IRQ basis
over setTimeout / clearTimeout commands. The only other alternative is
in "long loops", but they are not usable for several reasons:
1) they effectively hang up the system by taking ~100% of resources
2) any Javascript engine has pass control flow limit to prevent
endless loops - so instead of delays you'll often get system alert
with the proposal to break script execution on the page.

It is not a solution of your problem really. From the other side
saying that "the problem has no solutions with the given arguments" is
still a useful solution ;-) It means that you can stop wasting paper
for calculations and start trying with another set of arguments.
Thank you, but rather than you continuing anymore deeply hypothetical
guesses at what I should do, solving my problem is welcomed at the top
of my good list............., I think Lost and others have the right
idea, but it would be great to this working demonstration. Thanks a
million! :-)

May 19 '07 #31
On May 19, 6:21 pm, rebecca...@gmail.com wrote:
On May 19, 2:15 am, VK <schools_r...@yahoo.comwrote:
On May 19, 6:19 am, rebecca...@gmail.com wrote:
Unfortunately the parser interpreter in a ultra-secure class, though
maybe 1990s technologies, does not like execution of javascript.
If so then why are you worrying about any Javascript issues at all -
plus making others being worried about it? :-) Either Javascript is
allowed to be executed in the target UAs or not. In the first case use
Javascript language in the proper way as it was already shown in this
thread. In the second case look for another media for the task (C++,
Java etc.). As simple as that.
It is circa the same as with the memory management. Either you can
live with the automated garbage collection and then use Javascript or
Java; or the manual memory management is a must for you to sleep well:
then use C++. Always use the right tool for the job - and the right NG
to ask for help.
i would
hope to find some hopefully innovative thinking solution to a timer,
but not using the obvious command Javascript intended for such
purpose :-)
There is not such way, so see above. Javascript operates on IRQ basis
over setTimeout / clearTimeout commands. The only other alternative is
in "long loops", but they are not usable for several reasons:
1) they effectively hang up the system by taking ~100% of resources
2) any Javascript engine has pass control flow limit to prevent
endless loops - so instead of delays you'll often get system alert
with the proposal to break script execution on the page.
It is not a solution of your problem really. From the other side
saying that "the problem has no solutions with the given arguments" is
still a useful solution ;-) It means that you can stop wasting paper
for calculations and start trying with another set of arguments.

Thank you, but rather than you continuing anymore deeply hypothetical
guesses at what I should do, solving my problem is welcomed at the top
of my good list............., I think Lost and others have the right
idea, but it would be great to this working demonstration. Thanks a
million! :-)
Wait a minute, are some of you saying, there is no functional way to
run timed events without using setTimeout or its companion, without
boss hogging the CPU? Can a throttle be devised? One big virtual
THANK YOU for someone who can devise this so I can change out the oil
on this rig. THANKS! **-**

May 20 '07 #32
Lee
re********@gmail.com said:
>
On May 19, 6:21 pm, rebecca...@gmail.com wrote:
>On May 19, 2:15 am, VK <schools_r...@yahoo.comwrote:
On May 19, 6:19 am, rebecca...@gmail.com wrote:
Unfortunately the parser interpreter in a ultra-secure class, though
maybe 1990s technologies, does not like execution of javascript.
If so then why are you worrying about any Javascript issues at all -
plus making others being worried about it? :-) Either Javascript is
allowed to be executed in the target UAs or not. In the first case use
Javascript language in the proper way as it was already shown in this
thread. In the second case look for another media for the task (C++,
Java etc.). As simple as that.
It is circa the same as with the memory management. Either you can
live with the automated garbage collection and then use Javascript or
Java; or the manual memory management is a must for you to sleep well:
then use C++. Always use the right tool for the job - and the right NG
to ask for help.
i would
hope to find some hopefully innovative thinking solution to a timer,
but not using the obvious command Javascript intended for such
purpose :-)
There is not such way, so see above. Javascript operates on IRQ basis
over setTimeout / clearTimeout commands. The only other alternative is
in "long loops", but they are not usable for several reasons:
1) they effectively hang up the system by taking ~100% of resources
2) any Javascript engine has pass control flow limit to prevent
endless loops - so instead of delays you'll often get system alert
with the proposal to break script execution on the page.
It is not a solution of your problem really. From the other side
saying that "the problem has no solutions with the given arguments" is
still a useful solution ;-) It means that you can stop wasting paper
for calculations and start trying with another set of arguments.

Thank you, but rather than you continuing anymore deeply hypothetical
guesses at what I should do, solving my problem is welcomed at the top
of my good list............., I think Lost and others have the right
idea, but it would be great to this working demonstration. Thanks a
million! :-)

Wait a minute, are some of you saying, there is no functional way to
run timed events without using setTimeout or its companion, without
boss hogging the CPU? Can a throttle be devised? One big virtual
THANK YOU for someone who can devise this so I can change out the oil
on this rig. THANKS! **-**
Web browsers are event driven. The way you get a delay in an event
driven system is to schedule a task to be executed after a specified
amount of time. That's what setTimeout and setInterval do. The only
alternative is to repetitively capture some other event and check each
time to see if the proper amount of time has elapsed. For example,
you might ask the user to click the mouse repeatedly until you tell
them to stop. Most other types of events are likely to interfere
with whatever real work you're waiting for.
--

May 20 '07 #33
VK
On May 20, 4:13 am, rebecca...@gmail.com wrote:
Wait a minute, are some of you saying, there is no functional way to
run timed events without using setTimeout or its companion
Bingo!
You know, sis, your previous reply made me almost sure that you are
just trolling for some unknown fun ("- It cannot be done this way
because of ... - OK, so how can it be done this way?" and so). Now I
see that you just did not bother to read my post to the end at the
first time.

Just to fix the progress :-)

It is not possible.
Ce n'est pas possible.
Es ist nicht möglich.
Ð*то невозможно.
glbPossibility === false
P.S. There is a subtle case with Javascript engine used as a stay-
alone environment, out of any host objects - like say with Mozilla's
Rhino or SpiderMonkey. In such case I can imagine a C++ or Java
program using thread management tools of these languages like sleep()
command to invoke Javascript functions in the specified period of
time. From the practical point of view it has zero importance, but out
of pure sport here is a possibility to avoid Javascript native timing
tools.

May 20 '07 #34
On May 20, 4:10 am, VK <schools_r...@yahoo.comwrote:
On May 20, 4:13 am, rebecca...@gmail.com wrote:
Wait a minute, are some of you saying, there is no functional way to
run timed events without using setTimeout or its companion

Bingo!
You know, sis, your previous reply made me almost sure that you are
just trolling for some unknown fun ("- It cannot be done this way
because of ... - OK, so how can it be done this way?" and so). Now I
see that you just did not bother to read my post to the end at the
first time.

Just to fix the progress :-)

It is not possible.
Ce n'est pas possible.
Es ist nicht möglich.
Ð*то невозможно.
glbPossibility === false

P.S. There is a subtle case with Javascript engine used as a stay-
alone environment, out of any host objects - like say with Mozilla's
Rhino or SpiderMonkey. In such case I can imagine a C++ or Java
program using thread management tools of these languages like sleep()
command to invoke Javascript functions in the specified period of
time. From the practical point of view it has zero importance, but out
of pure sport here is a possibility to avoid Javascript native timing
tools.
yes you are right there are known ways to do it expect for no ways

May 21 '07 #35
On May 20, 4:10 am, VK <schools_r...@yahoo.comwrote:
On May 20, 4:13 am, rebecca...@gmail.com wrote:
Wait a minute, are some of you saying, there is no functional way to
run timed events without using setTimeout or its companion

Bingo!
You know, sis, your previous reply made me almost sure that you are
just trolling for some unknown fun ("- It cannot be done this way
because of ... - OK, so how can it be done this way?" and so). Now I
see that you just did not bother to read my post to the end at the
first time.

Just to fix the progress :-)

It is not possible.
Ce n'est pas possible.
Es ist nicht möglich.
Ð*то невозможно.
glbPossibility === false

P.S. There is a subtle case with Javascript engine used as a stay-
alone environment, out of any host objects - like say with Mozilla's
Rhino or SpiderMonkey. In such case I can imagine a C++ or Java
program using thread management tools of these languages like sleep()
command to invoke Javascript functions in the specified period of
time. From the practical point of view it has zero importance, but out
of pure sport here is a possibility to avoid Javascript native timing
tools.
Your words are bravado and convincing sounding to you, but Considering
the other hypothetical responses I think it is possible to create a
setTimeout alternative using javascript to execute functions() with a
delay, *without* using setTimeout, and some hybrid. Maybe you have
not considered all the options, and attempted to do anything
scientific. You hypothetically suggest maybe it can be done in some
environent, but I would say that is hypothetical as your are. I think
you are more or less don't have a solid rational view, tested working
something -- anything. Set up to the plate and try helping, not
convincing yourself and others your h.
May 25 '07 #36

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

Similar topics

6
2529
by: Anders Both | last post by:
If you send data using TCP and Socket, can the client then be 100% sure that if it send´s data and no exception uccur, then the data will also arrived in a a correct way on the server. What if...
3
16835
by: Peter Johnsson | last post by:
How come the eventhandler for the timer's elapsed time event is called over and over again, even though the AutoReset property is set to false, if you assign a new value to the timer objects...
2
1705
by: Benjamin | last post by:
Hi, I am having a problem enabling a timer in my class. I have attached some sample pseudo code (see "Sample code illustrating issue") so you can see what I am talking about. Whats the issue?...
3
2180
by: Nathan Kovac | last post by:
I have a feeling I am missing something simple, but I just can't find it. Perhaps someone can give me a lead on where to look. I will describe the issue then post my code to the web service. My...
0
1052
by: Stanley Alex | last post by:
I need to syc data from a local database with an external database on another website once a day. I decided to try a timer contol and create an instance in my global.asax. I call the function below...
2
1244
by: Viet | last post by:
I have an architectural issue that I have been working on for quite awhile now and I would like another person's point of view. This issue involves the conversion of a VB6 app to VB.NET. In this...
1
2098
by: melanieab | last post by:
Hi, I'm have a datagrid, and I'm trying to have a tooltip pop up if a cell has been hovered on for 2 seconds. I was thinking of using DataGrid.Hover, but then decided to try this instead: ...
5
606
by: Tom | last post by:
Using multiple System.Timers.Timer objects in a Windows Service for performing multi-thread activities in a periodic fashion. Timers are AutoReset=false, to only have a single timer execution...
10
1922
by: Ryan | last post by:
Hello everyone, I have made a service that starts timers when it starts. I have another windows form application that stops and starts the service. Do I need to deal with any started timers when...
4
2830
by: Sayanan Sivaraman | last post by:
Hey all, So I've written a simple video player using directshow/COM in VC++, and I'm in the process of translating it to python. For example, when the avi starts playing, I have a call...
0
7223
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
7115
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
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7036
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...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.