IT IS SOLVED - WAITING TO MARK (stackoverflow delay)
There's no error in firebug. I've done this before I just can't figure out why it is not working. asyncFetchContent()
is fired from elsewhere. contentController
is created elsewhere.
function ContentController() {
}
ContentController.prototype.asyncFetchContent = function(){
$.getJSON( '/content/TestContent.json',
function(data){
contentController.displayContentCallback( data );
}
);
}
ContentController.prototype.displayContentCallback = function( javascriptObject ){
alert( "in callback");
$( "#testID" ).html( javascriptObject.title );
}
Firebug will accept a breakpoint at the definition of displayContentCallback()
and stop but then silently fails once you stepover. javascriptObject
is undefined
.
Thanks-in-advance,
Guido