469,326 Members | 1,219 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,326 developers. It's quick & easy.

Rendering HTML prior parsing Javascript

VC
Hi

I'm working on a web site with hard programming in Javascript. ?This
web based application is intended to be used by bank workers who types
very fast.

The problem is: sometimes they type so fast that when they hit the
ENTER key, the javascript related with this key is executed, but the
<input TEXT...associated, that wasnt rendered yet. So we face the
'Object expected' error.

I'd like to know if there's some way of giving priority to rendering
html before rendering or parsing something else.

I know that putting <script></scriptblocks in the end of <html></
htmlblock could help to minimize this, but the way that the web app
was built, sometimes is impossible, because it envolves include
statements, etc.

I hope I was clear. Excuse me my poor English, it's not my first
language.

Thanks in advance.
Oct 16 '08 #1
7 1599
On Oct 16, 6:38*pm, VC <vcinqu...@gmail.comwrote:
The problem is: sometimes they type so fast that when they hit the
ENTER key, the javascript related with this key is executed, but the
<input TEXT...associated, that wasnt rendered yet. So we face the
'Object expected' error.

Rather than using (pseudocode?)
onclick="MyTask()"
try
onclick="setTimeout(MyTask, 100)"

I hope I was clear. Excuse me my poor English, it's not my first
language.
Most major Western European languages, if written simply, are
understood here. If foreigners persist in using English, how shall
others ever learn to read foreign?

--
(c) John Stockton, near London, UK. Posting with Google.
Mail: J.R.""""""""@physics.org or (better) via Home Page at
Web: <URL:http://www.merlyn.demon.co.uk/>
FAQish topics, acronyms, links, etc.; Date, Delphi, JavaScript, ....|
Oct 17 '08 #2
Dr J R Stockton wrote on 17 okt 2008 in comp.lang.javascript:
Most major Western European languages, if written simply, are
understood here. If foreigners persist in using English, how shall
others ever learn to read foreign?
Given your misconception that non-English are the foreigners,
you are right.

Zo is het maar net.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 17 '08 #3
Evertjan. wrote:
Dr J R Stockton wrote on 17 okt 2008 in comp.lang.javascript:
>Most major Western European languages, if written simply, are
understood here. If foreigners persist in using English, how shall
others ever learn to read foreign?

Given your misconception that non-English are the foreigners,
you are right.

Zo is het maar net.
Technically he's correct though. Foreigner is an English word, and
therefore must apply only to non-English people ;-)
Oct 17 '08 #4
Stevo wrote on 17 okt 2008 in comp.lang.javascript:
Evertjan. wrote:
>Dr J R Stockton wrote on 17 okt 2008 in comp.lang.javascript:
>>Most major Western European languages, if written simply, are
understood here. If foreigners persist in using English, how shall
others ever learn to read foreign?

Given your misconception that non-English are the foreigners,
you are right.

Zo is het maar net.

Technically he's correct though. Foreigner is an English word, and
therefore must apply only to non-English people ;-)
Technically you are not, as the language spoken or written does not
identify the writer.

And even then, would you say Americans an Britons completely share the same
foreigners?

Please read "How to be an alien", 1946 by George Mikes

<http://en.wikipedia.org/wiki/How_to_be_an_Alien>
<http://www.amazon.co.uk/How-Be-Alien-Handbook-Beginners/dp/0140025146>
<http://www.penguinreaders.com/downloads/0582416868.pdf>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 17 '08 #5
Evertjan. wrote:
Stevo wrote on 17 okt 2008 in comp.lang.javascript:
>Evertjan. wrote:
>>Dr J R Stockton wrote on 17 okt 2008 in comp.lang.javascript:

Most major Western European languages, if written simply, are
understood here. If foreigners persist in using English, how shall
others ever learn to read foreign?
Given your misconception that non-English are the foreigners,
you are right.

Zo is het maar net.
Technically he's correct though. Foreigner is an English word, and
therefore must apply only to non-English people ;-)

Technically you are not, as the language spoken or written does not
identify the writer.
Technically, just having a bit of fun.
And even then, would you say Americans an Britons completely share the same
foreigners?
Americans are a special case. When they say foreigners they mean
themselves. Ignore me, it's Friday, I'm talking nonsense and dreaming of
the weekend :)
Please read "How to be an alien", 1946 by George Mikes

<http://en.wikipedia.org/wiki/How_to_be_an_Alien>
<http://www.amazon.co.uk/How-Be-Alien-Handbook-Beginners/dp/0140025146>
<http://www.penguinreaders.com/downloads/0582416868.pdf>
Oh I wouldn't go as far as reading anything. There are limits :)
Oct 17 '08 #6
VC
On 17 out, 10:53, Dr J R Stockton <J.R.Stock...@physics.orgwrote:
>
I hope I was clear. Excuse me my poor English, it's not my first
language.

Most major Western European languages, if written simply, are
understood here. *If foreigners persist in using English, how shall
others ever learn to read foreign?

--
* (c) John Stockton, near London, UK. *Posting with Google.
*Mail: J.R.""""""""@physics.org or (better) via Home Page at
*Web: *<URL:http://www.merlyn.demon.co.uk/>
*FAQish topics, acronyms, links, etc.; Date, Delphi, JavaScript, ....|
Hi John, Would you understand Portugese?
Oct 20 '08 #7
VC

Thanks everyone. Very good discussion about rendering HTML before
Javascript.
On 20 out, 10:32, VC <vcinqu...@gmail.comwrote:
On 17 out, 10:53, Dr J R Stockton <J.R.Stock...@physics.orgwrote:
I hope I was clear. Excuse me my poor English, it's not my first
language.
Most major Western European languages, if written simply, are
understood here. *If foreigners persist in using English, how shall
others ever learn to read foreign?
--
* (c) John Stockton, near London, UK. *Posting with Google.
*Mail: J.R.""""""""@physics.org or (better) via Home Page at
*Web: *<URL:http://www.merlyn.demon.co.uk/>
*FAQish topics, acronyms, links, etc.; Date, Delphi, JavaScript, ....|

Hi John, Would you understand Portugese?
Oct 20 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.