Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. ccacebido
    3. Posts
    C
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by ccacebido

    • RE: Calling web service(asmx) using Ajax call and return it in Json format

      Hello Admin @emccorson , upon checking the network when running the status and type they are both pending. I am only using a trial account for creating mobile application and hoping to work both android and IOS. Btw, thank you for the link I will make sure to read it, but still hoping you can guide me here because I really want to learn. Thank you so much. May I ask what to do next?

      posted in Developer Corner
      C
      ccacebido
    • Calling web service(asmx) using Ajax call and return it in Json format

      Hello, I am building an app using Monaca Cloud and I want to call my web service in http using ajax call but it did not work, anyone who can help me? I have no error upon checking my monaca debugger but data from the web service did not display. Here’s my ajax call

      const login = async () => {

      const data = { 
          user_id: $('#user_id').val(),
          password: $('#password').val() 
       };
       console.log(data);
      
      $.ajax({
          type: "GET",
          contentType: "application/json; charset=utf-8",
          url: 'http://localhost:16642/WebService.asmx/Users',
          data: JSON.stringify(data),
          // capital JSON is the proper way not Json
          crossDomain: true,
          dataType: "json",
          success:function(msg){
              ons.notification.alert(msg);
      
          }
      });
      

      }

      posted in Developer Corner
      C
      ccacebido