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 7612631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:57:45+00:00 2026-05-31T01:57:45+00:00

Searching hasn’t revealed a solution to my question so asking here. I’ve been using

  • 0

Searching hasn’t revealed a solution to my question so asking here. I’ve been using livequery() for a while now in combination with live(). Generally, I use live() for known events like click but using livequery for triggering on a specific selector and applying a plugin. For example…

$('#childDomains').livequery(function() {
  var element = $(this);
  element.jqGrid({
    // plugin initialization here
  });
});

I’m wondering if there is a way to do the same thing using live() / delegate() or some other cool jQuery feature I don’t know about. I’m attempting to lighten my dependency load and I noticed that livequery hasn’t been updated since 02-2010.

UPDATE: I guess I’m not being clear enough. I have a page that uses jqGrid and turns a TABLE element into a jqGrid Ajax data grid. There is no real click event for this to occur. The page that this table is on is loaded via ajax and anytime the DOM sees $(“#childDomains”) it should apply the jqGrid plugin to that element. Just like my livequery example is doing.

From my understanding thus far, I don’t believe this is possible without livequery, but I wanted to ask to make sure.

  • 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-05-31T01:57:47+00:00Added an answer on May 31, 2026 at 1:57 am

    No, there are no clearly better ways to do that using jQuery; I would say livequery is the best method at the moment.

    That said are other possible ways to do it. Here someone has rolled their own polling code to detect when an element is inserted into the DOM. You could adapt this, but as far as I can see livequery is already doing this for you.

    Another way is to listen for DOMNodeInserted events as outlined here but this is deprecated in the W3C Level 3 Events Specification, due to poor performance. It is also not IE compatible.

    This question has some good discussion on monitoring DOMNodeInserted events and an alternative of hooking into any methods that can change the DOM. (It is a little old, but from my research nothing has changed yet).

    In conclusion, keep using livequery.

    Also note that from jQuery 1.7 .live() (deprecated), and .delegate() (superseded) should be replaced with .on() (and .die() with .off()). The new methods do not introduce anything that can resolve your livequery dependency though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Searching here I found that this question was already asked , but I think
While searching the interweb for a solution for my VB.net problems I often find
I tried writing query using exists , but no success so far. Searching hasn't
I have been having a problem that has troubled me for a while. Searching
Searching with '[Delphi] source control' didn't return much, so here goes: For those of
Not sure if this is asked, but searching hasn't quite yielded what I'm looking
I have what seems like a simple problem, but searching the net hasn't yielded
I've been searching on this but can't seem to find an exact answer (most
hoping this hasn't been asked before, but I have the following XML: <Company id=1000
I have been searching in a lot of topics but I haven't found anything

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.