Permalink
Browse files

updated with new reference to webworks.js file

  • Loading branch information...
1 parent 7b27e5e commit 8c7cc49e712f4f5393109948cf18c187ee202259 @mimendoza mimendoza committed Dec 5, 2012
Showing with 12 additions and 12 deletions.
  1. +2 −4 DojoAppDetails/README.md
  2. +10 −8 DojoAppDetails/index.html
@@ -17,7 +17,7 @@ The sample code for this application is Open Source under the [Apache 2.0 Licens
**Dependencies**
-* When running the application on a device, to access Dojo toolkit resources, the device must have an internet connection
+* When running the application on a device/computer, an internet connection is required to access the Dojo toolkit resources
**Known Issues**
@@ -36,9 +36,7 @@ To build the DojoAppDetails sample application:
2. Select **Download as zip** (Windows) or **Download as tar.gz** (Mac) and save the downloaded file to your local machine.
3. Create a new folder on your local machine named **DojoAppDetails** e.g. **C:\Documents and Settings\User\WebWorks\DojoAppDetails** (Windows) or **~/WebWorks/DojoAppDetails** (Mac).
4. Open the downloaded ZIP file from step 2 and extract the contents **from inside the zipped DojoAppDetails folder** to your local **DojoAppDetails** folder from step 3. This ensures that the necessary application assets, such as **config.xml**, are correctly located at the top level of the local **DojoAppDetails** folder (e.g. **~/WebWorks/DojoAppDetails/config.xml**).
-5. Copy the webworks-<version>.js client file from **C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK <version>\Framework\clientFiles** (Windows) or **~/SDKs/BlackBerry 10 WebWorks SDK <version>/Framework/clientFiles** (Mac) into the top level of the local **DojoAppDetails** folder (e.g. **~/WebWorks/DojoAppDetails/webworks-<version>.js**).
-6. Optional: Edit the script reference to the webworks-<version>.js file within any *.html files to ensure the version number is correct.
-7. Using the **[Ripple Mobile Emulator](http://developer.blackberry.com/html5/download)** and the **[BlackBerry WebWorks SDK for BB10](http://developer.blackberry.com/html5/download)**, package the contents of your local **DojoAppDetails** folder into a BlackBerry application. Enter the project root settings field as the local folder created in step 3, and the archive name settings field as **DojoAppDetails**.
+5. Using the **[Ripple Mobile Emulator](http://developer.blackberry.com/html5/download)** and the **[BlackBerry WebWorks SDK for BB10](http://developer.blackberry.com/html5/download)**, package the contents of your local **DojoAppDetails** folder into a BlackBerry application. Enter the project root settings field as the local folder created in step 3, and the archive name settings field as **DojoAppDetails**.
## More Info
@@ -18,16 +18,18 @@
<head>
<title>Dojo App Details</title>
<meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <script>
+ var meta = document.createElement("meta");
+ meta.setAttribute('name','viewport');
+ meta.setAttribute('content','initial-scale='+ (1/window.devicePixelRatio) + ',user-scalable=no');
+ document.getElementsByTagName('head')[0].appendChild(meta);
+ </script>
+
<!-- Webworks JS must be loaded before any Dojo -->
- <!--
- Include BlackBerry 10 WebWorks JavaScript framework file.
- When doing an SDK upgrade, always make sure you grab the latest from the SDK/Framework/clientFiles folder.
- -->
- <script src="webworks-1.0.1.5.js"></script>
+ <script src="local:///chrome/webworks.js"></script>
- <!-- async mode must be included BEFORE the dojo loader (dojo.js) -->
- <script data-dojo-config="async:true" src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.js" ></script>
+ <!-- Include the dojo loader file -->
+ <script data-dojo-config="async:true" src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/dojo.js" ></script>
<!-- Any other scripts needed -->
<script src="js/dojoAppDetails.js"></script>

0 comments on commit 8c7cc49

Please sign in to comment.