Skip to main content
April 17, 2013
Question

Mobile app with CF

  • April 17, 2013
  • 1 reply
  • 684 views

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.

This topic has been closed for replies.

1 reply

Participating Frequently
April 18, 2013

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.

April 19, 2013

Could you please provide a basic form post example?

Participating Frequently
April 19, 2013

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);
            }
      }
)