Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Could you please provide a basic form post example?
Copy link to clipboard
Copied
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); } } )