473,554 Members | 3,443 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 1752
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
6519
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 ...
6
1362
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...
2
3044
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...
4
3650
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...
0
7506
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8018
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7541
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...
0
6123
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...
1
5423
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...
0
5142
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3545
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2006
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
0
823
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...

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.