Entries Tagged as “Adobe ColdFusion”
Adobe ColdFusion | ColdFusion | Mobile | Splendor
Yesterday I posted an example of how to take picture and upload it to CF server in a mobile app using CFMobile features. One of the APIs this example used was to upload file to CF server -
( , , , ,
onFileUpload is a success callback function and uploadError is an error callback function. To this Sean Corfield tweeted at me following question -
@ram_kulkarni surprised cfclient.file.upload needs callbacks - isn't the point of cfclient to avoid writing those?
I was going to reply to Sean directly but then thought that others might have the same question, so decided to answer it in this blog post.
So yes, one of the ways cfclient tries to simplify writing code for mobile applications is by providing synchronous function access to some of the asynchronous PhoneGap APIs. However it does not do so in two cases - 1. function call leaves device boundary 2. function requires event based processing.
File upload APIs falls in the first category - it makes call to a server and you certainly don't want the mobile application to get blocked till it gets response from the server.
Example of function in the second category is cfclient.geolocation.watchPosition, which i used in my post 'CFMobile Example – Using Geolocation APIs in ColdFusion Splendor'. This function takes action based on an event - when position changes, so it takes callback function as an argument.
But many APIs for Database, Contacts, File, Camera need not be asynchronous. If you develop standalone desktop applications, do you access database asynchronously ? I guess, most likely not.
Specifically regarding file upload function, we debated if we should include it in cfclient, because it is vary similar to the actual PhoneGap file upload function. And we decided to include it because - 1. for the sake of completeness and 2. you can get code assist for it in Thunder.
Thunder | Adobe ColdFusion | Adobe ColdFusion Builder | CFBuilder | ColdFusion | Mobile | Splendor
In this post I am going to show you how to create a mobile application using ColdFusion Splendor that can take a picture and upload the picture to CF server. This application uses Camera and File APIs.
The application is very simple - it has two buttons, one to take picture and the other one to set URL where pictures are to be uploaded. You can set URL of the server before taking a picture or after, just before it is to be uploaded. Once the URL is set, it is stored in the localStorage and will be remembered. There is a messages div where the application displays messages about different operations it is performing.
Thunder | Adobe ColdFusion | Adobe ColdFusion Builder | CFBuilder | ColdFusion | ColdFusion 11 | Mobile | Splendor
I was going to cover a use-case of taking picture in a mobile app and uploading it to ColdFusion Server in this post, but I found some issues in packaging an app that used Geolocation APIs when helping someone and thought that I would cover geolocation first.
This sample application is very simple - it gets your current location and displays a marker at that location on the Goole Map APIs. Here is how the application looks -
BTW, the screen shot is of this application running in iOS PhoneGap Shell application that I had talked about in Simplify Mobile Application Development Using ColdFusion. And it is not showing my location, but the default location that iOS Simulator returns in response to calling geolocation.getCurrentPosition function of PhoneGap.
However on an actual device it returns real location.
Thunder | Adobe ColdFusion | Adobe ColdFusion Builder | CFBuilder | ColdFusion 11 | Mobile | Splendor
This post is reproduced from my personal blog post at ramkulkarni.com.
In my post, Simplify Mobile Application Development Using ColdFusion, I posted a video that showed how easy it is to create mobile application with CFMobile features of ColdFusion Splendor (Server) and ColdFusion Thunder (IDE). In that video I created a simple app called 'Simple Expense Tracker'. But the code was not optimal, because the main purpose of the video was to show you features of CFMoible. I also mentioned that I will post a better example of the same app.
So In this post I will show you how to create a database application, where user interface code is separated from the data access code. I will also use JQuery for DOM access and Bootstrap for UI.
Performance | Thunder | Adobe ColdFusion | Mobile | productivity | Rapid Application Development | Splendor | web application development | web application security
In case you haven't already noticed,the public beta for the major version of ColdFusion codenamed Splendor and for the next major version of ColdFusion Builder Thunder is now available.
You can quickly go over what's new in ColdFusion Splendor here. There are also a couple of videos on the video tab that gives you a quick introduction to what's new in ColdFusion. The link for the documentation home page is at - https://wikidocs.adobe.com/wiki/display/coldfusionen/Home
There are lots of new features and enhancements in Splendor and in Thunder. We look forward to hearing your feedback during the public beta.