quickconnect

 

FrontPage

Page history last edited by Lee Barney 3 mos ago

 

Welcome to the QuickConnectFamily wiki.  It will cover the use and development of QuickConnectiPhone as well as QuickConnectAndroid/Nokia/Linux/Windows.  There is also a twitter and google group available for communication and discussion.

 

I hope this helps you with your creation of your iPhone and other applications.

 

The QuickConnect JavaScript API is now available.  It can be found at this URL.   http://quickconnect.sourceforge.net/docs/html/

 

There is now a location to report bugs.  Please post simple examples that reproduce the defect rather than you entire application.  Please report bugs at http://apps.sourceforge.net/mantisbt/quickconnect/main_page.php

 

QuickConnect.


 

QuickConnectiPhone version 1.1 is now available!

 

It includes the installer as well as new example code for the new features.  See how to access a SQLite database, either shipped on the device or in the UIWebView object, by making a few simple calls.  Start by looking in the mappings.js file and then the functions.js file to see how easy it is to do.  The nativeDBAccess example includes a sample.sqlite database file.  The browserDBAccess example shows you how to create and populate a SQLite database within the UIWebView without having any database files.

The browserAJAXAccess example is a simplified example that pulls data from the RSS feed for this blog.  Again, look in the mappings.js and functions.js files to see how to do this.

If you want to know how the framework pulls all of this off have a look in the com.js file.  It handles the communication to the device for everything from database access to debug messages and error logging.  If you want to get even deeper you can check out the Objective-C classes that support the JavaScript device calls.

Want to know how the linearization happens?  Look in the QuickConnect.js file and search for the dispatchToBCF function.  Then check out the DataAccessObject.js and ServerAccessObject.js files.

All of this, in addition to coverage of PhoneGap will be covered in my upcoming book from Pearson Publishing.

As stated above, version 1.1's new abilities include a full implementation to access any number of SQLite databases shipped with your application from within JavaScript.  This uses the same getData, setData API that version 1.0 used to access SQLite databases in the UIWebVeiw with one modification.  If you want to get or set data in a 'native' database instead of in the UIWebView you use the getNativeData and setNativeData methods.  Everything else is exactly the same between the two types of calls.

I have also linearized the asynchronous calls that you make to the device or remote servers using AJAX.  This required some changes to the PhoneDataAccessObject, now renamed DataAccessObject, as well as the ServerAccessObject used for AJAX calls.

In other words, now you can make a call to an SQLite database, an AJAX server, or GPS location information, and then make a call to any other piece of functionality and the second call will not happen until the first asynchronous call has completed.  This has been one of the most requested feature changes.  You no longer need worry about the timing of your asynch calls.  String together any number of asynchronous calls and the framework will ensure that they happen linearly.

Another change is that the QueryResult object is used as the data return for both database calls and AJAX calls.  Regardless of the type of call the returned objects are the same.

These major changes are what bumped the version number up to 1.1.


 

 

QuickConnectiPhone version 1.5 Beta 1 is now available!

 

It includes everything found in QCiPhone 1.1.3 as well as Ad hoc (Bonjour) Networking available via JavaScript.  Beta 2 will follow soon and include a new Charting and Graphing library specifically designed for hand-held devices.

 

Comments (2)

profile picture

Lee Barney said

at 8:27 pm on Feb 4, 2009

QuickConnectLinux beta 1.o is available for download from SourceForge

profile picture

Lee Barney said

at 4:46 pm on Feb 7, 2009

QCiPhone version 1.1.3 is now available. It includes the following changes.

Example applications updated to 1.1.3
apostrophes in the data of native databases now handled correctly.
a stopBounce() function added in the JavaScript. It stops the UIWebView from bouncing when the interface fits in the view. Thanks Aarpn for the initial code. I'll work on making it more flexible.

You don't have permission to comment on this page.