473,765 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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...associat ed, 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 1768
On Oct 16, 6:38*pm, VC <vcinqu...@gmai l.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...associat ed, that wasnt rendered yet. So we face the
'Object expected' error.

Rather than using (pseudocode?)
onclick="MyTask ()"
try
onclick="setTim eout(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.""""""""@ph ysics.org or (better) via Home Page at
Web: <URL:http://www.merlyn.demo n.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.javas cript:
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.javas cript:
>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.javas cript:
Evertjan. wrote:
>Dr J R Stockton wrote on 17 okt 2008 in comp.lang.javas cript:
>>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.or g/wiki/How_to_be_an_Al ien>
<http://www.amazon.co.u k/How-Be-Alien-Handbook-Beginners/dp/0140025146>
<http://www.penguinread ers.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.javas cript:
>Evertjan. wrote:
>>Dr J R Stockton wrote on 17 okt 2008 in comp.lang.javas cript:

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.or g/wiki/How_to_be_an_Al ien>
<http://www.amazon.co.u k/How-Be-Alien-Handbook-Beginners/dp/0140025146>
<http://www.penguinread ers.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...@p hysics.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.""""""""@ph ysics.org or (better) via Home Page at
*Web: *<URL:http://www.merlyn.demo n.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...@gmai l.comwrote:
On 17 out, 10:53, Dr J R Stockton <J.R.Stock...@p hysics.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.""""""""@ph ysics.org or (better) via Home Page at
*Web: *<URL:http://www.merlyn.demo n.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
6558
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 courses to pass the correct option value and then be displayed at the following URL: http://www.dslextreme.com/users/kevinlyons/selectResults.html I am passing countries, products, and courses. The first two display
6
1380
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 mandates is to have any hyperlink on the page that points to a URL outside of our site pull up an alert message. I have the javascript code, but what I want to know is, can I see the entire HTML for the page prior to it being sent to the browser?...
2
3059
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 what I'm hoping to achieve. I've never before had to use Javascript closures, but now I do, so I'm making an effort to understand them. I've been giving this essay a re-read: http://jibbering.com/faq/faq_notes/closures.html
4
3668
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; a programming "what if..?". i'm not concerned w/ manipulating a browser (i.e. prefs., settings this URL, always view SSR, save), but rather something i would code into the document which would request the browser to display in this mode (i.e....
0
9566
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9946
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8830
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7371
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5413
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3921
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 we have to send another system
2
3530
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2800
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.