473,395 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1732
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
6
by: Rob Heckart | last post by:
Hi, I'm using the Portal ASP.NET starter kit for a project. It uses one aspx page, DesktopDefault.aspx to render content by loading different user controls depending on what's clicked. One of my...
2
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
4
by: ATS16805 | last post by:
Hi. I wonder if it's possible to "force" a browser to "switch to SSR mode" for any given document. Specifically, I'm looking for a solution, not to a User Agent issue (i think), but a coding idea;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.