1 Reply Latest reply on May 1, 2012 8:34 AM by Yuriy Volyanskyy

    ES400 RhoElements $.ajax call

    Yuriy Volyanskyy

      Hi, we are trying to make a call to our authentication API and we a getting "No Transport" error.

      Here's the sample of the code:

       

      function authenticate(loginViewModel, sessionInfoViewModel) {

          var autSrvUrl = "https://<Domain URL>/Authentication/Authentication.svc/authenticate/resource";

          autSrvUrl += "?clientid=" + loginViewModel.ClientID() + "&pin=" + loginViewModel.PIN();

          $.ajax({

              url: autSrvUrl,

              dataType: 'json',

              data: "{ key: value }",

              success: function (data) {

                      loginViewModel.IsLoggedIn(true);

                      sessionInfoViewModel.Init(data);

                      writeLog(sessionInfoViewModel.Name() + " logged in");

              },

              error: function (xhr, ajaxOptions, thrownError) {

                      writeLog("Error " + xhr.status + ", " + thrownError + " ");

              }

       

          });

       

      loginViewModel and sessionInfoViewModel are our internal objects, writeLog writes to a console. Thus, when running the code, we get "Error 0, No Transport" written to the console.

       

      There are some messages in the log that might be relevant:

       

      INFO: Core CMeta::GetModule Plug-in: applecannot be found in Plugin.xml 212 2012-04-30 11:09:17

      WARNING: Core CMeta::SetPlugProperty Module apple not found. 61 2012-04-30 11:09:17

      INFO: Core CMeta::GetModule Plug-in: applecannot be found in Plugin.xml 212 2012-04-30 11:09:17

      WARNING: Core CMeta::SetPlugProperty Module apple not found. 61 2012-04-30 11:09:17

      INFO: Core CMeta::GetModule Plug-in: viewportcannot be found in Plugin.xml 212 2012-04-30 11:09:17

      WARNING: Core CMeta::SetPlugProperty Module viewport not found. 61 2012-04-30 11:09:17

       

      I'm attaching the full log file.

      Our code works well in browsers.

      Could you, please, advise what to change in order to make the code work on ES400?

      Thanks!