<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Palm WebOs Apps</title>
	<atom:link href="http://webosdeveloper.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://webosdeveloper.wordpress.com</link>
	<description>A Web App Developer ventures into Webos Mobile App Development</description>
	<lastBuildDate>Thu, 18 Feb 2010 18:28:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='webosdeveloper.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Palm WebOs Apps</title>
		<link>http://webosdeveloper.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://webosdeveloper.wordpress.com/osd.xml" title="Palm WebOs Apps" />
	<atom:link rel='hub' href='http://webosdeveloper.wordpress.com/?pushpress=hub'/>
		<item>
		<title>WebOS Custom Widget Example</title>
		<link>http://webosdeveloper.wordpress.com/2010/02/18/webos-custom-widget-example/</link>
		<comments>http://webosdeveloper.wordpress.com/2010/02/18/webos-custom-widget-example/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 15:33:34 +0000</pubDate>
		<dc:creator>androidgamez</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Custom Widgets]]></category>
		<category><![CDATA[Palm Ares]]></category>
		<category><![CDATA[Palm Pre]]></category>
		<category><![CDATA[WebOs]]></category>

		<guid isPermaLink="false">http://webosdeveloper.wordpress.com/?p=10</guid>
		<description><![CDATA[Refer to Palm&#8217;s Documentation Lets build a quick custom widget, nothing special, just a plain input type text widget as a learning experience. 1. Create a new javascript file on the root of the &#8220;App&#8221; directory, with the same name as your custom widget ex. myTextWidget.js 2. The file above ie myTextWidget.js, contains the code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webosdeveloper.wordpress.com&amp;blog=10896058&amp;post=10&amp;subd=webosdeveloper&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.palm.com/index.php?option=com_content&amp;view=article&amp;id=1884&amp;Itemid=56&amp;limitstart=4" target="_blank">Refer to Palm&#8217;s Documentation</a></p>
<p>Lets build a quick custom widget, nothing special, just a plain input type text widget as a learning experience.</p>
<p>1. Create a new javascript file on the root of the &#8220;App&#8221; directory, with the same name as your custom widget ex. myTextWidget.js</p>
<p>2. The file above ie myTextWidget.js, contains the code required to setup and render your widget.</p>
<p>3. Widgets are javascript objects defined in the Mojo.Widget namespace</p>
<p><span style="color:#0000ff;">Mojo.Widget.myTextWidget = Class.create({<br />
initialize: function()<br />
{<br />
},<br />
setup: function()<br />
{<br />
this.renderWidget();<br />
},</span></p>
<p><span style="color:#0000ff;"> renderWidget: function()<br />
{<br />
//all html representation of the widget including widget model &amp; attributes parameter substitutions are handled here<br />
//in our case we make use of Mojo.Render.View()<br />
}<br />
});</span></p>
<p>4. Create a directory on the root of the &#8220;app/views&#8221; directory. You can name is what ever you want! ex. app/views/myTextWidget</p>
<p>5. Within the newly created directory, create a new html file that will be the template file for your widget ex. app/views/myTextWidget/myTextWidget.html</p>
<p><span style="color:#0000ff;">&lt;input id=&#8221;#{divPrefix}&#8221; name=&#8221;#{textFieldName}&#8221; style=&#8221;#{show}&#8221; type=&#8221;text&#8221; maxLength=&#8221;#{maxLength}&#8221;/&gt;</span></p>
<p><span style="color:#0000ff;"><span style="color:#000000;">6. Lets go back into app/</span></span>myTextWidget.js and complete the renderWidget method</p>
<p><span style="color:#0000ff;">renderWidget: function()<br />
{<br />
//all html representation of the widget including widget model &amp; attributes parameter substitutions are handled here<br />
//in our case we make use of Mojo.Render.View()</span></p>
<p><span style="color:#0000ff;"> //define a model with the properties required by the html template</span></p>
<p><span style="color:#0000ff;"> model = {<br />
&#8216;divPrefix&#8217; : &#8216;mytext&#8217;,<br />
&#8216;textFieldName&#8217;: &#8216;mytextfield&#8217;,<br />
&#8216;show&#8217;: &#8221;,<br />
&#8216;maxLength&#8217;:20<br />
};</span></p>
<p><span style="color:#0000ff;"> var mytemplate = &#8220;myTextWidget/myTextWidget&#8221;;</span></p>
<p><span style="color:#0000ff;"> /*</span></p>
<p><span style="color:#0000ff;"> * The WidgetController sets the following standard properties on itself:<br />
*<br />
*         element: the widget&#8217;s div element in the DOM.<br />
*         scene: the SceneController for the widget&#8217;s scene.<br />
*         model: the widget&#8217;s model, if appropriate  This is the object containing the data the widget will display.<br />
*         attributes: the widget&#8217;s attributes (like model, defines widget configuration, does not change between list items).<br />
*/</span></p>
<p><span style="color:#0000ff;"> this.controller.element.innerHTML = content;</span></p>
<p><span style="color:#0000ff;"> return;</span></p>
<p><span style="color:#0000ff;">}</span></p>
<p>7. We then add the myTextWidget.js to the sources.json file,</p>
<p><span style="color:#0000ff;">{</span></p>
<p><span style="color:#0000ff;"> &#8220;source&#8221;, &#8220;app\/myTextWidget.js&#8221;</span></p>
<p><span style="color:#0000ff;"> }</span></p>
<p>8. Time to use our new Widget!  &#8211; Drag the &lt;HTML/&gt; widget onto the ~-chrome.js file (canvas), add</p>
<p><span style="color:#0000ff;">&lt;div id=&#8221;widget1&#8243; x-mojo-element=&#8221;myTextWidget&#8221;&gt;&lt;/div&gt;</span></p>
<p>on to the content input box. (right hand side -&gt; settings -&gt; common)</p>
<p>9. setupWidget in the sceneAssistant setup method:</p>
<p><span style="color:#0000ff;">this.controller.setupWidget(&#8220;widget1&#8243;, {}, {});</span></p>
<p>Thats it!</p>
<p><a href="http://www.youtube.com/watch?v=r_GmrJTxEgw" target="_blank">Video Capture Part One</a></p>
<p><a href="http://www.youtube.com/watch?v=7BK8ymOd-tA" target="_blank">Video Capture Part Two</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webosdeveloper.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webosdeveloper.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webosdeveloper.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webosdeveloper.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webosdeveloper.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webosdeveloper.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webosdeveloper.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webosdeveloper.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webosdeveloper.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webosdeveloper.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webosdeveloper.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webosdeveloper.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webosdeveloper.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webosdeveloper.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webosdeveloper.wordpress.com&amp;blog=10896058&amp;post=10&amp;subd=webosdeveloper&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webosdeveloper.wordpress.com/2010/02/18/webos-custom-widget-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4635d79081e6149b09dc4359292f3a14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">androidgamez</media:title>
		</media:content>
	</item>
		<item>
		<title>Palm Ares Introduced</title>
		<link>http://webosdeveloper.wordpress.com/2009/12/21/palm-ares-introduced/</link>
		<comments>http://webosdeveloper.wordpress.com/2009/12/21/palm-ares-introduced/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 14:52:48 +0000</pubDate>
		<dc:creator>androidgamez</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Logging]]></category>
		<category><![CDATA[Palm Ares]]></category>

		<guid isPermaLink="false">http://webosdeveloper.wordpress.com/?p=6</guid>
		<description><![CDATA[Palm introduced its latest App Developer Tool sometime last week. An online WYSIWYG editor that allows all novice web developers (Those who use DreamWeaver!) to flawlessly switch to Palm Pre/Pixi App Development. Furthermore, an additional advantage to all developers is the ability to use our favorite FireBug Plugin as Ares has a &#8220;Launch on Browser&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webosdeveloper.wordpress.com&amp;blog=10896058&amp;post=6&amp;subd=webosdeveloper&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Palm introduced its latest <a href="http://ares.palm.com" target="_blank">App Developer Tool</a> sometime last week. An online WYSIWYG editor that allows all novice web developers (Those who use DreamWeaver!) to flawlessly switch to Palm Pre/Pixi App Development.</p>
<p>Furthermore, an additional advantage to all developers is the ability to use our favorite FireBug Plugin as Ares has a &#8220;Launch on Browser&#8221; option alongside the two traditional Launch on Device Or Launch on Emulator Options.</p>
<p>After building a couple of apps the Palm Ares way, I have to say I was impressed with its debugging and log viewer functionality.</p>
<p>The ability to restart the emulator is really sweet too</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webosdeveloper.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webosdeveloper.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webosdeveloper.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webosdeveloper.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webosdeveloper.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webosdeveloper.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webosdeveloper.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webosdeveloper.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webosdeveloper.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webosdeveloper.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webosdeveloper.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webosdeveloper.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webosdeveloper.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webosdeveloper.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webosdeveloper.wordpress.com&amp;blog=10896058&amp;post=6&amp;subd=webosdeveloper&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webosdeveloper.wordpress.com/2009/12/21/palm-ares-introduced/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4635d79081e6149b09dc4359292f3a14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">androidgamez</media:title>
		</media:content>
	</item>
		<item>
		<title>Troubleshooting Apps</title>
		<link>http://webosdeveloper.wordpress.com/2009/12/10/hello-world/</link>
		<comments>http://webosdeveloper.wordpress.com/2009/12/10/hello-world/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 14:48:13 +0000</pubDate>
		<dc:creator>androidgamez</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mojo.Log]]></category>
		<category><![CDATA[Object.inspect]]></category>
		<category><![CDATA[Object.toJSON]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Troubleshooting webOs apps]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The fact that WebOs apps are powered by Javascript means that they are easy to build and troubleshoot. However, whereas web developers have the awesome Firefox/FireBug tool to stack trace, debug, and manipulate the DOM, Palm WebOs App Developers hava a luck lustre Palm Inspector that fails miserably to provide the same beloved functionality of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webosdeveloper.wordpress.com&amp;blog=10896058&amp;post=1&amp;subd=webosdeveloper&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The fact that WebOs apps are powered by Javascript means that they are easy to build and troubleshoot. However, whereas web developers have the awesome Firefox/FireBug tool to stack trace, debug, and manipulate the DOM, Palm WebOs App Developers hava a luck lustre Palm Inspector that fails miserably to provide the same beloved functionality of the FireBug tool.</p>
<p>Consequently, developers have to resort to the old method of including debug code within the App Code itself.</p>
<p>Mojo.Log.* api provides various methods to capture user defined debug statements.</p>
<p>The Logged statements are then viewable by running <em><span style="color:#0000ff;">palm-log -f com.mydomain.app</span> </em>on a command prompt.</p>
<p>As Mojo.Log.* expect all parameters to be strings, use prototype&#8217;s <span style="color:#0000ff;">Object.inspect(obj)</span> or <span style="color:#0000ff;">Object.toJSON(obj)</span> methods to convert any objects to strings.</p>
<p><span style="text-decoration:underline;"><strong>Ex.</strong></span><br />
<em>Mojo.Log.Info(&#8220;The returned fetch user result object &#8220;, Object.toJSON(result));</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webosdeveloper.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webosdeveloper.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webosdeveloper.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webosdeveloper.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webosdeveloper.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webosdeveloper.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webosdeveloper.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webosdeveloper.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webosdeveloper.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webosdeveloper.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webosdeveloper.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webosdeveloper.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webosdeveloper.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webosdeveloper.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webosdeveloper.wordpress.com&amp;blog=10896058&amp;post=1&amp;subd=webosdeveloper&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webosdeveloper.wordpress.com/2009/12/10/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4635d79081e6149b09dc4359292f3a14?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">androidgamez</media:title>
		</media:content>
	</item>
	</channel>
</rss>
