Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8899783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:56:29+00:00 2026-06-15T00:56:29+00:00

I have a browser based chat application where individual div’s are created for each

  • 0

I have a browser based chat application where individual div’s are created for each chat.
The whole chat is managed by an external module and I don’t have access to their code.

Note that there are no ids anywhere, only css class names for the divs created dynamically for chat windows.

Whenever a new chat conversation starts, a new div for that chat (with css class:chat_incoming) is created under the parent div (with css class:’tabcontent’).

Using jQuery, how do I monitor the parent (with css class:tabcontent) div for any changes like new child addition (with css class:chat_incoming) ??

I don’t have a click event here that I can use to monitor the div and neither do I have the div loaded up right after the chat messenger window loads up. The chat initiation may happen anytime after the user logs in and until then the parent div would not have a child div created for chat.

I did some homework myself that went no where.

With jQuery, I kind of understood that I may have to use ‘.on’ to be able to monitor events for divs already available / created dynamically, but I dont have a click event here to use with the JQuery .on().

My next guess was to use

$('tabcontent').bind('DOMNodeInserted DOMNodeRemoved', function(event) {alert('hi')});

but for some reason this doesn’t seem to work either? (see fiddle here)

Any guidance appreciated.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:56:31+00:00Added an answer on June 15, 2026 at 12:56 am

    Your jQuery is looking for tabcontent, not .tabcontent. As in a tag called tabcontent, not a class called tabcontent

    Change that and it should start working (hopefully, if everything else is fine in the script)

    $('.tabcontent').bind('DOMNodeInserted DOMNodeRemoved', function(event) {alert('hi')});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a Web application (HTML5/browser based) for a client which requires fairly
We have one browser-based application where we want to make the user reauthenticate when
I have a strictly browser based JavaScript and xlst application. It's normally used on
I'm developing a js application on a CE-HTML browser based television. So I have
In my browser based application,we have to encrypte the image in the server side,and
I have a php browser based application that is for a hospital management system.
I have developed a normal browser-based Rails game application. I'm now adding CloudMailin to
I have a GWT application where users keep the browser based side of the
I have been writing a browser based application (or rather, rapid prototyping an application)
Background I have an existing extension designed to accompany a browser-based game (The extension

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.