jobo: JSON Javascript Scopes

Beitrag lesen

Hallo,

Cool danke für die Antwort. Das war der Fehler.
Jetzt habe ich ein anderes Problem:

$(document).ready(function(){

new Start();
});

var Start = function(){
var that = this;
var text ="test";

jQuery.getJSON("json/objects.json", function(data){
that.draw(text, data);
});
};

Start.prototype.draw = function(text, data){

alert(text);
};

  
was genau willst du denn machen?  
  
Gruß  
  
jobo