Sorry but if there is no jQuery how can you add these callbacks to the
jQuery internal list?

the classic function is:



onload = function(){

    // call external file
    load("jquery-1.3.2.js").And(function(){
        // do stuff
        alert(jQuery);
    });
};



function load(src){
    function onload(){
        script.onload = script.onreadystatechange = function(){};
        script.parentNode.removeChild(script);
        script = null;
        if(callback)
            callback();
    };
    var script  = document.createElement("script"),
        callback
    ;
    script.type="text/javascript";
    script.src=src;
    script.onload = onload;
    script.onreadystatechange = function(){
        if(/complete/i.test(script.readyState))
            onload();
    };

(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(script);
    return {And:function($callback){
        callback = $callback;
    }};
};


Regards

On Thu, Jul 2, 2009 at 11:30 AM, Ricardo <ricardob...@gmail.com> wrote:

>
> You can call jQuery.ready() to fire all the queued functions.
>
> On Jun 30, 9:49 pm, Steven Parkes <smpar...@smparkes.net> wrote:
> > I dynamically load jquery into my page and the change that happened at/
> > round Ticket 2614 (http://dev.jquery.com/ticket/2614) / rev 5970 (or,
> > in other words, between 1.2.6 and 1.3.2) had, at least for me, a
> > pretty adverse effect.
> >
> > Looks like now if jquery is ever loaded after the doc readystate is
> > loaded/complete, jquery is never going to be ready. Looks like ticket
> > was to clean up the CSS stuff, but was this other behavior change
> > intentional? I'd really like to be able to load jquery dynamically and
> > that seems impossible for me at the moment on Safari.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to