Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Sunday, January 10, 2010

Check Internet Connection in iPhone

Here is a quick code snippet for you. In a Dashcode javascript application, you can check if the user is connected to the internet via the following code:


  var online = window.navigator.onLine;
  if (!online){
    alert('You are not currently connected to the internet. Please try again later.');
  }

The Latest Dashcode Problem

I think that it sounds silly, but, now that I have figured out all the other problems in my GUI interface, I now am unable to add more than 2 views to my stack within the "browser" component. I can add new view stacks, but the problem is that they appear outside of my original browser component, requiring that I re-create that. Then, there is the problem of me not being able to edit the canvas for that new view stack (or group).

If there are any Dashcode developers out there that can help me out, please comment.

Thanks for visiting my new Blog!

Saturday, January 9, 2010

iPhone Application Development Update

First off, I would like to welcome everybody to my new blog page. Here I will be posting my computer programming and web development experiences. Shall we get started?

The past 2 weeks I have been diving in to the iPhone SDK and the limited options for programming native applications on the iPhone platform. I started off thinking that it was absolutely required to know Objective-C for programming in Apple's Cocoa and Cocoa Touch frameworks, so I tried to learn Obj-C. Within a day or so, I gave up on that seemingly complex, obscure, ugly language and set out to find a different approach. I soon found PhoneGap; a framework that allows native iPhone apps to be developed in html, css, and, of course, javascript. I programmed in plain javascript (with jQuery) and html for a few days, but once again found there to be some problems. I found DashCode (that came with the Apple SDK), in which I can develop native-looking Mobile Safari applications in javascript. Combining the powers of PhoneGap framework and DashCode, I am now able to use a nice drag-and-drop IDE to build javascript-run, native-looking iPhone applications.

I will release some tutorials on my YouTube channel later on using these tools together, and write another blog post about my upcoming applications.