Author: ben Date: 2007-09-24 14:51:13 -0700 (Mon, 24 Sep 2007) New Revision: 6570
Added: labs/newsmatch/iphone-openlaszlo.blog.html labs/newsmatch/progression08/ labs/newsmatch/progression08/feed.xml labs/newsmatch/progression08/main08.lzx Removed: labs/newsmatch/blank.lzx Modified: labs/newsmatch/README.txt labs/newsmatch/index.html labs/newsmatch/progression01/blank.lzx labs/newsmatch/progression05/main05.lzx Log: started on a blog entry Modified: labs/newsmatch/README.txt =================================================================== --- labs/newsmatch/README.txt 2007-09-24 20:42:37 UTC (rev 6569) +++ labs/newsmatch/README.txt 2007-09-24 21:51:13 UTC (rev 6570) @@ -2,8 +2,11 @@ * Just write a laszlo app * Tweak the wrappers +Requirements: +OpenLaszlo 4.0.5 or later. + The basics: -A blank app that will work on the iphone is at blank.lzx. +A blank app that will work on the iPhone is at blank.lzx. Running the application: @@ -16,31 +19,28 @@ And, yes, it runs just the same in swf output: http://localhost:8080/trunk/demos/newsmatch/main.lzx?lzr=swf8&lzt=html +To deploy: Use the SOLO deploy wizard to deploy as dhtml solo. [TODO: explain how.] Unzip the contents of the solo deploy zip. -Modify the generated index file main.lzx.html in two ways: -1) Put in the special viewport meta tag: - <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> - -2) If desired, edit the wrapper page to be dhtml that matches +If desired, edit the wrapper page to be dhtml that matches how the laszlo app looks when startup is complete. Notes: -The workflow can be modified to suit your circumstances. I don't run -an OpenLaszlo server live where I can hit it with an iPhone, so I do -most development for the iPhone by running locally in Safari then -solo-deploying. -yahooimags.xml - for development, we captured a particular snapshot +filter.xsl, in this directory, is an xslt template to take +a large rss feed and filter it down to just what the iPhone demo +needs. + +For development, we captured a particular snapshot of the yahoo images rss feed, and hand-edited it to contain just the information we want to present. This let us minimize uncessary downloading. In live deployment, you would do server-side processing on the xml feed to get it into exactly the shape -you want it. XSLT comes to mind, but whatever server-side -technology you like will do. +you want it. + When data transfer is slower than a laden african swallow, you have to be very careful with your bloated feeds. @@ -53,3 +53,7 @@ resources/ contains various image resources. +Credits: +Thanks to yahoo images for their photos feed, which has such great photos. http://rss.news.yahoo.com/imgrss/441 +Thanks to Joe Hewitt (joehewitt.com) for Firebug and for figuring out what to do with the meta viewport tag. +iPhoney: http://www.marketcircle.com/iphoney/ \ No newline at end of file Deleted: labs/newsmatch/blank.lzx Modified: labs/newsmatch/index.html =================================================================== --- labs/newsmatch/index.html 2007-09-24 20:42:37 UTC (rev 6569) +++ labs/newsmatch/index.html 2007-09-24 21:51:13 UTC (rev 6570) @@ -10,6 +10,7 @@ </head> <body> + <h1>newsmatch in dhtml</h1> <ul> <li><a href="main.lzx?lzr=dhtml" target="newsmatch">newsmatch</a></li> <li><a href="main.lzx?lzr=dhtml&lzt=html" target="newsmatch">newsmatch lzt=html</a></li> @@ -21,8 +22,22 @@ <li><a href="progression06/main06.lzx?lzr=dhtml&lzt=html" target="newsmatch">progression06</a></li> <li><a href="progression07/main07.lzx?lzr=dhtml&lzt=html" target="newsmatch">progression07</a></li> </ul> + +<h1>For comparison, the same apps, in lzr=swf</h1> + <ul> + <li><a href="main.lzx?lzr=swf8" target="newsmatch">newsmatch</a></li> + <li><a href="main.lzx?lzr=swf8&lzt=html" target="newsmatch">newsmatch lzt=html</a></li> + <li><a href="progression01/blank.lzx?lzr=swf8&lzt=html" target="newsmatch">progression01</a></li> + <li><a href="progression02/main02.lzx?lzr=swf8&lzt=html" target="newsmatch">progression02</a></li> + <li><a href="progression03/main03.lzx?lzr=swf8&lzt=html" target="newsmatch">progression03</a></li> + <li><a href="progression04/main04.lzx?lzr=swf8&lzt=html" target="newsmatch">progression04</a></li> + <li><a href="progression05/main05.lzx?lzr=swf8&lzt=html" target="newsmatch">progression05</a></li> + <li><a href="progression06/main06.lzx?lzr=swf8&lzt=html" target="newsmatch">progression06</a></li> + <li><a href="progression07/main07.lzx?lzr=swf8&lzt=html" target="newsmatch">progression07</a></li> + </ul> + </body> <!-- Copyright 2007 Laszlo Systems --> </html> Added: labs/newsmatch/iphone-openlaszlo.blog.html Property changes on: labs/newsmatch/iphone-openlaszlo.blog.html ___________________________________________________________________ Name: svn:mime-type + text/html Name: svn:eol-style + native Modified: labs/newsmatch/progression01/blank.lzx =================================================================== --- labs/newsmatch/progression01/blank.lzx 2007-09-24 20:42:37 UTC (rev 6569) +++ labs/newsmatch/progression01/blank.lzx 2007-09-24 21:51:13 UTC (rev 6570) @@ -2,9 +2,7 @@ <!-- views --> <view width="${parent.width}" height="${parent.height}" bgcolor="white"> - <text text="(application and content go here)" fgcolor="0x2d4263" y="200" x="20"> - <animator name="headerfade_anm" attribute="opacity" to="1" duration="500" start="false" /> - </text> + <text text="(application and content go here)" fgcolor="0x2d4263" y="200" x="20"/> </view> <view name="cover" width="320" height="356" onclick="coverslide_anm.doStart()" > @@ -26,7 +24,6 @@ <handler name="onstop" reference="coverslide_anm" > this.setVisible(false); - txtlayout.intro.doStart(); </handler> </view> Modified: labs/newsmatch/progression05/main05.lzx =================================================================== --- labs/newsmatch/progression05/main05.lzx 2007-09-24 20:42:37 UTC (rev 6569) +++ labs/newsmatch/progression05/main05.lzx 2007-09-24 21:51:13 UTC (rev 6570) @@ -8,7 +8,6 @@ source="$path{'content/@url'}" width="30" height="30" stretches="both"> <method event="onclick"> - Debug.write(this.datapath); gDetails.show(this.datapath.p); </method> </view> Added: labs/newsmatch/progression08/feed.xml Property changes on: labs/newsmatch/progression08/feed.xml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + native Added: labs/newsmatch/progression08/main08.lzx Property changes on: labs/newsmatch/progression08/main08.lzx ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native _______________________________________________ Laszlo-checkins mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins
