[jQuery] reference to undefined property opt.queue

[jQuery] reference to undefined property opt.queue


I'm writing a script to deal with problems that occur when another
site which mine gets data off is down. With just php -
get_file_contents('http://other.site') - the page ends in an error
message if the site is down. I'm using jQuery to remedy this, by
having a placeholder on the site, and getting the data with
jQuery.get('http://other.site',function(data)) and inserting the data
where it's needed into the DOM. However nothing is working (I've
peppered my script with alerts to try and see whats going on but still
nothing). I get the following error:
Warning: reference to undefined property opt.queue
Source File: http://code.jquery.com/jquery-latest.js
Line: 3156
...which seems odd.
My code:
$(document).ready(function(){
    alert("starting");
    $.get("flag.php",function(flag));
    alert(flag.substring(0,1));
    if(flag.substring(0,1) != "<b")
        {
        alert("Should load flag status now");
        $("#noflag").hide();
        $("#flag").append(flag);
        }
    });
located at http://www.ssbc.org.uk/gallery.php (the gallery page has a
seperate <head> generator function so I'm experimenting on that page).