<?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>kristianfrandsen.com &#187; code</title>
	<atom:link href="http://kristianfrandsen.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://kristianfrandsen.com</link>
	<description>En nørds hverdag</description>
	<lastBuildDate>Thu, 22 Sep 2011 11:11:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JavaScript Picture Slider</title>
		<link>http://kristianfrandsen.com/2009/03/javascript-picture-slider/</link>
		<comments>http://kristianfrandsen.com/2009/03/javascript-picture-slider/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 15:15:30 +0000</pubDate>
		<dc:creator>Kristian Ellebæk Frandsen</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://kristianfrandsen.com/?p=252</guid>
		<description><![CDATA[Hello, I was coding this little Picture Slider in JavaScript for a colleague and thought: Why not just share it with everybody else? So here it is people&#8230; It is not advanced, it is not high-tech&#8230; but it is simple! &#60;html&#62; &#160; &#60;head&#62; &#60;title&#62;Picture Slider&#60;/title&#62; &#160; &#60;script type=&#34;text/javascript&#34;&#62; // Setup var imagePath = &#34;images/&#34;; // [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Hello,</p>
<p>I was coding this little Picture Slider in JavaScript for a colleague and thought: Why not just share it with everybody else?</p>
<p>So here it is people&#8230; It is not advanced, it is not high-tech&#8230; but it is simple!</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&lt;html&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&lt;head&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;title&gt;Picture Slider&lt;/title&gt;
</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&lt;script type=&quot;text/javascript&quot;&gt;
</div>
</li>
<li class="li1">
<div class="de1">// Setup
</div>
</li>
<li class="li1">
<div class="de1">var imagePath = &quot;images/&quot;; // Path to image-folder
</div>
</li>
<li class="li1">
<div class="de1">var images = new Array(&quot;image1.jpg&quot;,
</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;image2.jpg&quot;,
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;image3.jpg&quot;,
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;image4.jpg&quot;,
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;image5.jpg&quot;); // filenames of the images
</div>
</li>
<li class="li1">
<div class="de1">var slideInterval = 1.5; // amount of seconds before sliding forward
</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">// Variabels
</div>
</li>
<li class="li1">
<div class="de1">var curImage = 0;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">// Fucntions
</div>
</li>
<li class="li2">
<div class="de2">function startSlide() {
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; setTimeout(&quot;nextSlide()&quot;, slideInterval * 1000);
</div>
</li>
<li class="li1">
<div class="de1">}
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">function nextSlide() {
</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; var viewer = document.getElementById(&quot;imageViewer&quot;);
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; curImage = curImage + 1;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; if (images[curImage] == null)
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; curImage = 0;
</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; viewer.src = imagePath + images[curImage];
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; setTimeout(&quot;nextSlide()&quot;, slideInterval * 1000);
</div>
</li>
<li class="li1">
<div class="de1">}
</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">// Start the slider
</div>
</li>
<li class="li1">
<div class="de1">startSlide();
</div>
</li>
<li class="li1">
<div class="de1">&lt;/script&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;/head&gt;
</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&lt;body&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&lt;h1&gt;Picture Slider&lt;/h1&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;br /&gt;
</div>
</li>
<li class="li2">
<div class="de2">&lt;img id=&quot;imageViewer&quot; src=&quot;images/image1.jpg&quot;&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&lt;/body&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&lt;/html&gt;</div>
</li>
</ol>
</div>
<p>Just change the variables under the &#8220;setup&#8221; in the start of the JavaScript-code and change the src-parameter on the img-tag of the picture to show the first picture. Then the script will work.</p>
<p>Have fun !!</p>
<p>/KEF</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://kristianfrandsen.com/2009/03/javascript-picture-slider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom text boxes on a Request Form in a Dataport</title>
		<link>http://kristianfrandsen.com/2008/12/dynamics-nav-custom-text-boxes-on-a-request-form-in-a-dataport/</link>
		<comments>http://kristianfrandsen.com/2008/12/dynamics-nav-custom-text-boxes-on-a-request-form-in-a-dataport/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 21:35:36 +0000</pubDate>
		<dc:creator>Kristian Ellebæk Frandsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dataport]]></category>
		<category><![CDATA[dynamics nav]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[fields]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[request form]]></category>

		<guid isPermaLink="false">http://kristianfrandsen.com/?p=200</guid>
		<description><![CDATA[This article is in English because Microsoft Dynamics NAV (better known as Navision) is a world-wide product. Please excuse my English &#8211; it is not the best! In this article I will explain how you can put custom text boxes on the Request Form in a Dataport-object. As far as I know this solution works for [...]]]></description>
			<content:encoded><![CDATA[<p>This article is in English because Microsoft Dynamics NAV (better known as Navision) is a world-wide product. Please excuse my English &#8211; it is not the best!</p>
<p>In this article I will explain how you can put custom text boxes on the Request Form in a Dataport-object.<br />
As far as I know this solution works for Microsoft Dynamics NAV 5.0 SP1 and all earlier versions. I have not tested this on Dynamics NAV 2009, but my best guess is that this work-around works for the Classic Client in Dynamics NAV 2009 too.</p>
<p>The problem with the Request Form and custom text boxes is that when you put your custom text boxes on the Request Form, the normal text box for choosing what file to import/export will disapear.</p>
<p>To solve this problem you have to do the following steps:</p>
<ol>
<li>Create a new global variable - I will call the variable &#8220;VarFilename&#8221; in my example.</li>
<li>Insert a new text box (don&#8217;t forget a label for the text box) from the Toolbox.</li>
<li>Set the ID of the new text box to &#8217;1&#8242;.</li>
<li>Put the following code in the &#8220;OnAssistEdit()&#8221;-function of the new text box:<br />
<code>CurrDataport.FILENAME := VarFilename;</code></li>
</ol>
<p>Now run the Dataport and see that is works.</p>
<p>To follow NAV-guidelines remember to give the label, linked to the text box, the correct caption as if it was a standard Dataport, and remember to place the text box at the top of the Request Form.</p>
<p>Good luck with the coding! <img src='http://kristianfrandsen.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kristianfrandsen.com/2008/12/dynamics-nav-custom-text-boxes-on-a-request-form-in-a-dataport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

