• Adam Mark's picture
    Adam Mark on February 2, 2012

    If you're trying to make AJAX requests from within the Workshop app—for example, with $.get() or $.ajax()—you'll notice nothing happens. Why? AJAX requests cannot be made across different domains. App Cloud provides a device method for this very reason: bc.device.fetchContentsOfURL(url, successCallback, errorCallback); This asynchronous method can be used to load any kind of textual data, from JSON to XML to HTML. For example: Read More →

  • Adam Mark's picture
    Adam Mark on February 2, 2012

    Whenever you interact with native device capabilities, be prepared to handle errors. Device functions return an error code whenever things don't go according to plan. For example, when scanning a QR code: Read More →