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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:53:27+00:00 2026-05-14T02:53:27+00:00

Working on a Wicket application that adds markup to the DOM after onLoad via

  • 0

Working on a Wicket application that adds markup to the DOM after onLoad via Wicket’s built-in AJAX for an auto-complete widget. We have an IE6 glitch that means I need to reposition the markup coming in, and I am trying to avoid tampering with the Wicket javascript… blah blah blah… here’s what I’m trying to do:

  1. New markup arrives in the DOM (I
    don’t have access to a callback)
  2. Somehow I know this, so I fire my
    code.

I tried this, hoping the new tags would trigger onLoad events:

 $("selectorForNewMarkup").live("onLoad", function(){ //using jQuery 1.4.1
    //my code
});

…but have become educated that onLoad only fires on the initial page load. Is there another event fired when elements are added to the DOM? Or another way to sense changes to the DOM?

Everything I’ve bumped into on similar issues with new markup additions, they have access to the callback function on .load() or similar, or they have a real javascript event to work with and live() works perfectly.

Is this a pipe dream?

  • 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-14T02:53:27+00:00Added an answer on May 14, 2026 at 2:53 am

    .live() doesn’t work like this, it’s a common misconception. .live() creates an event handler at the DOM root and waits for events to bubble up to it. If the selector matches the event target, .live() will fire the bound event.

    It doesn’t look for new objects and bind events to them in any way, rather it just listens for a bubble, and doesn’t care when that object was added to the DOM.

    You need to fire whatever code is needed to run manually when your load operation completes.

    What will this is the livequery plug-in, look specifically at the livequery( matchedFn ) call.

    You can do something like this:

    $('#myID').livequery(function() { $(this).offset()...stuff });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started working on an existing Wicket application that uses Hibernate. I
I'm working on a large Java application that uses Wicket 1.5 together with Hibernate
I'm working on a Wicket-based web application. In the application there are buttons that
I'm working on a web application with Wicket, Spring and Hibernate and I've come
I'm working on porting part of an existing Spring MVC application over to Wicket.
I am working on wicket. I used a checkbox for every row in a
I'm working on an Apache Wicket project in Eclipse with Maven2 -- my SCM
I am currently working on a web app using Wicket and started using jQuery
is there any working, supported and maintained scaffolding solution for Wicket 1.5? I know
Working on a bunch of forms at the moment and I'm finding that I

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.