<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.developerfriendly.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>XUL</title>
 <link>http://www.developerfriendly.com/taxonomy/term/16</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>XUL Controls Example</title>
 <link>http://www.developerfriendly.com/node/43</link>
 <description>&lt;br /&gt;Tonight I threw together a little XUL file that demonstrates most of the major user interface [controls|widgets|whatever] so that I could get a quick idea of how any given GTK theme would look on a variety of different interface elements. I&#039;m sure there is a GTK application that does this but I thought that it would be an interesting use for &lt;a href=&quot;http://developer.mozilla.org/en/docs/XUL_Explorer&quot;&gt;XULExplorer&lt;/a&gt;.
&lt;br /&gt;&lt;br /&gt;
So without further ado I present you with my mostly useless &lt;a href=&quot;/files/developerfriendly/example-widgets.xul&quot; title=&#039;Example Widgets&#039;&gt;example-widgets.xul&lt;/a&gt;</description>
 <comments>http://www.developerfriendly.com/node/43#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/7">Mozilla</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/1">mozpad</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/35">ui</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/34">widgets</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/16">XUL</category>
 <pubDate>Fri, 30 Nov 2007 00:07:25 -0600</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">43 at http://www.developerfriendly.com</guid>
</item>
<item>
 <title>jabber for mozilla: sameplace.cc</title>
 <link>http://www.developerfriendly.com/node/41</link>
 <description>&lt;div style=&#039;clear:left&#039;&gt;
&lt;a href=&quot;http://sameplace.cc&quot;&gt;&lt;img src=&quot;http://sameplace.cc/themes/local/zen/zen-sameplace/logo.jpg&quot; style=&#039;float:right&#039;/&gt;&lt;/a&gt;
I just came across a really nice extension for Mozilla applications which supports Firefox, Thunderbird and even Flock! It&#039;s called &lt;a href=&quot;http://sameplace.cc&quot;&gt;SamePlace&lt;/a&gt;, it&#039;s open source and the interface is really slick.
&lt;/div&gt;
&lt;h4&gt;Obligatory screenshot:&lt;/h4&gt;
&lt;img src=&quot;http://sameplace.cc/files/images/integrated-client.png&quot;/&gt;
&lt;br/&gt;
Check out their &lt;a href=&quot;http://sameplace.cc&quot;&gt;site&lt;/a&gt; for more info!</description>
 <comments>http://www.developerfriendly.com/node/41#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/32">jabber</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/7">Mozilla</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/33">xmpp</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/16">XUL</category>
 <pubDate>Thu, 08 Nov 2007 05:37:51 -0600</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">41 at http://www.developerfriendly.com</guid>
</item>
<item>
 <title>Dragging widgets (Undecorated XUL windows)</title>
 <link>http://www.developerfriendly.com/node/28</link>
 <description>&lt;br/&gt;
The following is a simple bit of code that can make a borderless window dragable, currently tested only on Linux.
 
While this may not be needed in most X Windows Managers (due to alt-click dragability) it&#039;s still an important part of any desktop widget runtime. In WidgetRunner you can simply include this JavaScript file to provide the functionality automatically.
&lt;!--break--&gt;
&lt;code&gt;&lt;pre&gt;
/* widget.js - shared code used in all widgets.
*/

window.addEventListener(&quot;load&quot;, startup, false);
var widgetRunner= window.opener.widgetRinner;

function startup() {
	
	window.opener.widgetLoaded(window);
	if (loadWidget) {
		loadWidget();
	}


	var startPos=0;
	var mouseDown = function(event) {
		startPos = [ event.clientX, event.clientY];

	}
	
	var mouseMove = function(event) {
		if (startPos != 0) {
			var newX = event.screenX-startPos[0];
			var newY = event.screenY-startPos[1];
			window.moveTo(newX,newY);
		}
	}
	
	var mouseUp = function(event) {
		startPos=0;
	}

	window.addEventListener(&quot;mousedown&quot;,mouseDown, false);
	window.addEventListener(&quot;mouseup&quot;,mouseUp, false);
	window.addEventListener(&quot;mousemove&quot;,mouseMove, false);
}
&lt;/pre&gt;&lt;/code&gt;

I have published a stripped down version of this code as an example on the Mozilla Developer Connection wiki.  That document is here: &lt;a href=&quot;http://developer.mozilla.org/en/docs/Code_snippets:Windows#Draggable_windows&quot;&gt;Code_snippets:Windows#Draggable_windows&lt;/a&gt;</description>
 <comments>http://www.developerfriendly.com/node/28#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/17">JavaScript</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/1">mozpad</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/26">WidgetRunner</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/16">XUL</category>
 <pubDate>Mon, 30 Jul 2007 02:19:00 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">28 at http://www.developerfriendly.com</guid>
</item>
<item>
 <title>XULRunner Wishlist</title>
 <link>http://www.developerfriendly.com/node/13</link>
 <description>Some things I would love to see in XULRunner:

