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

Thread: Custom events!!! need help

  1. #1
    Join Date
    Sep 2009
    Posts
    2

    Custom events!!! need help

    Hi:

    I was wondering if is there any way to create a custom event in javascript. I would want to know when the content of a div has changed and then fire a function.

    Any thoughts?

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    But that "content of a div" is not to be changed unless a function, which uses some methods, is fired itself by a certain event, following a certain action. Now simply fire the other function at the end of the first function's code lines.

    Anyway, your request is too vague. Can you detail a little bit your aim? Maybe an example

  3. #3
    Join Date
    Nov 2002
    Location
    England
    Posts
    693
    You could do it but it would involve setting a timeout and checking it every x milliseconds.

  4. #4
    Join Date
    Sep 2009
    Posts
    2
    I acctually want to avoid adding the last line of code in every function that changes the div. But maybe is the easiest way, thanks

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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