Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Timeouts and Thread(?) Interruption/Execution

Reply
Thread Tools

Timeouts and Thread(?) Interruption/Execution

 
 
Gene Wirchenko
Guest
Posts: n/a
 
      11-24-2011
Dear JavaScripters:

Something else that the texts do not seem to cover:

Suppose that I have a form and a timeout. The form has
validation on the fields. If a timeout occurs during the execution of
validation code, what happens?

Is the validation code terminated? Interrupted then resumed
somehow? Executed in parallel with the timeout code?

Or is this undefined?

Sincerely,

Gene Wirchenko
 
Reply With Quote
 
 
 
 
Dr J R Stockton
Guest
Posts: n/a
 
      11-25-2011
In comp.lang.javascript message <n4htc7pvev38hjrea5vhvi9dj4r4u062ff@4ax.
com>, Thu, 24 Nov 2011 14:29:49, Gene Wirchenko <> posted:

> Suppose that I have a form and a timeout. The form has
>validation on the fields. If a timeout occurs during the execution of
>validation code, what happens?


You need to realise that those who initially wrote JavaScript were in a
country that never developed a language of its own, and is where people
often use words with a flagrant disregard for their proper meaning.
Especially in regard to date/time.

"getTimezoneOffset", in JavaScript, means "getTimeOffset".

"timeout" really means "delayed function call".

There is no provision for, in the general sense, interrupting running
script (the script can pause and restart, then looking for new
information (such as STOP!)).

The consequences of the impossible are undefined.

My "validation" page includes a parameter-driven routine for doing most
or all of the validation of a many-field form with a minimum (roughly)
of new code.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PIX 501 and port forwarding problems and timeouts Graeme Geldenhuys Cisco 2 04-14-2005 10:30 AM
WebForms and timeouts / loss of session data Billy Horne ASP .Net 3 07-16-2004 01:47 PM
Cookies, sessions and timeouts Thomas Scheiderich ASP .Net 1 06-24-2004 10:27 PM
forms authentication timeouts and session timeouts =?Utf-8?B?SmFzb24=?= ASP .Net 0 06-22-2004 09:24 AM
Session-Timeouts and Idle-Timeouts on AS5300 and AS5800 Matt Cisco 1 02-17-2004 06:59 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57