• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter II-3. Development > Test for Internet Connection

Test for Internet Connection

One of the first major tasks the application needs to accomplish is to detect whether an Internet connection is available. For this, the Vshift ColdFusion team has built a simple CFC function called onlineTest that will be placed in the expenseapp.cfc and will be called from Flash to test if there is a connection. If Flash cannot connect to the server and retrieve the result, then the user is obviously not connected properly to the Internet.

<cffunctionname="onlineTest"returntype="boolean" 
access="remote" 
hint="Simplyreturnsavaluefortesting">
<cfreturntrue>
</cffunction>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint