topical media & game development

talk show tell print

mobile-application-11-DerbyApp.iPhone-www-js-Odata.js / js



  function OData() {
      this.getData = function (requestString, successFunction) {
             x$().xhr(requestString, { callback: successFunction, headers: [{name:"Accept", value: "application/json"}], error: function(){alert('Error '); }}); 
          };
                  // 
                  //                if(doNotShowProgressBar == true){
                  // }
                  // else{
                  //                 //alert("starting odata");
                  //                 //navigator.notification.loadingStart();
                  //                 //alert("Before Navigator.Notification");
                  //                 //navigator.notification.activityStart();
                  // }
                  //         try {
                  //             window.setTimeout(function() {
                  //                 jQuery.ajax({
                  //                 url: 'f',
                  //                 timeout: 400,
                  //                 error: function(){
                  //                 try{
                  //                         alert('Getting Data');
                  //                         alert(successFunction);
                  //                         x$().xhr(requestString, { callback: successFunction, headers: [{name:"Accept", value: "application/json"}]}); 
                  //                 }
                  //                 catch(err)
                  //                 {
                  //                         alert(err);
                  //                         
                  //                 }
                  //                     alert("After RequestString");
                  //                         //navigator.notification.activityStop();
                  //                         if(doNotShowProgressBar == true){
                  //                         }
                  //                         else{
                  //                                 //alert("Done");
                  //                                 //navigator.notification.loadingStop();
                  //                                 //navigator.notification.activityStop();
                  //                         }
                  //                 }
                  //             });
                  //                 }, 0);
                  //         }
                  //         catch(err){
                  //             alert(err);
                  //         }
                  // alert('End of GetData');
                  //     };
  }
  
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.