JavaScript Page /Scripts/QuiznetOnline.js (VB.NET)
1: Type.registerNamespace('QuiznetOnline.Web.UI.WebServices');
2: QuiznetOnline.Web.UI.WebServices.QuiznetOnline=function() {
3: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.initializeBase(this);
4: this._timeout = 0;
5: this._userContext = null;
6: this._succeeded = null;
7: this._failed = null;
8: }
9: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.prototype={
10: _get_path:function() {
11: var p = this.get_path();
12: if (p) return p;
13: else return QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.get_path();},
14: GetQuestions:function(group,succeededCallback, failedCallback, userContext) {
15: return this._invoke(this._get_path(), 'GetQuestions',false,{group:group},succeededCallback,failedCallback,userContext); },
16: HelloWorld:function(succeededCallback, failedCallback, userContext) {
17: return this._invoke(this._get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); }}
18: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.registerClass('QuiznetOnline.Web.UI.WebServices.QuiznetOnline',Sys.Net.WebServiceProxy);
19: QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance = new QuiznetOnline.Web.UI.WebServices.QuiznetOnline();
20: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.set_path = function(value) { QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.set_path(value); }
21: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.get_path = function() { return QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.get_path(); }
22: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.set_timeout = function(value) { QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.set_timeout(value); }
23: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.get_timeout = function() { return QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.get_timeout(); }
24: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.set_defaultUserContext = function(value) { QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.set_defaultUserContext(value); }
25: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.get_defaultUserContext = function() { return QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.get_defaultUserContext(); }
26: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.set_defaultSucceededCallback = function(value) { QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.set_defaultSucceededCallback(value); }
27: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.get_defaultSucceededCallback = function() { return QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.get_defaultSucceededCallback(); }
28: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.set_defaultFailedCallback = function(value) { QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.set_defaultFailedCallback(value); }
29: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.get_defaultFailedCallback = function() { return QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.get_defaultFailedCallback(); }
30: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.set_path("/WebServices/QuiznetOnline.asmx");
31: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.GetQuestions= function(group,onSuccess,onFailed,userContext) {QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.GetQuestions(group,onSuccess,onFailed,userContext); }
32: QuiznetOnline.Web.UI.WebServices.QuiznetOnline.HelloWorld= function(onSuccess,onFailed,userContext) {QuiznetOnline.Web.UI.WebServices.QuiznetOnline._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
33: var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
34: Type.registerNamespace('QuizNetOnline.Logic');
35: if (typeof(QuizNetOnline.Logic.Question) === 'undefined') {
36: QuizNetOnline.Logic.Question=gtc("QuizNetOnline.Logic.Question");
37: QuizNetOnline.Logic.Question.registerClass('QuizNetOnline.Logic.Question');
38: }

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.