004 // OBJECT - PROTOTYPE CLASS - defining a new class called Pet
var app = function(name, qryL1, L1name, ... ){
this.name = name;
this.qryL1 = qryL1;
this.L1name;
};
005 // OBJECT
function app(name, qryL1, L1name, ... ) {
this.name = name;
this.qryL1 = function(line) {
print("The ", this.name, " app says '", line, "'");
};
}
var killerApp = new App("subjects", ..);
//- dont have to use the NEW keyword to instantiate instance of object, if you do, the ".this" operator will point to the 'your object' prototype and not the js object prototype
// PROPERTIES of app
dlgSelect3.qryL1 = "../qry/Select-Libraries-a.cshtml/";
dlgSelect3.L1 = "Library";
dlgSelect3.id= $("#id_article").text();
dlgSelect3.qryMove="../qry/updateArticle/";
dlgSelect3.Destination = "-";
dlgSelect3.qryCopy ="../qry/copy_records/";
dlgSelect3.To = $("#parent_id2").val();
// app is set by srv, ex current_app = subjects, SAVE in hidden input
// dlgSelect3 script has dlgSelect3 object, properties of are ..., initially set in switch block
// could define in global ] app prototype/class,
- create new instance of app
ID: 7450
NAME: UPDATE-article-object-constructor-function
DESCRIPTION: []
START DATE TIME: 2019-12-07 18:34:21
EST DURATION: 01:00:00
END DATE TIME: 2019-12-07 19:34:21
STATUS: To-Do
PRIORITY: -5
OWNER ID: 1