<?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>cyprich.com &#187; Programming</title>
	<atom:link href="http://www.cyprich.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyprich.com</link>
	<description>Occasionally Relevant Insights from a Software Builder</description>
	<lastBuildDate>Wed, 25 Jan 2012 20:36:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to Update .NET Windows Controls at Runtime</title>
		<link>http://www.cyprich.com/2011/08/17/how-to-update-net-windows-controls-at-runtime/</link>
		<comments>http://www.cyprich.com/2011/08/17/how-to-update-net-windows-controls-at-runtime/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 18:00:00 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[refresh]]></category>
		<category><![CDATA[toolstripstatuslabel]]></category>
		<category><![CDATA[windows form controls]]></category>

		<guid isPermaLink="false">http://www.cyprich.com/2011/08/17/how-to-update-net-windows-controls-at-runtime/</guid>
		<description><![CDATA[If you change the value of a control on Windows .NET form during runtime, it may not be updated with the changes. The following code should change the Text property of ToolStripStatusLabel, but it doesn&#8217;t work while its processing in the middle of its function. When its the last command in the function, it will [...]]]></description>
			<content:encoded><![CDATA[<p>If you change the value of a control on Windows .NET form during runtime, it may not be updated with the changes. The following code should change the Text property of ToolStripStatusLabel, but it doesn&#8217;t work while its processing in the middle of its function. When its the last command in the function, it will change the label.&quot;</p>
<p> <table align="right">
<tr>
<td>
<script type="text/javascript"><!--
google_ad_client = "pub-2737139081127841";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2006-12-05: www.cyprich.com
google_ad_channel = "2715439300";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
<pre>label_Folder.Text = &quot;Converting documents to PDF.&quot;;</pre>
<p>If additional code follows the label_Folder statement, it may not update the Text property. You can force the property to update with the Refresh method:</p>
<pre>label_Folder.Text = &quot;Converting documents to PDF.&quot;;
label_Folder.Refresh ();</pre>
<p>The label will then be updated with the new content. If your using a ToolStripStatusLabel, you don&#8217;t have the option of using Refresh this way, i.e.</p>
<pre>toolStripStatusLabel_ProcessingStatus.Text = &quot;Status: 12 of 19 documents processed.&quot;;
toolStripStatusLabel_ProcessingStatus.Refresh ();</pre>
<p>Instead, use this.Refresh () to force an update: </p>
<pre>toolStripStatusLabel_ProcessingStatus.Text = &quot;Status: 12 of 19 documents processed.&quot;;
this.Refresh ();</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2011/08/17/how-to-update-net-windows-controls-at-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello World Example in iText</title>
		<link>http://www.cyprich.com/2011/08/16/hello-world-example-in-itext/</link>
		<comments>http://www.cyprich.com/2011/08/16/hello-world-example-in-itext/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 18:00:00 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[iText]]></category>
		<category><![CDATA[iText in Action]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.cyprich.com/2011/08/16/hello-world-example-in-itext/</guid>
		<description><![CDATA[iText is a .NET library for creating and manipulating PDF’s. It was originally written in Java but it was also ported to .NET. The book, “iText in Action”, has examples in Java only which will only be useful if a .NET developer knows this language.&#160; C# examples can be found at iText.NET site. The code [...]]]></description>
			<content:encoded><![CDATA[<p>iText is a .NET library for creating and manipulating PDF’s. It was originally written in Java but it was also ported to .NET. The book, “iText in Action”, has examples in Java only which will only be useful if a .NET developer knows this language.&#160; C# examples can be found at <a href="http://www.ujihara.jp/iTextdotNET/en/examples.html" target="_blank">iText.NET</a> site. The code needs to be slightly modified for it to compile with Visual Studio 2010.</p>
<p> <table align="right">
<tr>
<td>
<script type="text/javascript"><!--
google_ad_client = "pub-2737139081127841";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2006-12-05: www.cyprich.com
google_ad_channel = "2715439300";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
<p>The first thing that need to change is the library references. It uses a Java style code which may have been used in an older version of iText for .NET.</p>
<pre>using com.lowagie.text;
using com.lowagie.text.pdf;</pre>
<p>should be written as:</p>
<pre>using iTextSharp.text;
using iTextSharp.text.pdf;</pre>
<p>If you cut and paste the code from the examples to VS, you will see multiple errors. Change getInstance to GetInstance, open to Open, add to Add, close to Close. If your not sure about the function being used, delete it (include the period), type a period and the available functions will be listed.</p>
<p>The code will then compile correction in VS 2010. I recommend purchasing iText in Action because it will save you time in learning how to use iText. A knowledge of Java is beneficial, but not necessary to port the examples to .NET.</p>
<p>The following is a simple example of using iText with C#.</p>
<p>&#160;</p>
<table cellpadding="10" align="left">
<tbody>
<tr>
<td>
<iframe src="http://rcm.amazon.com/e/cm?t=guardiansof0e-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=1935182617&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=FFFFFF&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
      </td>
</tr>
</tbody>
</table>
<pre>
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

using iTextSharp.text;
using iTextSharp.text.pdf;

namespace Chap0101
{
  class Program
  {
    static void Main (string [] args)
    {
      Console.WriteLine ("Chapter 1 example 1: Hello World");

      // step 1: creation of a document-object
      Document document = new Document ();

      // step 2:
      // we create a writer that listens to the document
      // and directs a PDF-stream to a file 

      PdfWriter.GetInstance (document, new FileStream (&quot;Chap0101.pdf&quot;, FileMode.Create));

      // step 3: we open the document
      document.Open ();

      // step 4: we add a paragraph to the document
      document.Add (new Paragraph (&quot;Hello World&quot;));

      // step 5: we close the document
      document.Close ();
    }
  }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2011/08/16/hello-world-example-in-itext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 Important Tools for Developing in JavaScript</title>
		<link>http://www.cyprich.com/2011/08/09/3-important-tools-for-developing-in-javascript/</link>
		<comments>http://www.cyprich.com/2011/08/09/3-important-tools-for-developing-in-javascript/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 18:00:00 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jslint]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[lint]]></category>
		<category><![CDATA[validator]]></category>

		<guid isPermaLink="false">http://www.cyprich.com/2011/08/09/3-important-tools-for-developing-in-javascript/</guid>
		<description><![CDATA[JavaScript has become a language that every web developer must be deeply familiar with to build web applications, and it will even be heavily used in creating client applications for the upcoming Windows 8 operating system from Microsoft. The following sites will help you produce better, error-free JavaScript which is important if you want to [...]]]></description>
			<content:encoded><![CDATA[<p>JavaScript has become a language that every web developer must be deeply familiar with to build web applications, and it will even be heavily used in creating client applications for the upcoming Windows 8 operating system from Microsoft. The following sites will help you produce better, error-free JavaScript which is important if you want to maintain customer confidence over your products.</p>
<p> <!--adsense-->
<ol>
<li>JSFIDDLE (<a title="http://jsfiddle.net/" href="http://jsfiddle.net/">http://jsfiddle.net/</a>)       <br />This site can be considered a sandbox for JavaScript. You can write code in HTML, CSS, and of course, JavaScript and run, test, and tidy up the code with automated tools.       </li>
<li>JSHINT (<a title="http://jshint.org/" href="http://jshint.org/">http://jshint.org/</a>)       <br />Debugging tool for JavaScript and enforcing coding conventions. More powerful that <a href="http://www.jslint.com/" target="_blank">JSLINT</a>.       </li>
<li>JSONLint (<a title="http://www.jslint.com/" href="http://www.jslint.com/">http://www.jslint.com/</a>)       <br />Specialized tool for validating JSON. </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2011/08/09/3-important-tools-for-developing-in-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Free JavaScript and jQuery Video Tutorials</title>
		<link>http://www.cyprich.com/2011/07/08/free-javascript-and-jquery-video-tutorials/</link>
		<comments>http://www.cyprich.com/2011/07/08/free-javascript-and-jquery-video-tutorials/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 17:07:06 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If your a web developer and don’t know JavaScript, you need to immediately learn it if you want to continue working in your field. If you don’t know jQuery, its a great idea to learn because it simplifies the use of JavaScript and can enhance your web sites to justify your six figure income. There [...]]]></description>
			<content:encoded><![CDATA[<p>If your a web developer and don’t know JavaScript, you need to immediately learn it if you want to continue working in your field. If you don’t know jQuery, its a great idea to learn because it simplifies the use of JavaScript and can enhance your web sites to justify your six figure income.</p>
<p> <!--adsense-->
<p>There are many good books on JavaScript and jQuery, but if your pressed for time and don’t feel like doing a lot of reading, you can watch a series of videos that will get you up to speed. These learning videos were recently released by <a href="http://learn.appendto.com/" target="_blank">.appendTo</a> and will have you coding like a pro in no time. The videos range in length from 23 to 43 minutes and teach the basics and advanced concepts in JavaScript, to DOM manipulation and effects/animations in jQuery.</p>
<p>The videos loaded a little slow when I tried them, but this was because I was viewing them during the heaviest Internet traffic hours. Its a good idea to master JavaScript and jQuery since these will be important development tools for building Windows 8 applications. This knowledge will also make your web sites stand out from the competition. Learning new things broadens your mind and these videos will only take an evening to go through them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2011/07/08/free-javascript-and-jquery-video-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Fix: &#8220;The name &#8216;HttpUtility&#8217; does not exist in the current context&#8221;</title>
		<link>http://www.cyprich.com/2011/06/30/how-to-fix-the-name-httputility-does-not-exist-in-the-current-context/</link>
		<comments>http://www.cyprich.com/2011/06/30/how-to-fix-the-name-httputility-does-not-exist-in-the-current-context/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 19:52:16 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The HttpUtility class is a part of System.Web in Visual Studio and should be available in .NET 4.0. If you include this library in your application and an error is being generated, check the properties of the project. In the Application tab, the Target framework should not be a Client Profile, but the full framework, [...]]]></description>
			<content:encoded><![CDATA[<p>The HttpUtility class is a part of System.Web in Visual Studio and should be available in .NET 4.0. If you include this library in your application and an error is being generated, check the properties of the project. In the Application tab, the Target framework should not be a Client Profile, but the full framework, i.e. .NET Framework 4 (see image below).</p>
<p> <!--adsense-->
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Setting Target Framework in project properties." border="0" alt="Setting Target Framework in project properties." src="http://www.cyprich.com/images/2011/HowtoFixThenameHttpUtilitydoesnotexistin_A1E1/image.png" width="397" height="172" /> </p>
<p>If this doesn’t fix the error, then add System.Web as a reference to your project (see image below).</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Adding System.Web to references." border="0" alt="Adding System.Web to references." src="http://www.cyprich.com/images/2011/HowtoFixThenameHttpUtilitydoesnotexistin_A1E1/image_3.png" width="231" height="144" /> </p>
</p>
<p>The error should be corrected after these changes are applied.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2011/06/30/how-to-fix-the-name-httputility-does-not-exist-in-the-current-context/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML 5 Support for Visual Studio 2010</title>
		<link>http://www.cyprich.com/2011/06/17/html-5-support-for-visual-studio-2010/</link>
		<comments>http://www.cyprich.com/2011/06/17/html-5-support-for-visual-studio-2010/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 20:12:26 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Mads Kristensen published his Web Standards Update for Visual Studio yesterday which gives it full HTML 5 support (see image below). The update only works with SP1 versions of Visual Studio (full version and express) and can be downloaded here. This update gives intellisense support for HTML 5 pages, CSS 3, and additions to JavaScript [...]]]></description>
			<content:encoded><![CDATA[<p>Mads Kristensen published his Web Standards Update for Visual Studio yesterday which gives it full HTML 5 support (see image below). The update only works with SP1 versions of Visual Studio (full version and express) and can be downloaded <a href="http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83" target="_blank">here</a>.</p>
<p><!--adsense--></p>
<p>This update gives intellisense support for HTML 5 pages, CSS 3, and additions to JavaScript (i.e. geolocation and DOM storage). The only problem is that when you create a new web page or form, it doesn’t give you the HTML 5 DOCTYPE and html settings.</p>
<p>This is what is created in a new web form:</p>
<p><span style="font-family: Courier New; font-size: x-small;">&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
</span><span style="font-family: Courier New; font-size: x-small;">&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;</span></p>
<p>and this is how is should be formatted for HTML 5:</p>
<p><span style="font-family: Courier New; font-size: x-small;">&lt;!DOCTYPE html&gt;<br />
</span><span style="font-family: Courier New; font-size: x-small;">&lt;html&gt;</span></p>
<p>This isn’t a big deal but hopefully future versions will have this fixed.</p>
<p>HTML 5 is important to learn because the web is moving towards it and it will be heavily used in Microsoft’s new Windows 8 operating system. Microsoft recently showed applications for Windows 8 written entirely in HTML 5 and JavaScript.</p>
<p><img style="display: inline; border-width: 0px;" title="HTML 5 Validation in Visual Studio 2010." src="http://www.cyprich.com/images/2011/HTML5SupportforVisualStudio2010_ADA9/image.png" border="0" alt="HTML 5 Validation in Visual Studio 2010." width="500" height="209" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2011/06/17/html-5-support-for-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validating ASP.NET CheckBox Controls</title>
		<link>http://www.cyprich.com/2011/05/26/validating-asp-net-checkbox-controls/</link>
		<comments>http://www.cyprich.com/2011/05/26/validating-asp-net-checkbox-controls/#comments</comments>
		<pubDate>Thu, 26 May 2011 21:23:14 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Validation controls in ASP.NET make it very easy to check data in forms if any information has been filled or if it meets certain criteria. It saves a great deal of time in hand coding JavaScript validation. Unfortunately, validation controls don’t work with the CheckBox or CheckBoxList controls. Your form may need to determine if [...]]]></description>
			<content:encoded><![CDATA[<p>Validation controls in ASP.NET make it very easy to check data in forms if any information has been filled or if it meets certain criteria. It saves a great deal of time in hand coding JavaScript validation. Unfortunately, validation controls don’t work with the CheckBox or CheckBoxList controls. Your form may need to determine if a checkbox has been checked, or if a choice was made among a group of related checkboxes.</p>
<p><!--adsense--></p>
<p>I found many solutions from searching on the Internet, but most of them didn’t work very well, if at all, and very few were designed for use with an asp:CheckBox. Many of the solutions used JavaScript or the JQuery framework. If I was using standard HTML controls (i.e. PHP development) I would use JavaScript to validate the controls.</p>
<p>After much trial and mostly error, I decided to find my own solution for validating if at least one checkbox was selected in a group of controls. I used C# code to determine if any one control was checked, followed by code to redirect the page to an anchor (i.e. &lt;a name=”checkbox_controls”&gt;Required&lt;/a&gt;) on the current form. This code is placed in the form submission method (i.e. submitButton_Click) and placed before page validation (Page.IsValid), as in the following example</p>
<p><span style="font-family: Courier New; font-size: x-small;">bool bIsValidChecked = CheckBox_Pickup_Option1.Checked || CheckBox_Pickup_Option2.Checked;</span></p>
<p><span style="font-family: Courier New; font-size: x-small;">if (!bIsValidChecked )<br />
Response.Write (&#8220;&lt;script type=\&#8221;text/ecmascript\&#8221;&gt;window.location.href = &#8216;#checkbox_controls&#8217;;&lt;/script&gt;&#8221;); </span></p>
<p><span style="font-family: Courier New; font-size: x-small;">// Set order time and session variables from the order form. </span></p>
<p><span style="font-family: Courier New; font-size: x-small;">if (Page.IsValid &amp; bIsValidChecked )<br />
{</span></p>
<p><span style="font-size: x-small;"> </span><span style="font-family: Courier New;"> // <em>form processing code</em></span></p>
<p><span style="font-family: Courier New; font-size: x-small;">}</span></p>
<p>This isn’t the best solution, but its one that works quickly. I need to develop a custom control for validating checkboxes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2011/05/26/validating-asp-net-checkbox-controls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Accordion for Closed Panels on Startup</title>
		<link>http://www.cyprich.com/2011/03/07/setting-accordion-for-closed-panels-on-startup/</link>
		<comments>http://www.cyprich.com/2011/03/07/setting-accordion-for-closed-panels-on-startup/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 00:04:14 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The Accordion in the ASP.NET AJAX Control Toolkit is a very useful tool which creates collapsible panels that open like an accordion when you click on the header. This is a good way to put content on a web page without taking up a lot of space on the page. The problem with this control [...]]]></description>
			<content:encoded><![CDATA[<p>The Accordion in the ASP.NET AJAX Control Toolkit is a very useful tool which creates collapsible panels that open like an accordion when you click on the header. This is a good way to put content on a web page without taking up a lot of space on the page.</p>
<p><!--adsense--></p>
<p>The problem with this control is that the first panel is always open. This doesn’t matter if you have multiple panels in the control, but if you just have one panel it doesn’t work well. With a single panel, it should be initially closed until you click on its header.</p>
<p>You can get the Accordion to default as completely closed by setting the SelectedIndex property to –1. The default setting is 0 which opens the first panel when the page is loaded. When you set it to –1, all of the panels will be closed until you click on its header. This setting makes it ideal for single panel use of this web control.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2011/03/07/setting-accordion-for-closed-panels-on-startup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a url Field to jos_content in Joomla</title>
		<link>http://www.cyprich.com/2010/10/29/add-a-url-field-to-jos_content-in-joomla/</link>
		<comments>http://www.cyprich.com/2010/10/29/add-a-url-field-to-jos_content-in-joomla/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 01:42:16 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[A useful feature for Joomla would be a way to store a URL for an article that only links to another site. You would have to manually create the link within a Joomla article which involves quite a bit of steps to do. I would rather create the title, add the URL, write a brief [...]]]></description>
			<content:encoded><![CDATA[<p>A useful feature for Joomla would be a way to store a URL for an article that only links to another site. You would have to manually create the link within a Joomla article which involves quite a bit of steps to do. I would rather create the title, add the URL, write a brief description of the site, and post the article to my web site.</p>
<p> <!--adsense-->
<p>I was looking at creating a custom component to do this, but while looking at the jos_content table, which contains the articles in Joomla, I noticed a <strong>urls</strong> field. None of my sites used that field, so this would be a good candidate to hold an article’s URL. The URL text box will look the following:</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="URL Field in Joomla Article" border="0" alt="URL Field in Joomla Article" src="http://www.cyprich.com/images/2010/AddaurlFieldtojos_contentinJoomla_FCF9/image.png" width="327" height="212" /> </p>
<p>If you enter a URL here, it will be saved and can be used to build a link to the page content.</p>
<p><strong>How To Add a urls Field</strong></p>
<p>Adding a urls field to a Joomla article is not an easy task for a novice webmaster. A good free tool for editing PHP content is <a href="http://www.eclipse.org/" target="_blank">Eclipse</a>. Start your editor, and do the following procedure:</p>
<ol>
<li>Open admin.content.html.php in the administrator/components/com_content/ folder. </li>
<li>Find the _displayArticleDetails function. </li>
<li>Add the following code at the end of the function before the &lt;/table&gt; tag:
<p><font size="2" face="Courier New">&lt;tr&gt;        <br />&#160; &lt;td valign=&quot;top&quot; align=&quot;right&quot;&gt;         <br />&#160;&#160;&#160; URL:         <br />&#160; &lt;/td&gt;         <br />&#160; &lt;td&gt;         <br />&#160;&#160;&#160; &lt;input class=&quot;text_area&quot; type=&quot;text&quot; name=&quot;urls&quot; id=&quot;urls&quot; size=&quot;40&quot; maxlength=&quot;254&quot; value=&quot;&lt;?php echo $row-&gt;urls; ?&gt;&quot; /&gt;        <br />&#160; &lt;/td&gt;        <br />&lt;/tr&gt; </font></li>
</ol>
<p> A URL field will now be displayed when you are editing an article. Anything you enter here will be saved in your Joomla database. Part 2 will show you how to use the URL that was saved with the article.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2010/10/29/add-a-url-field-to-jos_content-in-joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Video Player Selection with iframe Embeds</title>
		<link>http://www.cyprich.com/2010/10/29/dynamic-video-player-selection-with-iframe-embeds/</link>
		<comments>http://www.cyprich.com/2010/10/29/dynamic-video-player-selection-with-iframe-embeds/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 20:05:09 +0000</pubDate>
		<dc:creator>Johan Cyprich</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Its a real challenge providing a video on your web site that can be viewed on any device accessing it, i.e. desktop computer, smart phone, PDA, or tablet. HTML5 is gaining ground against Flash, but not all devices will support this format and may only have one type of video player installed. A computer that [...]]]></description>
			<content:encoded><![CDATA[<p>Its a real challenge providing a video on your web site that can be viewed on any device accessing it, i.e. desktop computer, smart phone, PDA, or tablet. HTML5 is gaining ground against Flash, but not all devices will support this format and may only have one type of video player installed. A computer that does not have the correct version of Flash will not be able to play certain Flash videos.</p>
<p> <!--adsense-->
<p>The solution to make videos cross platform is iframe embedding. This will allow a device to choose the right player for a video embedded on a web site.</p>
<p><strong>iframe Embed on YouTube </strong></p>
<p>A video can be embedded in YouTube with the following code:</p>
<p><font face="Courier New">&lt;iframe class=&quot;youtube-player&quot; type=&quot;text/html&quot; width=&quot;640&quot; height=&quot;385&quot; </font><font face="Courier New">     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; src=&quot;<strong><font color="#ff0000">http://www.youtube.com/watch?v=bu06YnJlmiQ?fs=1&amp;amp;h1=en_US</font></strong>&quot; frameborder=&quot;0&gt;       <br />&lt;/iframe&gt;http://www.youtube.com/v/bu06YnJlmiQ?fs=1&amp;amp;hl=en_US</font></p>
<p>The <font color="#ff0000">URL</font> in red is the URL of the video on YouTube. You need to include <strong><font color="#ff0000">?fs=1&amp;amp;hl=en_US</font></strong> after the video URL otherwise the HTML page will be embedded in the page as opposed to just the video.</p>
<p>The following is an example of iframe embedding.</p>
<p><iframe class="youtube-player" height="385" src="http://www.youtube.com/v/bu06YnJlmiQ?fs=1&amp;hl=en_US" frameborder="0" width="640" type="text/html"> </iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyprich.com/2010/10/29/dynamic-video-player-selection-with-iframe-embeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

