Object scoping issue

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

    Object scoping issue

    I have a script that I found online to do dynamic checking of passwords (for
    verifying that the re-typed password matches the original). This code works
    great in a basic HTML document, but when I try to incorporate the script
    into a more complex document that uses lots of nested tables, I get scoping
    errors (presumably) when I type in my input field.

    Rather than post huge amounts of HTML here, I've linked 2 documents. The
    first behaves correctly, the second pops an alert when the function is
    entered, and this only happens when the page is first loaded. Can anyone
    help show how I should reference the functions to scope them correctly?

    First document : http://www.norz.net/example.html
    Second, error-prone document : http://www.norz.net/example2.html

    Thanks!




    ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
  • Alexander Ignatyev

    #2
    Re: Object scoping issue


    "macrom75" <macrom75@hotma il.com> wrote :[color=blue]
    > I have a script that I found online to do dynamic checking of passwords[/color]
    (for[color=blue]
    > verifying that the re-typed password matches the original). This code[/color]
    works[color=blue]
    > great in a basic HTML document, but when I try to incorporate the script
    > into a more complex document that uses lots of nested tables, I get[/color]
    scoping[color=blue]
    > errors (presumably) when I type in my input field.
    >
    > Rather than post huge amounts of HTML here, I've linked 2 documents. The
    > first behaves correctly, the second pops an alert when the function is
    > entered, and this only happens when the page is first loaded. Can anyone
    > help show how I should reference the functions to scope them correctly?
    >
    > First document : http://www.norz.net/example.html
    > Second, error-prone document : http://www.norz.net/example2.html
    >[/color]

    Hello !

    In second document the same name "verify" used for object and input.
    That's the only problem.

    HTH.




    Comment

    • Greg Norz

      #3
      Re: Object scoping issue

      > Hello ![color=blue]
      >
      > In second document the same name "verify" used for object and input.
      > That's the only problem.
      >
      > HTH.[/color]

      Thank you, Alexander. I can't believe I didn't see that myself!



      ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
      http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
      ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---

      Comment

      Working...