JQuery Ajax functions doesn't work...

View: New views
1 Messages — Rating Filter:   Alert me  

JQuery Ajax functions doesn't work...

by AnHeLLiDo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys.

I'm tryin tu import some html file using JQuery and it's impossible for me, also using the direct AJAX metod i can't do this.

Here is my code...

function GM_wait() {
        if(typeof unsafeWindow.jQuery == 'undefined'){
                window.setTimeout(GM_wait,100);
        }
    else {
                $ = unsafeWindow.jQuery; letsJQuery();
        }
}
GM_wait();


function letsJQuery() {
        $(document).ready(function(){
                alert("va"); //Works
                $.get(working_url_of_my_file, function(data){
                        $(".column:last").prepend(data);
                        alert("yendo"); //Doesn't work :(
                });
                alert("fue"); //Works
        });
}

Any idea??