dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: event handler not getting called

  1. #1
    Join Date
    Dec 2010
    Posts
    40

    event handler not getting called

    hi,
    i m having trouble with hooking an event handler to a dom element's availability. sorry, seems pretty silly, but let me try to explain whats going on. inside javascript code, i wait for this particular html elemtn to be available in dom, once available, i want to set focus on it. the problem is focus never gets set. i am stepping through code, I see that event handler got registered but the line of code that sets focus never gets called.

    i have checked the element id, there is no mistake. cant get this straight. any ideas on how to debug this...

    thnx in advnce

  2. #2
    Join Date
    Mar 2007
    Location
    U.K.
    Posts
    1,127
    Quote Originally Posted by kaanta View Post
    any ideas on how to debug this.
    You haven't shown enough code for anyone to analyse the problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles