3 Replies Latest reply on Apr 19, 2013 8:04 AM by Cole

    Mobile app with CF

    idesdema Level 1

      I am trying to figure out how to build a mobile app using Jquery Mobile on the client side and Coldfusion and MySQL on the server side.  It seems very difficult to find a basic example.  Can someone please show me a tutorial that shows how to insert data and then read the data and display it?  All on a mobile phone?  I know this has to be possible but I can't find any documentation.

        • 1. Re: Mobile app with CF
          Cole Level 1

          this is a very broad question becuase there are a bazillion ways to make a mobile app w/ CF and MySQL.  Basically,  you will make ajax request from teh client to a remote coldfusion service, usually a CFC that returns json.

          • 2. Re: Mobile app with CF
            idesdema Level 1

            Could you please provide a basic form post example?

            • 3. Re: Mobile app with CF
              Cole Level 1

              suppose you had the following form:

                             

              you could post it to a remote server by adding a click handler to the button that calls:

              $.ajax
              (
                    {
                          url: "http://www.domain.com/api/remote.cfc",
                          type: "POST",
                          data: "method=yourMethod&" + $("#mainForm").serialize(),
                          success: function(data)
                          {
                                console.log(data);
                          }
                    }
              )