65
rated 0 times
[
66]
[
1]
/ answers: 1 / hits: 28666
/ 13 Years ago, mon, january 9, 2012, 12:00:00
I have a JsFiddle here, and added Microsoft AJAX to be loaded through external JS/resource section. How can I tell whether or not my JS code is run after the AJAX file has finished loading?
Seems that the AJAX does not load either. :(
Here is the code in the JSFiddle:
Type.registerNamespace(Tutorial.Chapter1);
Tutorial.Chapter1.Person = function(firstName, lastName) {
this._firstName = firstName;
this._lastName = lastName;
};
Tutorial.Chapter1.Person.prototype = {
set_firstName: function(value) {
this._firstName = value;
},
get_firstName: function() {
return this._firstName;
},
set_lastName: function(value) {
this._lastName = value;
},
get_lastName: function() {
return this._lastName;
},
_firstName: ,
_lastName: ,
displayName: function() {
alert(Hi! + this._firstName + + this._lastName);
}
};
Tutorial.Chapter1.Person.registerClass(Tutorial.Chapter1.Person, null);
More From » asp.net-ajax