10 Replies Latest reply: Aug 20, 2012 1:51 PM by apple.daze
apple.daze Level 1 Level 1 (0 points)

Ok. Searched on the web and tutorials on inserting HTML.

Got the general concept down.

 

Handcoded a test page.

Made sure there was a info.plist file and default.png.

HTML page showed up fine in browser.

Size was setup at 1680 x 1260, since that seems to be the requirement for Keynote widgets.

We want this code to be full-frame.

 

This is content of info.plist obtained from web:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

    <key>AllowNetworkAccess</key>

    <true/>

    <key>CFBundleDevelopmentRegion</key>

    <string>English</string>

    <key>CFBundleDisplayName</key>

    <string>Interface</string>

    <key>CFBundleIdentifier</key>

    <string>com.company.project.widget</string>

    <key>CFBundleName</key>

    <string>Interface</string>

    <key>CFBundleShortVersionString</key>

    <string>1.0</string>

    <key>CFBundleVersion</key>

    <string>1.0</string>

    <key>Height</key>

    <integer>768</integer>

    <key>MainHTML</key>

    <string>index.html</string>

    <key>Width</key>

    <integer>1024</integer>

</dict>

</plist>

 

This is what was in the directory:

 

Added to .wdgt to folder name and plugged into HTML widget.

 

Only ended up with upper left of page in a smaller box centered on page.

Not scrollable. Just static crop of image.

Tried tests with different dimensions, 1680 x 1260 vs. 1024 x 768.

Same results.

 

1. Is it possible full-frame html widgets to add interactivity to an iBook?

2. If we can, what dimensions should we build them for iPad3 and iPad2?


iPad