<?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>Napkee &#187; Tips</title>
	<atom:link href="http://www.napkee.com/blog/categories/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.napkee.com/blog</link>
	<description>make your mockups come alive</description>
	<lastBuildDate>Fri, 12 Mar 2010 16:01:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Release: catching up with Mockups</title>
		<link>http://www.napkee.com/blog/2010/01/release-catching-up-with-mockups/</link>
		<comments>http://www.napkee.com/blog/2010/01/release-catching-up-with-mockups/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 20:09:06 +0000</pubDate>
		<dc:creator>Enrico</dc:creator>
				<category><![CDATA[Release announcements]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.napkee.com/blog/?p=232</guid>
		<description><![CDATA[Hello everybody!
Long time no see, uh? I&#8217;m sorry for that but December was quite a month: vacations, I had to do some freelancing work to fund a bit Napkee (a post will follow in a few days) and more importantly my Mac fell on the floor and broke in a few pieces while I was [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everybody!<br />
Long time no see, uh? I&#8217;m sorry for that but December was quite a month: vacations, I had to do some freelancing work to fund a bit Napkee (a post will follow in a few days) and more importantly my Mac fell on the floor and broke in a few pieces while I was traveling and that made me lose some days of work (yeah, I know, but I didn&#8217;t have my external backup with me <img src='http://www.napkee.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  ).</p>
<p>I know, there are no excuses to skip releases but I hope you&#8217;ll forgive me&#8230; pretty please!! <img src='http://www.napkee.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>What&#8217;s included in this release?</p>
<h4>Improved tabs</h4>
<p>Now you can see better which tab is selected and which ones are in the background <img src='http://www.napkee.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<img src="http://www.napkee.com/blog/wp-content/uploads/2010/01/Screen-shot-2010-01-05-at-7.25.56-PM.png" alt="Better tabs" title="Better tabs" width="343" height="187" class="alignnone size-full wp-image-234" /></p>
<h4>Disabled text</h4>
<p>On Balsamiq Mockups you can disable portions of text by using the <i>-disabled text-</i> notation.<br />
I tried to get the most out of it on Napkee:<br />
<img src="http://www.napkee.com/blog/wp-content/uploads/2010/01/Screen-shot-2010-01-04-at-12.20.35-PM.png" alt="Disabled text" title="Disabled text" width="441" height="490" class="alignnone size-full wp-image-236" /><br />
There are some limitations though: you cannot partially disable inputs in HTML. Napkee will disable the whole component if you start and finish with a &#8211; or simply ignore the disabled part in case of a partially disabled control.</p>
<h4>Canvas border and style</h4>
<p>Like in Mockups, also Napkee now supports the new borders for the canvas component.<br />
<img src="http://www.napkee.com/blog/wp-content/uploads/2010/01/Screen-shot-2010-01-05-at-8.12.25-PM.png" alt="Canvas border" title="Canvas border" width="238" height="193" class="alignnone size-full wp-image-239" /></p>
<h4>Init code for new interactions!</h4>
<p>Napkee, thanks to <a href="http://www.napkee.com/blog/2009/10/custom-properties/" target="_blank">Custom IDs and Data</a>, already supports some level of interactivity in the same mockup.<br />
You can now write &#8220;init&#8221; Javascript code that is executed at the page load (and not at the click of an element).<br />
Let&#8217;s make an example! </p>
<p><b>Scenario</b>: I want to show an error message only when a button has been clicked and it should look like this<br />
<img src="http://www.napkee.com/blog/wp-content/uploads/2010/01/Screen-shot-2010-01-05-at-8.21.25-PM.png" alt="Mockup with error" title="Mockup with error" width="387" height="366" class="alignnone size-full wp-image-241" /></p>
<p>I right click on the red canvas, I choose <i>Custom properties</i> and I write this</p>
<p><img src="http://www.napkee.com/blog/wp-content/uploads/2010/01/Screen-shot-2010-01-05-at-8.24.51-PM.png" alt="errorMsg" title="errorMsg" width="506" height="197" class="alignnone size-full wp-image-243" /></p>
<p>this will hide the error message as soon as the page is opened.<br />
Now, I right click on the <i>Sorry&#8230;</i> button and I write<br />
<img src="http://www.napkee.com/blog/wp-content/uploads/2010/01/Screen-shot-2010-01-05-at-8.26.52-PM.png" alt="Close error message" title="Close error message" width="515" height="210" class="alignnone size-full wp-image-245" /></p>
<p>The last step is to right click on <i>Do something really terrible</i> and insert this custom data</p>
<p><img src="http://www.napkee.com/blog/wp-content/uploads/2010/01/Screen-shot-2010-01-05-at-8.29.28-PM.png" alt="Show errorMsg" title="Show errorMsg" width="510" height="192" class="alignnone size-full wp-image-247" /></p>
<p>We are set! You can see the <a href="http://www.napkee.com/blog/demo/errorMsg">result here</a> and download the <a href="http://www.napkee.com/blog/files/error.bmml">original BMML file here</a>.</p>
<p>Please keep coming with problems, questions and feature requests, I&#8217;m here to hear you all!</p>
<h4>How can I update?</h4>
<p>You have two ways to update Napkee:</p>
<ul>
<li>from the application itself, click on<em> Check for updates</em></li>
<li>online, from <a href="http://www.napkee.com/napkee/download/">this page</a></li>
</ul>
<p>Talk to you soon, I have an announcement to make!<br />
Ciao, Enrico</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkee.com/blog/2010/01/release-catching-up-with-mockups/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom IDs and Data</title>
		<link>http://www.napkee.com/blog/2009/10/custom-properties/</link>
		<comments>http://www.napkee.com/blog/2009/10/custom-properties/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 16:57:08 +0000</pubDate>
		<dc:creator>Enrico</dc:creator>
				<category><![CDATA[Release announcements]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.napkee.com/blog/?p=180</guid>
		<description><![CDATA[Hi everybody!
What a great week the last one: I went to Prague to WebExpo, met Peldi for the first time (yay!) and sat next to him to have a parallel development session&#8230; and now you all get to discover what that was about!
Today&#8217;s release brings a whole new level of interactivity to the generated prototypes [...]]]></description>
			<content:encoded><![CDATA[<p>Hi everybody!<br />
What a great week the last one: I went to Prague to WebExpo, met Peldi for the first time (yay!) and sat next to him to have a parallel development session&#8230; and now you all get to discover what that was about!</p>
<p>Today&#8217;s <a href="http://www.napkee.com/download">release</a> brings a whole new level of interactivity to the generated prototypes and that&#8217;s possible because of the <a href="http://www.balsamiq.com/blog/2009/10/21/weekly-release-custom-ids-and-bug-fixes/">latest release of Balsamiq Mockups</a> which includes a whole new &#8220;Custom Properties&#8221; feature.</p>
<p>If you right click on a component in Balsamiq Mockups now you have a <b>Custom Properties</b> menu</p>
<p><img src="http://www.balsamiq.com/blog/wp-content/uploads/2009/10/custompropertiesmenu.png" alt="Custom properties menu" /></p>
<p>that opens this dialog</p>
<p><img src="http://www.balsamiq.com/blog/wp-content/uploads/2009/10/custompropertiesdialog.png" alt="Custom properties dialog" /></p>
<p>Now you have a way to specify the IDs of your components and that will be reflected in the exported code.</p>
<p>What about <b>custom control data</b>? I have a video for you to show you what you can do with it:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/RLe8F4wCOw0&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/RLe8F4wCOw0&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Simple, isn&#8217;t it?<br />
For now the available actions are:</p>
<ul>
<li>hide: to hide a component</li>
<li>show: to show a hidden component</li>
<li>toggle: to toggle the visibility of a component</li>
<li>js: to write Javascript code </li>
</ul>
<p>To use these actions you just have to write XML-like code in the &#8220;custom control data&#8221; textarea of Balsamiq Mockups.<br />
Like in the video, if you have a canvas with ID <b>orangeBox</b>, you can set up a button to hide it writing this code</p>
<p>&lt;hide&gt;orangeBox&lt;/hide&gt;</p>
<p>You can download the <a href="http://www.napkee.com/bmmls/interactions.bmml">BMML file</a> and see the <a href="http://www.napkee.com/blog/demo/customsnee_export_web/interactions.html">exported file here</a> to have an example to start from.</p>
<p>And stay tuned, I&#8217;m planning to add more &#8220;actions&#8221; to the list!<br />
The next release will be Flex-oriented since I still have to come up with a solution for the shapes in there and then I have to apply the actions in there as well. In the meanwhile I&#8217;m developing the ASP.NET exporter: if you are interested in trying it in advance, <a href="mailto:enrico@napkee.com">write me an email</a>!</p>
<h4>How can I update?</h4>
<p>You have two ways to update Napkee:</p>
<ul>
<li>from the application itself, click on<em> Check for updates</em></li>
<li>online, from <a href="http://www.napkee.com/napkee/download/">this page</a></li>
</ul>
<p>Talk to you soon!<br />
Ciao, Enrico</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkee.com/blog/2009/10/custom-properties/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding more interactivity to your Napkee web exports</title>
		<link>http://www.napkee.com/blog/2009/08/adding-more-interactivity-to-your-napkee-web-exports/</link>
		<comments>http://www.napkee.com/blog/2009/08/adding-more-interactivity-to-your-napkee-web-exports/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 10:45:44 +0000</pubDate>
		<dc:creator>Enrico</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.napkee.com/blog/?p=103</guid>
		<description><![CDATA[Hello everybody!
With Napkee 1.2 I started to introduce some &#8220;invisible&#8221; features that will make your web exports more interactive.
Today I will show you how to pass parameters from one mockup to the other!
Preparing the files on Balsamiq Mockups
I created two files, a submit form with a text field and a button

and a welcome screen

and saved [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everybody!<br />
With <a href="http://www.napkee.com/blog/napkee-1-2" target="_blank">Napkee 1.2</a> I started to introduce some &#8220;invisible&#8221; features that will make your web exports more interactive.</p>
<p>Today I will show you how to pass parameters from one mockup to the other!</p>
<h4>Preparing the files on Balsamiq Mockups</h4>
<p>I created two files, a submit form with a text field and a button</p>
<p><img src="http://www.napkee.com/blog/wp-content/uploads/2009/08/submitForm-300x206.png" alt="Submit Form" title="Submit Form" width="300" height="206" class="alignnone size-medium wp-image-115" /></p>
<p>and a welcome screen</p>
<p><img src="http://www.napkee.com/blog/wp-content/uploads/2009/08/welcomeScreen-300x189.png" alt="Welcome Screen" title="Welcome Screen" width="300" height="189" class="alignnone size-medium wp-image-116" /></p>
<p>and saved them as <b>submitForm.bmml</b> and <b>welcome.bmml</b>.</p>
<p>The first mockup is linked together with the welcome screen through the &#8220;Submit&#8221; button. Please notice the use of <b>{username}</b> on the welcome screen: that is a placeholder that will be substituted by what the user will input in the form.</p>
<h4>Exporting with Napkee</h4>
<p>Create a new project in Napkee, import the Balsamiq Mockups and click on &#8220;Export&#8221;. Yes, it&#8217;s that easy <img src='http://www.napkee.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h4>Overview of the exported files</h4>
<p>This is the typical exported project structure for the web project</p>
<p><img src="http://www.napkee.com/blog/wp-content/uploads/2009/08/exported_folder.png" alt="Exported folder" title="Exported folder" width="190" height="143" class="alignnone size-full wp-image-125" /></p>
<p>Open the two HTML files with your favorite text editor &#8211; I personally use <a href="http://macromates.com/" target="_blank">TextMate</a> on my mac.<br />
You can see in there some common areas: the css, the javascript code and then HTML at the end of the file. We will work with javascript, so in the area that is defined by</p>
<pre lang="xml">&lt;script type="text/javascript" charset="utf-8"&gt;</pre>
<p>Let&#8217;s move to the real hack.</p>
<h4>Writing a bit of jQuery code</h4>
<p>What we need to do is to pass what the user writes on the text input of the submit form</p>
<pre lang="xml">
<input id="nap2" type="text" value=""
  class="napkeeRelativeComponent napkeeTextinput" /></pre>
<p>to the placeholder of the welcome screen</p>
<pre lang="xml"><span id="nap5" class="napkeeRelativeComponent napkeeLabel">
    {username}
</span></pre>
<p>On the file <b>submitForm.html</b> change the javascript line</p>
<pre lang="javascript">showMockup('welcome.html'});</pre>
<p>to</p>
<pre lang="javascript">showMockup('welcome.html',{username: "nap2"});</pre>
<p>this will tell to the browser to pass the value written on the field with ID <i>nap2</i> to the page <i>welcome.html</i>.</p>
<p>On the file <b>welcome.html</b> write the new <i>applyValue</i> line inside the existing jQuery block</p>
<pre lang="javascript">$(document).ready(function(){
      applyValue("nap5","username");</pre>
<p>this tells the browser to change the placeholder <b>{username}</b> inside the element with ID <i>nap5</i> to the value passed from the submit form.</p>
<p>See it live here: <a href="http://www.napkee.com/blog/demo/parametersnee_export_web/submitForm.html" target="_blank">submitForm.html</a></p>
<h4>Resources</h4>
<p>You can download the BMML files, the Napkee project and the two exports (original + &#8220;hacked&#8221; one) from <a href="http://www.napkee.com/blog/files/parameters.zip">here</a>.</p>
<p>Happy hacking! <img src='http://www.napkee.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkee.com/blog/2009/08/adding-more-interactivity-to-your-napkee-web-exports/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
