Sunday, May 19, 2024
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

 Answers
30

Open Add Resources section and add the url of your external script...


[#88136] Sunday, January 8, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
masonm

Total Points: 167
Total Questions: 87
Total Answers: 103

Location: Rwanda
Member since Wed, Jun 8, 2022
2 Years ago
masonm questions
;