Exclusive Deal While supplies last, save 40% off over 40 iPhone 5 and iPhone 4/4S cases and chargers as well as Samsung S III cases at Kensington.com. Use coupon code 'SAVE40%' at checkout to receive this exclusive discount.      
toggle

AAPL Stock: 445.15 ( + 3.01 )

http://www.macnn.com/articles/10/04/07/framework.mimics.native.apps.using.html.css/

Developer uncovers iPad's AdLib web-based app framework

updated 05:55 pm EDT, Wed April 7, 2010

 

Framework mimics native apps using HTML, CSS


Apple has apparently created a new web-based framework for the iPad, potentially allowing developers to create web apps using HTML, CSS and JavaScript code. Done21 developer Jim Hoskins allegedly uncovered the framework, known as AdLib, while exploring the iPad User Guide, which opens in Safari but mimics functionality typically reserved for native apps.

The user guide contains scrolling panes that can be navigated using a single finger. The interface also shows the iPhone OS scroll bars and elastic transitions. Hoskins took a closer look at the JavaScript code, which indicated the system was reading touch events and calculating the scrolling inertia before manually drawing the scroll bars.

Further investigation uncovered an entire framework consisting of 4,300 lines of code, with each class and constant prefixed with the letters "AD" and contained in a file labeled AdLib-ug-ipad.js.

"The framework looks to be extremely well thought out and complete," Hoskins says. "Perhaps this will be a framework to support a future release of Dashcode, an application for writing dashboard widgets and Safari/iPhone web apps."

Apple has yet to disclose the framework or offer documentation. It is unclear if the code will be announced as part of the upcoming iPhone OS 4 event.


by MacNN Staff

Post tools:

TAGS :

 developer, Safari, HTML, JavaScript, Apple, iPad
toggle

Comments

  1. rytc

    Senior User

    Joined: Jan 2001

    +1

    The framework

    For iAd?

Login Here

Not a member of the MacNN forums? Register now for free.

 
close
Photo
toggle

Network Headlines

toggle

Most Popular

MacNN Sponsor

Recent Reviews

MaxUpgrades MaxConnect for 2006-2008 Mac Pro

Nobody outside of Cupertino's privileged bunch knows the future of the Mac Pro line for sure. Despite Apple's reluctance to tell us wh ...

Brother HL-3170CDW LED Printer

We've mentioned before that we are far from a paperless society. For now, at least, there are tasks that require a piece of paper for ...

HTC One

It is hard to overstate just how critically important the HTC One is to the Taiwanese company’s fortunes. Despite its alarming decline ...

toggle

Most Commented