Rendering HTML prior parsing Javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • VC

    Rendering HTML prior parsing Javascript

    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.
  • Dr J R Stockton

    #2
    Re: Rendering HTML prior parsing Javascript

    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, ....|

    Comment

    • Evertjan.

      #3
      Re: Rendering HTML prior parsing Javascript

      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)

      Comment

      • Stevo

        #4
        Re: Rendering HTML prior parsing Javascript

        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 ;-)

        Comment

        • Evertjan.

          #5
          Re: Rendering HTML prior parsing Javascript

          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)

          Comment

          • Stevo

            #6
            Re: Rendering HTML prior parsing Javascript

            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 :)

            Comment

            • VC

              #7
              Re: Rendering HTML prior parsing Javascript

              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?

              Comment

              • VC

                #8
                Re: Rendering HTML prior parsing Javascript


                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?

                Comment

                Working...