473,698 Members | 1,884 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 1761
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
6547
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
1377
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
3051
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
3664
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
9148
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9012
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8884
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
8855
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
7708
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...
0
5857
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4611
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3034
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
3
1992
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.