![]() ![]() This application does not really use any device specific API, so you can run this application in any WebKit-based browser (Chrome or Safari). Most of the code in the cfclient block should look familiar to you, because it is very similar to the code you would have written on the server side for accessing database. Then it calls the addExpenseRow function to append the newly added expense item to the HTML table. The application uses cfquery to execute insert statement with values passed to the function. The addExpense method is called in response to the click on the Add button (called from JavaScript event handler in the script block). The addExpenseRow function uses the cfsavecontent tag to build HTML text for adding row to the HTML table and finally uses the document.getElementById function and innerHTML property to append row to the table. It loops over the result and displays the records in an HTML table by calling the addExpenseRow function. The application queries the expense table and gets all the records using the client side cfquery tag. You shoud see ‘Project Information’ page of the wizard. Make sure that the BLANK template is selected and click Next. You should see mobile template page of the new mobile project wizard. In ColdFusion Builder 3, select menu File->New->ColdFusion Mobile Project. You can access these options from pop-up menu too, after right clicking in the view. You can either use ‘Import Local Server’ option (first button in the view-toolbar from left) or ‘Add Server’ option (second button in the view-toolbar). If you have not installed the buit-in server of ColdFusion Builder 3, then you will need to configure the server in ‘CF Servers’ view. It is important that the server status should be ‘Running’ for creating this mobile application. After the server is started successfully, you should see status of the server changed to ‘Running’. Or you can right click the server and select ‘Start Server’ option from the pop-up menu. Select the server and click ‘Start Server’ (play) button in the toolbar. So we have made the Xcode project avilable for the iOS version of this application. We cannot distribute this application for iOS (IPA file) because of licensing restrictions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |