<?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/"
	>

<channel>
	<title>Mobiledevworld.com &#124; Mobile Developers Community &#187; aptana studio</title>
	<atom:link href="http://mobiledevworld.com/tag/aptana-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://mobiledevworld.com</link>
	<description>Mobile Developers and Professionlas Community</description>
	<lastBuildDate>Sun, 09 May 2010 18:20:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nokia WRT, Aptana, Firefox and cross site javascripts</title>
		<link>http://mobiledevworld.com/2009/10/19/nokia-wrt-aptana-firefox-and-cross-site-javascripts/</link>
		<comments>http://mobiledevworld.com/2009/10/19/nokia-wrt-aptana-firefox-and-cross-site-javascripts/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 07:30:59 +0000</pubDate>
		<dc:creator>Rafi Ton</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[aptana studio]]></category>
		<category><![CDATA[cross site scripting]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[wrt]]></category>

		<guid isPermaLink="false">http://mobiledevworld.com/?p=591</guid>
		<description><![CDATA[




I wanted to share 2 tips when developing Nokia Web Run-time apps (WRT) using Aptana studio and the Nokia plugin.
Your preview browser in Aptana matters
One thing I was puzzled is that I couldn&#8217;t get widget.preferenceForKey to work on my Aptana (running on a MAC). It seems that there is a problem with widget.preferenceForKey when Safari [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to share 2 tips when developing Nokia Web Run-time apps (WRT) using Aptana studio and the Nokia plugin.</p>
<p><span style="font-size: medium"><strong>Your preview browser in Aptana matters</strong></span></p>
<p>One thing I was puzzled is that I couldn&#8217;t get widget.preferenceForKey to work on my Aptana (running on a MAC). It seems that there is a problem with widget.preferenceForKey when Safari is configured as the preview app in Aptana Studio -&gt; preferences -&gt; Web Runtime &#8211; &gt; preview. It just returns undefined when getting the preference for any key. I switched to Firefox and it solved the problem. Alas, it created a new problem. See next item.</p>
<p><strong><span style="font-size: medium">Cross site scripting with Firefox when debugging you app on the Emulator</span></strong></p>
<p>Unlike Safari, Firefox does not allow cross site scripts and when trying to execute an AJAX call from the widget you get &#8220;Access to restricted URI denied&#8221;  code: &#8220;1012&#8243; error in your Aptana console.</p>
<p>The way to solve it is to add the following statement before you AJAX calls: netscape.security.PrivilegeManager.enablePrivilege(&#8221;UniversalBrowserRead&#8221;); when running the app in the emulator and removing it from the code before deploying the app on a real phone.</p>
<p>You also need to set &#8217;signed.applets.codebase_principal_support&#8217; to true in about:config, then your script will pass all domain security checks. Don&#8217;t forget to remove the line when you&#8217;re finished testing. </p>
<div class='wp_likes' id='wp_likes_post-591'>
<div  class='text'><b>2</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(591)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://mobiledevworld.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://mobiledevworld.com/2009/10/19/nokia-wrt-aptana-firefox-and-cross-site-javascripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aptana Studio 1.5.0 Released</title>
		<link>http://mobiledevworld.com/2009/07/18/aptana-studio-1-5-0-released/</link>
		<comments>http://mobiledevworld.com/2009/07/18/aptana-studio-1-5-0-released/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 10:34:42 +0000</pubDate>
		<dc:creator>Rafi Ton</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[aptana studio]]></category>
		<category><![CDATA[wrt]]></category>

		<guid isPermaLink="false">http://mobiledevworld.com/2009/07/18/aptana-studio-1-5-0-released/</guid>
		<description><![CDATA[
Being somewhat a fan of Aptana studio which I use for both PHP and Nokia WRT widget development, I was happy to read that Aptana released Studio 1.5.0.
Aptana Studio 1.5.0 is based on a whole new architecture which offers users greater performance and lower memory usage.
Some of the changed in 1.5.0 are:

 Performance, Performance, and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-186" src="http://mobiledevworld.com/files/2009/07/Aptana_logo1.png" alt="Aptana_logo" width="180" height="65" /></p>
<p>Being somewhat a fan of Aptana studio which I use for both PHP and Nokia WRT widget development, I was happy to read that Aptana released Studio 1.5.0.</p>
<p>Aptana Studio 1.5.0 is based on a whole new architecture which offers users greater performance and lower memory usage.</p>
<h2>Some of the changed in 1.5.0 are:</h2>
<ul>
<li> Performance, Performance, and Memory Usage &#8211; One of the first things you will notice with Aptana Studio 1.5.0 is better performance and less memory consumption.</li>
<li> Eclipse 3.5 (Galileo) is now the base platform for Aptana Studio.</li>
<li> 64-Bit Platform Compatibility (32-Bit JVM still required)</li>
<li> Browse and manage your databases with the new Database Explorer.</li>
<li> File bugs and enhancement requests from within Studio by going to Help &gt; Aptana Help &gt; Troubleshooting &gt; Submit Aptana Bug or Feedback&#8230;</li>
<li> Updated Windows bundled Multilingual JRE to 1.6.0_13</li>
<li> Mac version is now Cocoa based.</li>
<li> JSON Editor and Report where moved from Pro features to community edition.</li>
<li> More FTP and Synchronization Fixes</li>
<li> Updated XULrunner 1.8 to XULRunner 1.9</li>
<li> SFTP &#8211; Public Key Authentication</li>
<li> More Database Fixes</li>
<li> More FTP and Synching Fixes</li>
<li> The web server configuration now includes the DocumentRoot property, simplifying the use of some web frameworks.</li>
<li> Install only the plugins you need with the Install Additional Features wizard, which runs on launch and from the Help menu. Options include, but are not limited to:
<ul>
<li> Ajax library support, including jQuery, Dojo, Ext JS, YUI, and many others</li>
<li> Aptana Jaxer v1.0.3 (Release Notes)</li>
<li> PHP</li>
<li> PyDev</li>
<li> Git</li>
</ul>
</li>
</ul>
<p>Click here to <a title="http://www.aptana.com/download/" rel="nofollow" href="http://www.aptana.com/download/">Download Aptana Studio 1.5.0</a>. </p>
<div class='wp_likes' id='wp_likes_post-23'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(23)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://mobiledevworld.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://mobiledevworld.com/2009/07/18/aptana-studio-1-5-0-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginners&#8217; guide to Mobile App development with Nokia WRT &#8211; Creating a project and Adding Componenets</title>
		<link>http://mobiledevworld.com/2009/07/18/beginners-guide-to-mobile-app-development-with-nokia-wrt-creating-a-project-and-adding-componenets/</link>
		<comments>http://mobiledevworld.com/2009/07/18/beginners-guide-to-mobile-app-development-with-nokia-wrt-creating-a-project-and-adding-componenets/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 08:16:55 +0000</pubDate>
		<dc:creator>Rafi Ton</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[aptana studio]]></category>
		<category><![CDATA[beginner guides]]></category>
		<category><![CDATA[mobile development]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[wrt]]></category>

		<guid isPermaLink="false">http://mobiledevworld.com/?p=19</guid>
		<description><![CDATA[Ok, we have the development environment all set up &#8211; what&#8217;s next? Now, we need to understand how WRT widgets are structured. In general, a widget is designed from few sections in a single html page that we can activate or deactivate in accordance with that we want to do (I know that I&#8217;m oversimplifying [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, we have the development environment all set up &#8211; what&#8217;s next? Now, we need to understand how WRT widgets are structured. In general, a widget is designed from few sections in a single html page that we can activate or deactivate in accordance with that we want to do (I know that I&#8217;m oversimplifying this, but nonetheless, for most cases it encompasses the general idea).</p>
<p>As I said in the first part of the tutorial, I&#8217;m writing a WRT widget for my <a href="http://woofim.com/">mini-blogging service called woofim.com</a>. As such, lets start with creating a simple widget that will display the latest photos, videos and text posts on the site.</p>
<h3>Creating a new WRT project in Aptana Studio</h3>
<p>First we need to create a new project to work with. Open Aptana Studio and select File -&gt; New -&gt; Project. This will open the following window:</p>
<p><img class="size-full wp-image-40" src="http://mobiledevworld.com/files/2009/07/picture-11.png" alt="Aptana Studio - Project Selection" />Select &#8220;New Nokia Web Runtime Widget&#8221; &#8211; which will show the next screen:</p>
<p><img class="size-full wp-image-42" src="http://mobiledevworld.com/files/2009/07/picture-21.png" alt="Aptana Studio - Creating a Nokia WRT Project" />Click NEXT and enter the project name (e.g. woofim) -&gt; NEXT -&gt; NEXT -&gt; Finish. This will create a basic WRT project with the framework for css, javascript and html files.</p>
<p>Next, lets go over the basic structure of the index.html file &#8211; open it and it should look like this:</p>
<pre><span style="color: #0000ff">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head&gt;
        &lt;title&gt; Sample Widget&lt;/title&gt;
        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
        <span style="color: #ff0000">&lt;script language="javascript" type="text/javascript" src="basic.js"&gt;&lt;/script&gt;</span>
        <span style="color: #ff0000">&lt;link rel="stylesheet" href="basic.css" type="text/css"&gt;</span>
        &lt;META NAME="Generator" CONTENT="Nokia WRT plug-in for Aptana Studio 2.0.0" /&gt;
    &lt;/head&gt;
    <span style="color: #ff0000">&lt;body onLoad="javascript:init();"&gt;</span>
    &lt;/body&gt;
&lt;/html&gt;

</span></pre>
<p><span style="color: #000000">Let&#8217;s focus on 3 important statements marked in red:</span></p>
<ol>
<li><span style="color: #000000">the html imports basic.js which holds the javascript for our widget;</span></li>
<li><span style="color: #000000">the html uses basic.css as stylesheet;</span></li>
<li><span style="color: #000000">when the body is loaded it will automatically launch the javascript function init() which we will use later on.</span></li>
</ol>
<p>As I explained before, Nokia WRT 1.1 supports jQuery which simplifies many Javascript tasks. Therefore, we need also to load the jquery library in our project. You can download the latest version of jquery <a href="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js">here</a> or simply visit the  <a href="http://www.jquery.com" target="_blank">jquery site</a> and click download.</p>
<p>After you have downloaded jquery, just copy the file to your project folder (usually under &#8220;My Documents/Aptana/ProjectName&#8221;). Now we need to tell the html file to load the library when the index.html loads. This is what the following line does:</p>
<pre><span style="color: #0000ff">&lt;script src="jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;</span></pre>
<p>Just add it right before the &lt;/head&gt;. Now we have also jquery to our disposal &#8211; good.</p>
<p>Now we can start designing the basic widget. </p>
<div class='wp_likes' id='wp_likes_post-19'>
<div  class='text'><b>11</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(19)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://mobiledevworld.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://mobiledevworld.com/2009/07/18/beginners-guide-to-mobile-app-development-with-nokia-wrt-creating-a-project-and-adding-componenets/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
