sam wrote:
But the goal really is to have $(document).ready() code to execute
only within a specific node.

Why? There is nothing particularly special about $(document).ready(). It's just a way that you can get code to run after the DOM is ready, but before all resources are available. It's very nice, but I wouldn't mess with the JQuery core to get what you're after.

If you want, simply write your all your code inside a function that accepts a context, e.g. {

    function myFunc(context) {
        $(".alerter", context).click( function(){
            alert('you clicked me.');
        });
        // whatever
    }

and then have a simple $(document).ready():

    $(document).ready() {
        myFunc(document);
    }

Would that cover your needs?

  -- Scott

Reply via email to