&lt;ul&gt;
 &lt;li&gt;Better cross-platform desktop integration. For example: &lt;ul&gt;
   &lt;li&gt;Support for customized dock menu entries on OS X.
     &lt;br /&gt;&lt;em&gt;I am investigating this one. It may be possible without modifications to XULRunner.&lt;/em&gt;&lt;/li&gt;
   &lt;li&gt;Support for system tray icons on windows and linux.
     &lt;br /&gt;&lt;em&gt;There is a patch for this somewhere in bugzilla. I will look into it further when I have the time to test out the patch.&lt;/em&gt;&lt;/li&gt;
  &lt;/ul&gt;
 &lt;/li&gt;
 &lt;li&gt;Tools to help with packaging XUL Applications for multiple platforms.
   &lt;br /&gt;&lt;em&gt;It seems that XULExplorer is moving towards providing this&lt;/em&gt;&lt;/li&gt;
 &lt;li&gt;A code library providing often-used features that we take for granted when developing for Firefox.&lt;/li&gt;
&lt;/ul&gt;

I will update this list as I think of more and as I work towards building some of what I have mentioned here.</description>
 <comments>http://www.developerfriendly.com/node/13#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/1">mozpad</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/18">wishlist</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/16">XUL</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/8">XULRunner</category>
 <pubDate>Mon, 02 Jul 2007 07:23:11 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">13 at http://www.developerfriendly.com</guid>
</item>
<item>
 <title>XHTML Applications and XULRunner</title>
 <link>http://www.developerfriendly.com/node/12</link>
 <description>&lt;p&gt;As much as I love XUL and the Mozilla platform, I would like to introduce a related topic that I think deserves a little bit of attention. Maybe everyone is aware of this already but I rarely see it mentioned so I would like to devote a few minutes to the topic of XHTML applications in XULRunner. It may not be completely obvious to everyone: XULRunner can do a lot more than XUL. Just about any technology which works on the web will work inside of XULRunner - you can develop applications that utilize HTML, JavaScript, SVG and even Flash (via the Flash Player plugin.)  Some developers may feel that XUL is superior HTML for user interface design, however, there are a lot more people who are familiar with HTML and JavaScript.&lt;/p&gt;


&lt;p&gt;In my opinion, XUL should not be terribly difficult for any web developer with strong HTML, CSS and JavaScript. On the other hand, it&#039;s not exactly easy for new developers to familiarize themselves with all of the terminology and unfamiliar technologies provided by the Mozilla platform. It took me at least 6 months of casual coding and experimentation before I was beginning to be comfortable and productive working with XUL and XPCOM.  The situation has improved since I first started coding Firefox extensions a little over one year ago; today the Mozilla Developer Center provides a lot of wonderful information to help newcomers familiarize themselves with the technology and become productive Mozilla developers. Even with great resources like &lt;a href=&quot;http://developer.mozilla.org&quot;&gt;MDC&lt;/a&gt;, it seems to me that Mozilla development can still be moderately intimidating for the uninitiated.&lt;/p&gt;

&lt;p&gt;There was a point to all of this rambling, I&#039;m sure of it. Oh yeah, XHTML Apps in XULRunner... I think that we should try to do whatever we can to make it very easy for web developers to write applications and deploy them into XULRunner packages. Developing web applications has never been easier than it is in 2007. There are many wonderful JavaScript libraries like jQuery, Prototype, YUI, Dojo and so many more. These tools, combined with HTML and CSS provide a framework for developing wonderfully rich applications. Compared to some other popular development environments, often web applications can be developed with less effort while having a lot more fun in the process.&lt;/p&gt;

&lt;p&gt;I am very excited about one recent development that could be very interesting to the masses of web developers out there, though I am unlikely to reach many of said developers with this blog. The recent development that has me excited is called &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/3002&quot; title=&quot;Plain Old Webserver&quot;&gt;POW&lt;/a&gt; and it started as a Firefox extension by &lt;a href=&quot;http://davidkellogg.com/blog/&quot;&gt;David Kellogg&lt;/a&gt;.&lt;/p&gt;

&lt;em&gt;From the description of POW:&lt;/em&gt;
&lt;blockquote&gt;Turn the web on its head with the Plain Old Webserver (POW), which adds a server to your browser. Information and a tutorial for POW can be found at this wiki http://davidkellogg.com/wiki/Main_Page&lt;/blockquote&gt;

&lt;p&gt;POW is a very POWerful piece of software. It&#039;s a lot more than just a simple http server application. POW harnesses the power of the Mozilla platform in a way that I have never seen done before and it could be a basis for a lot of new and interesting applications. It should be possible to develop almost any small-scale web application using plain old html and javascript and  deploy the application in unique ways with the help of POW and XULRunner. POW really blurs the line between client and server, making it possible to things like replacing server technologies such as PHP with &quot;server-side javascript.&quot; I could go on and on about the possibilities but I&#039;m not a wonderful writer; I would probably be boring my audience and that is assuming anyone even reads my blog.  If you made it this far, I highly recommend that you take a look at POW and start thinking about the implications of this innovative approach to application development. If you love JavaScript as much as I do you should be getting excited about POW and the Mozilla platform in general. Thanks to so many incredible people in this community, It&#039;s a great time to be developing applications on Mozilla technology.&lt;/p&gt;</description>
 <comments>http://www.developerfriendly.com/node/12#comments</comments>
 <category domain="http://www.developerfriendly.com/taxonomy/term/17">JavaScript</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/1">mozpad</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/15">webapps</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/16">XUL</category>
 <category domain="http://www.developerfriendly.com/taxonomy/term/8">XULRunner</category>
 <pubDate>Mon, 25 Jun 2007 05:05:16 -0500</pubDate>
 <dc:creator>20after4</dc:creator>
 <guid isPermaLink="false">12 at http://www.developerfriendly.com</guid>
</item>
</channel>
</rss>
