<?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>devtrends.com &#187; Web Development</title>
	<atom:link href="http://www.devtrends.com/index.php/category/software-development/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devtrends.com</link>
	<description>developing trends in information technology</description>
	<lastBuildDate>Tue, 06 Sep 2011 19:27:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Limiting the output of a SharePoint field in a dataview to [x] words.</title>
		<link>http://www.devtrends.com/index.php/limiting-the-output-of-a-sharepoint-field-in-a-dataview-to-x-words/</link>
		<comments>http://www.devtrends.com/index.php/limiting-the-output-of-a-sharepoint-field-in-a-dataview-to-x-words/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 16:57:17 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=578</guid>
		<description><![CDATA[This solution was created by a guy named Marc, the XSL templates he created are just, well, freaking fantastic! View his blog entry here: Displaying the First N Words of...]]></description>
			<content:encoded><![CDATA[<p>This solution was created by a guy named Marc, the XSL templates he created are just, well, freaking fantastic! View his blog entry here: <a href="http://mdasblog.wordpress.com/2009/01/20/displaying-the-first-n-words-of-a-long-text-column-with-xsl/" target="_new">Displaying the First N Words of a Long Rich Text Column with XSL</a></p>
<p>I have been looking for a solution to cleanly limit the output of a SharePoint list field. Most of the time I find solutions that I piece together to make my desired outcome. However, with FirstNWords and the StripHTML templates that Marc shared, there was nothing left to be desired.</p>
<p>For my implementation of his solution: at the beginning of my row template I added the xsl:variable tag, effectively stripping the HTML from the @SRDetails field and placing into $BodyText. Then where I wanted to display the output, I added the xsl:call-template tag for FirstNWords with the appropriate xsl:with-param values. The actual template code was placed directly below the row template, with the only changes being:</p>
<p>1. StripHTML: replace the &lt; sign in the xsl:when to &amp;lt; .<br />
2. StripHTML: replace the other two signs (&lt; and &gt;) as Marc stated.<br />
3. FirstNWords: replace the &gt; signs in the first and second xsl:when to &amp;gt; .</p>
<p>Awesome solution&#8230;thanks Marc.</p>
<p>-Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/limiting-the-output-of-a-sharepoint-field-in-a-dataview-to-x-words/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Live Messenger on Web Page</title>
		<link>http://www.devtrends.com/index.php/windows-live-messenger-on-web-page/</link>
		<comments>http://www.devtrends.com/index.php/windows-live-messenger-on-web-page/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 04:30:03 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[chat box]]></category>
		<category><![CDATA[IM Control box]]></category>
		<category><![CDATA[Live Messenger]]></category>
		<category><![CDATA[Windows Live Messenger]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=434</guid>
		<description><![CDATA[About two years ago, Microsoft released a web control that allows web site designers to place a Windows Live chat box on a web page. Instead of being a chat...]]></description>
			<content:encoded><![CDATA[<p>About two years ago, Microsoft released a web control that allows web site designers to place a Windows Live chat box on a web page. Instead of being a chat application for you to sign into, this chat box allows your web site visitors to chat with you from your web site. Although not identical, you could think of this chat box as a &#8220;live help&#8221; button that utilizes your existing Windows Live Messenger account.</p>
<p>For those that desire privacy, the chat box does not provide your actual Windows Live Messenger account name, therefore the only way for users to ever chat with you is through the chat box.</p>
<p>Let&#8217;s get started with using the Messenger chat box!</p>
<ol>
<li>Assuming you have a Windows Live account, go to <a href="http://settings.messenger.live.com/applications/websettings.aspx" target="_blank">http://settings.messenger.live.com/applications/websettings.aspx</a>.</li>
<li>Under Web Settings &gt; Home, check the box &#8220;Allow anyone on the web to see my presence and send me messages&#8221; option. This is required for the chat box to work properly.</li>
<li>Under Web Settings &gt; Create HTML, configure how you want the chat box to look, format and styles.</li>
<li>Copy the HTML code at the bottom of the page and paste into your web page!</li>
</ol>
<p>That&#8217;s it!</p>
<p>-Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/windows-live-messenger-on-web-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Master Page error and the Erroneous &lt;SCRIPT /&gt; tag</title>
		<link>http://www.devtrends.com/index.php/master-page-error-and-the-erroneous-tag/</link>
		<comments>http://www.devtrends.com/index.php/master-page-error-and-the-erroneous-tag/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 17:43:59 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Master Page error]]></category>
		<category><![CDATA[SharePoint Designer 2007]]></category>
		<category><![CDATA[SPD]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=418</guid>
		<description><![CDATA[FrontPage auto-code strikes once again. This time under the different name of SharePoint Designer. Frustrating&#8230; Recently I have been doing a significant amount of development in Windows SharePoint Services and...]]></description>
			<content:encoded><![CDATA[<p>FrontPage auto-code strikes once again. This time under the different name of SharePoint Designer. Frustrating&#8230;</p>
<p>Recently I have been doing a significant amount of development in Windows SharePoint Services and I have once again hit a frustrating issue that has incurred long hours trying to resolve. If you remember my article about the {generate()} function and SharePoint Designer, it will come as no surprise that the issue with “Master Page error” relates to SharePoint Designer inserting code that is not necessary or accurate.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/master_page_error.jpg"><img class="alignnone size-medium wp-image-419" title="master_page_error" src="http://www.devtrends.com/wp-content/uploads/2009/10/master_page_error-300x53.jpg" alt="master_page_error" width="300" height="53" /></a></p>
<p><strong>&lt;SCRIPT /&gt;</strong></p>
<p>To fix the error in your page, search for the tag &lt;SCRIPT /&gt; and remove any tags that do not appear to belong. Click on the design view and the page should work again…</p>
<p>For more information on this issue, check out this MSDN forum post:</p>
<p><a href="http://social.msdn.microsoft.com/Forums/en/sharepointcustomization/thread/184a40da-01f0-44a0-a90b-0e719132eae0">http://social.msdn.microsoft.com/Forums/en/sharepointcustomization/thread/184a40da-01f0-44a0-a90b-0e719132eae0</a></p>
<p> </p>
<p>-Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/master-page-error-and-the-erroneous-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Designer is FREE!</title>
		<link>http://www.devtrends.com/index.php/sharepoint-designer-is-free/</link>
		<comments>http://www.devtrends.com/index.php/sharepoint-designer-is-free/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 16:47:51 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[FREE]]></category>
		<category><![CDATA[SharePoint Designer 2007]]></category>
		<category><![CDATA[SPD]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=415</guid>
		<description><![CDATA[For me, SharePoint is a love and HATE relationship. The love comes from the feature rich environment that is SharePoint and the hate comes from the fact that development in...]]></description>
			<content:encoded><![CDATA[<p>For me, SharePoint is a love and HATE relationship. The love comes from the feature rich environment that is SharePoint and the hate comes from the fact that development in SharePoint is thoroughly frustrating. I am both excited and disappointed to find out today that SharePoint Designer 2007 is now a free product. I find this interesting, because, for those that suffered through the &#8220;beta&#8221; stages of SharePoint Services, we had to pay good money for SharePoint Designer 2007 ($300 if I remember right??) to work with a buggy application &#8211; custom List Forms with working attachments anyone?</p>
<p>Never-the-less, for those that are interested in utilizing SharePoint, go download Windows SharePoint Services (WSS) and the now FREE SharePoint Designer 2007 product &#8211; and you have a business worthy Intranet CMS application &#8211; all for free.</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=baa3ad86-bfc1-4bd4-9812-d9e710d44f42" target="_blank">Download SharePoint Designer 2007</a></p>
<p>-Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/sharepoint-designer-is-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>{$SharePointDesignerQuirk}</title>
		<link>http://www.devtrends.com/index.php/sharepointdesignerquirk/</link>
		<comments>http://www.devtrends.com/index.php/sharepointdesignerquirk/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 22:43:22 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[data bindings]]></category>
		<category><![CDATA[DropDownList]]></category>
		<category><![CDATA[generate_id()]]></category>
		<category><![CDATA[SPD]]></category>
		<category><![CDATA[xsl param]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=404</guid>
		<description><![CDATA[Personally, I have never been a fan of using GUI development tools for web design, especially Microsoft web development tools. FrontPage has never even been on my list for necessary...]]></description>
			<content:encoded><![CDATA[<p>Personally, I have never been a fan of using GUI development tools for web design, especially Microsoft web development tools. FrontPage has never even been on my list for necessary web development tools and I have never recommended it to anyone that wanted to design a web site. Unfortunately, SharePoint Designer is essentially FrontPage with new features added to compliment the Windows SharePoint Services (WSS) or Microsoft Office SharePoint Server (MOSS) functionality.</p>
<p>If you conform to the options given in SharePoint Designer, you will run into only a few minor issues. However, if you fight the rigor mortis that is SharePoint Designer, you will run into more frustrating issues. One that I had ran into a while back was the {generate_id()} function that is automatically added, at random times mind you, to an XHTML tag id property. Although the idea was to help (force?) less-experienced programmers use unique names in the id property, this “feature” is aggravating to experienced programmers. Even with confusingly complex applications, Microsoft develops for the supposed lowest common denominator, which in some cases seems to be a lab monkey.</p>
<p>Enough… enough… what is the solution?</p>
<p><strong>Solution &#8211; XSL Param</strong></p>
<p>As part of the &lt;xsl:template&gt; definition tags, create a new &lt;xsl:param&gt; tag that you will use as an empty parameter on the id properties that you wish SharePoint Designer to leave alone. As an example, you would add this tag immediately following a dvt row:</p>
<pre style="padding-left: 30px;">&lt;xsl:template name="dvt_1.rowedit"&gt;
&lt;xsl:param name="Pos" /&gt;
&lt;xsl:param name=" SharePointDesignerQuirk " /&gt;</pre>
<p>Now you may deploy this empty parameter throughout the xsl template as desired. An example shows a custom div tag with an id property:</p>
<pre style="padding-left: 30px;">&lt;div id="commentsDiv{$SharePointDesignerQuirk}"&gt;</pre>
<p><strong>Data Source Controls Solution &#8211; XSL Param</strong></p>
<p>The above trick works for Data Source Controls also, and you may need to use it if you the Data Source Control you inserted into your SharePoint Designer page is using the {generate_id()} function. Without forcing SharePoint Designer to stop “helping” those that are more intelligent than a lab monkey, you will notice that SharePoint fields, such as a DropDownList, will not show fields that you thought were associated with the SharePoint list.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/changedatabindings.jpg"><img class="alignnone size-medium wp-image-405" title="changedatabindings" src="http://www.devtrends.com/wp-content/uploads/2009/10/changedatabindings-300x183.jpg" alt="changedatabindings" width="300" height="183" /></a></p>
<p>Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/sharepointdesignerquirk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Printers Using VBScript on an Intranet Site</title>
		<link>http://www.devtrends.com/index.php/add-printers-using-vbscript-on-an-intranet-site/</link>
		<comments>http://www.devtrends.com/index.php/add-printers-using-vbscript-on-an-intranet-site/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 20:11:12 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WScript]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Windows Script]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=348</guid>
		<description><![CDATA[Recently I had been tasked to create an Intranet site that simplified the process of adding printers to workstations. In addition, the process had to be completely in the user’s...]]></description>
			<content:encoded><![CDATA[<p>Recently I had been tasked to create an Intranet site that simplified the process of adding printers to workstations. In addition, the process had to be completely in the user’s control, eliminating the need for IT to be involved with workstation printer drivers. If a user moved or a printer went down, the user would be responsible for adding a new network printer to his or her workstation. Below is a variation of the script I used&#8230;</p>
<p><strong>VBScript</strong></p>
<p>Adding VBScript to a web page is as easy as adding JavaScript; you will use the &lt;script&gt; tag with a different language type defined. The only additional requirement for getting VBScript to run properly is to ensure that your Intranet site is set as a Trusted Site in Internet Explorer &#8212; for obvious reasons this is required.</p>
<pre style="white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;">&lt;SCRIPT&gt;
&lt;!--
      Function addPrinter(mynum)
          Dim mypath, myname

          On Error Resume Next

          Select Case (mynum)
               Case "1"
                   mypath = <a href="file://\\PRINTSERVER\PRINTER1">\\PRINTSERVER\PRINTER1</a>
                   myname = "PRINTER1"
               Case "2"
                   mypath = <a href="file://\\PRINTSERVER\PRINTER2">\\PRINTSERVER\PRINTER2</a>
                   myname = "PRINTER2"
          End Select

          Dim WSHNet
          Set WSHNet = CreateObject("WScript.Network")
          WSHNet.AddWindowsPrinterConnection mypath

          strMbox = MsgBox("Would you like to make " &amp; myname &amp; " your default printer?",3,"Printer")
          If strMbox = 6 Then
              WSHNet.SetDefaultPrinter mypath
          Else
              'nothing to do...
          End If

          If Err &lt;&gt; 0 Then
                MsgBox "Please contact the IT HelpDesk."
                Err.Clear
                Exit Function
          End If

          MsgBox "The printer, " &amp; myname &amp; ", has been installed on your workstation!"

      End Function

//--&gt;
&lt;/SCRIPT&gt;</pre>
<p><strong>Broken Down</strong></p>
<p>For the people that are more than interested of just plagiarizing my code, I’ll explain the function in a little bit of detail. First, the function is called as you would call a JavaScript function, such as by using an onclick=”” method. Second, pass a variable to the function to define which printer should be installed.</p>
<p>In my case, I had drawn out simple floor plans of our facilities and placed printer icons in &lt;div&gt; tags throughout the map. When the user clicked on the icon, the VBScript function is initiated and the printer is installed. For those that are unfamiliar with the onclick method, you can apply it to many HTML objects, such as &lt;a href&gt; tag or &lt;img&gt; or &lt;div&gt;. If you apply onclick to a div statement, you will probably want to assign the style “cursor:hand;” to change the cursor to a hand pointer, letting the user know this is a clickable area.</p>
<p>The code uses a Windows Scripting namespace called WScript.Network. A defined method in WScript.Network, AddWindowsPrinterConnection, allows the scripter to easily add a networked printer to the workstation. In my script, the only variable passed to this method is the UNC path of the network printer. Shortly following the printer add method, the user is asked if he or she would like to make it the default printer. If true, then a defined method is WScript.Network, SetDefaultPrinter, is called with one variable passed to it, the UNC path to the network printer. On any type of error a generic message is display to contact the IT HelpDesk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/add-printers-using-vbscript-on-an-intranet-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Querystrings in a SharePoint DataFormWebPart</title>
		<link>http://www.devtrends.com/index.php/using-querystrings-in-a-sharepoint-dataformwebpart/</link>
		<comments>http://www.devtrends.com/index.php/using-querystrings-in-a-sharepoint-dataformwebpart/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 23:00:04 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Parameters]]></category>
		<category><![CDATA[XSL]]></category>
		<category><![CDATA[{$Param1}]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=345</guid>
		<description><![CDATA[Throughout my adventure of SharePoint development, there have been a few times when I needed to use a querystring variable in a DataForm WebPart that was not a part of...]]></description>
			<content:encoded><![CDATA[<p>Throughout my adventure of SharePoint development, there have been a few times when I needed to use a querystring variable in a DataForm WebPart that was not a part of the data being queried. An example is to use a DataForm Web Part as a means to create a link to another page – with the link containing querystring variables from the datasource used by the DataForm Web Part. If you are unfamiliar with using data fields in the XSL stylesheet in SharePoint page, you can output field values of the current record through {@fieldname}, such as {@ID} will be replaced with the ID value for that record.</p>
<p>In one situation I had two querystring variables that were used on one page, with neither querystring variable being contained within the dataset of the other querystring. Example, account_ID and ad_ID, two indirectly related querystrings that were only linkable through a traditional multi-level table join, such as Accounts &gt; Events &gt; Ads. So how would I output the unassociated querystring in the DataForm of the associated querystring – in other words, how do I use {@field} to output ad_ID when I am working in the Accounts table with querystring account_ID. Well, at first, I had a hard time figuring this out. Depending on the day, I am either thinking too big or too small; either way, the solution seems to always be in the middle.</p>
<p><strong>{$parameter}</strong></p>
<p>As one would add a parameter to filter the datasource results, add a parameter sorely for the purpose of outputting the value in the XSL stylesheet. Simple! Now you can output the querystring value in your XSL by using {$parameter_name}.</p>
<p>If you are unfamiliar with creating parameters, click on the little arrow to the right on the DataForm WebPart and choose “Parameters…”. The name you provide for the parameter will be the same name you use in the {$p..} variable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/using-querystrings-in-a-sharepoint-dataformwebpart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Sessions Not Working</title>
		<link>http://www.devtrends.com/index.php/php-sessions-not-working/</link>
		<comments>http://www.devtrends.com/index.php/php-sessions-not-working/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 03:58:22 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[sessions]]></category>
		<category><![CDATA[Temp]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=277</guid>
		<description><![CDATA[As a jack of all trades, I was doing some development work in PHP on one of my internal servers. As with most web sites, I needed to use sessions...]]></description>
			<content:encoded><![CDATA[<p>As a jack of all trades, I was doing some development work in PHP on one of my internal servers. As with most web sites, I needed to use sessions variables in the PHP script. However, when I attempted to create the session variable through code similar to below, the session variables were empty when I tried to work with them in the same page or another page.</p>
<pre style="padding-left: 30px;">&lt;?php
  session_start();
  $_SESSION['user'] = "aaron";
  echo $_SESSION['user'];
?&gt;</pre>
<p>I searched the web for an answer and got the standard realm of how to resolve PHP sessions issues, such as ensuring &#8220;session_start()&#8221; is used BEFORE any HTML output is produced &#8211; none of the solutions worked. After thinking about the process involved with a session object, I started to wonder where the PHP process kept the sessions on the server. Some research on the Internet pointed to a temp folder, and on Linux with Apache this would probably be the /tmp directory. Unfortunately, my server is a Windows Server with IIS.</p>
<p>So, as one might imagine, the configuration of temp file location is kept in the php.ini file &#8211; which by the way, must reside in the C:\[WINDOWS FOLDER]\ and all changes require an IIS restart.</p>
<p>There are two steps to repair: (a) analyze and modify the php.ini file; and (b) modify the permissions on the folder as configured in the php.ini.</p>
<p style="padding-left: 30px;">(a): In the php.ini file, locate the following configuration lines and replace with a folder of your choosing. In my situation the original location was the temp folder of the Administrator profile. Because I do not want to modify the permissions for that folder, I decided to create C:\Temp\php\session\ and C:\Temp\php\upload\. My php.ini configuration is similar to the following:</p>
<pre style="padding-left: 60px;">upload_tmp_dir="C:\Temp\php\upload"
session.save_path="C:\Temp\php\session"</pre>
<p style="padding-left: 30px;">(b): Create the new temp location as configured in the php.ini file. Modify the permissions and add IUSR_[name] with Write/Read/Execute. Although I would highly discourage you from doing so, in my case, since this is a test box I gave EVERYONE permission to the temp folder.</p>
<p>Restart IIS using the Services MMC or through the command prompt iisreset tool. PHP sessions should now work.</p>
<p>-Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/php-sessions-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URL Encoding Table</title>
		<link>http://www.devtrends.com/index.php/url-encoding-table/</link>
		<comments>http://www.devtrends.com/index.php/url-encoding-table/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 23:54:26 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[URL Encoding]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=257</guid>
		<description><![CDATA[Update: because I am frequently encoding or decoding strings, I have created a URL encode and decode script for use on my site. Anyone that has programmed in web technologies...]]></description>
			<content:encoded><![CDATA[<p>Update: because I am frequently encoding or decoding strings, I have created a <a href="http://www.devtrends.com/index.php/portfolio/useful-tools/url-encode-and-decode/">URL encode and decode</a> script for use on my site.</p>
<p>Anyone that has programmed in web technologies has used URL encoded characters at some point. For those are wondering, one of the purposes of URL encoding is to allow certain characters in a URL string that would otherwise be prohibited as anything other than their original purpose. An example would be =, which is typically used as part of the querystring structure &#8211; if you were to add this character to your querystring, not intending it as an equal sign defining another querystring variable, it would break your querystring statement intention. There are many other uses for URL encoding, and as you develop web technologies you will find yourself using them more often than not.</p>
<p>The digits following the % sign is a hexadecimal equivalent of the ASCII decimal number for that character. For an example, visit the <a href="http://www.cppreference.com/wiki/ascii" target="_blank">ACSII Chart located at cppreference.com</a>.</p>
<p>As a real example, I am using URL encoding in the Source= statement with SharePoint Services. For more information on source= with SharePoint, see my other <a href="http://www.devtrends.com/index.php/redirect-share…different-page/" target="_self">article</a>.</p>
<table style="border:1px dashed #999999;" border="0">
<tbody>
<tr>
<td>character</td>
<td>URL code</td>
<td>ASCII</td>
</tr>
<tr>
<td>space</td>
<td>%20</td>
<td>32</td>
</tr>
<tr>
<td>!</td>
<td>%21</td>
<td>33</td>
</tr>
<tr>
<td>&#8220;</td>
<td>%22</td>
<td>34</td>
</tr>
<tr>
<td>#</td>
<td>%23</td>
<td>35</td>
</tr>
<tr>
<td>$</td>
<td>%24</td>
<td>36</td>
</tr>
<tr>
<td>%</td>
<td>%25</td>
<td>37</td>
</tr>
<tr>
<td>&amp;</td>
<td>%26</td>
<td>38</td>
</tr>
<tr>
<td>&#8216;</td>
<td>%27</td>
<td>39</td>
</tr>
<tr>
<td>(</td>
<td>%28</td>
<td>40</td>
</tr>
<tr>
<td>)</td>
<td>%29</td>
<td>41</td>
</tr>
<tr>
<td>*</td>
<td>%2A</td>
<td>42</td>
</tr>
<tr>
<td>+</td>
<td>%2B</td>
<td>43</td>
</tr>
<tr>
<td>,</td>
<td>%2C</td>
<td>44</td>
</tr>
<tr>
<td>-</td>
<td>%2D</td>
<td>45</td>
</tr>
<tr>
<td>.</td>
<td>%2E</td>
<td>46</td>
</tr>
<tr>
<td>/</td>
<td>%2F</td>
<td>47</td>
</tr>
<tr>
<td>0</td>
<td>%30</td>
<td>48</td>
</tr>
<tr>
<td>1</td>
<td>%31</td>
<td>49</td>
</tr>
<tr>
<td>2</td>
<td>%32</td>
<td>50</td>
</tr>
<tr>
<td>3</td>
<td>%33</td>
<td>51</td>
</tr>
<tr>
<td>4</td>
<td>%34</td>
<td>52</td>
</tr>
<tr>
<td>5</td>
<td>%35</td>
<td>53</td>
</tr>
<tr>
<td>6</td>
<td>%36</td>
<td>54</td>
</tr>
<tr>
<td>7</td>
<td>%37</td>
<td>55</td>
</tr>
<tr>
<td>8</td>
<td>%38</td>
<td>56</td>
</tr>
<tr>
<td>9</td>
<td>%39</td>
<td>57</td>
</tr>
<tr>
<td>:</td>
<td>%3A</td>
<td>58</td>
</tr>
<tr>
<td>;</td>
<td>%3B</td>
<td>59</td>
</tr>
<tr>
<td>&lt;</td>
<td>%3C</td>
<td>60</td>
</tr>
<tr>
<td>=</td>
<td>%3D</td>
<td>61</td>
</tr>
<tr>
<td>&gt;</td>
<td>%3E</td>
<td>62</td>
</tr>
<tr>
<td>?</td>
<td>%3F</td>
<td>63</td>
</tr>
<tr>
<td>@</td>
<td>%40</td>
<td>64</td>
</tr>
<tr>
<td>A</td>
<td>%41</td>
<td>65</td>
</tr>
<tr>
<td>B</td>
<td>%42</td>
<td>66</td>
</tr>
<tr>
<td>C</td>
<td>%43</td>
<td>67</td>
</tr>
<tr>
<td>D</td>
<td>%44</td>
<td>68</td>
</tr>
<tr>
<td>E</td>
<td>%45</td>
<td>69</td>
</tr>
<tr>
<td>F</td>
<td>%46</td>
<td>70</td>
</tr>
<tr>
<td>G</td>
<td>%47</td>
<td>71</td>
</tr>
<tr>
<td>H</td>
<td>%48</td>
<td>72</td>
</tr>
<tr>
<td>I</td>
<td>%49</td>
<td>73</td>
</tr>
<tr>
<td>J</td>
<td>%4A</td>
<td>74</td>
</tr>
<tr>
<td>K</td>
<td>%4B</td>
<td>75</td>
</tr>
<tr>
<td>L</td>
<td>%4C</td>
<td>76</td>
</tr>
<tr>
<td>M</td>
<td>%4D</td>
<td>77</td>
</tr>
<tr>
<td>N</td>
<td>%4E</td>
<td>78</td>
</tr>
<tr>
<td>O</td>
<td>%4F</td>
<td>79</td>
</tr>
<tr>
<td>P</td>
<td>%50</td>
<td>80</td>
</tr>
<tr>
<td>Q</td>
<td>%51</td>
<td>81</td>
</tr>
<tr>
<td>R</td>
<td>%52</td>
<td>82</td>
</tr>
<tr>
<td>S</td>
<td>%53</td>
<td>83</td>
</tr>
<tr>
<td>T</td>
<td>%54</td>
<td>84</td>
</tr>
<tr>
<td>U</td>
<td>%55</td>
<td>85</td>
</tr>
<tr>
<td>V</td>
<td>%56</td>
<td>86</td>
</tr>
<tr>
<td>W</td>
<td>%57</td>
<td>87</td>
</tr>
<tr>
<td>X</td>
<td>%58</td>
<td>88</td>
</tr>
<tr>
<td>Y</td>
<td>%59</td>
<td>89</td>
</tr>
<tr>
<td>Z</td>
<td>%5A</td>
<td>90</td>
</tr>
<tr>
<td>[</td>
<td>%5B</td>
<td>91</td>
</tr>
<tr>
<td>\</td>
<td>%5C</td>
<td>92</td>
</tr>
<tr>
<td>]</td>
<td>%5D</td>
<td>93</td>
</tr>
<tr>
<td>^</td>
<td>%5E</td>
<td>94</td>
</tr>
<tr>
<td>_</td>
<td>%5F</td>
<td>95</td>
</tr>
<tr>
<td>`</td>
<td>%60</td>
<td>96</td>
</tr>
<tr>
<td>a</td>
<td>%61</td>
<td>97</td>
</tr>
<tr>
<td>b</td>
<td>%62</td>
<td>98</td>
</tr>
<tr>
<td>c</td>
<td>%63</td>
<td>99</td>
</tr>
<tr>
<td>d</td>
<td>%64</td>
<td>100</td>
</tr>
<tr>
<td>e</td>
<td>%65</td>
<td>101</td>
</tr>
<tr>
<td>f</td>
<td>%66</td>
<td>102</td>
</tr>
<tr>
<td>g</td>
<td>%67</td>
<td>103</td>
</tr>
<tr>
<td>h</td>
<td>%68</td>
<td>104</td>
</tr>
<tr>
<td>i</td>
<td>%69</td>
<td>105</td>
</tr>
<tr>
<td>j</td>
<td>%6A</td>
<td>106</td>
</tr>
<tr>
<td>k</td>
<td>%6B</td>
<td>107</td>
</tr>
<tr>
<td>l</td>
<td>%6C</td>
<td>108</td>
</tr>
<tr>
<td>m</td>
<td>%6D</td>
<td>109</td>
</tr>
<tr>
<td>n</td>
<td>%6E</td>
<td>110</td>
</tr>
<tr>
<td>o</td>
<td>%6F</td>
<td>111</td>
</tr>
<tr>
<td>p</td>
<td>%70</td>
<td>112</td>
</tr>
<tr>
<td>q</td>
<td>%71</td>
<td>113</td>
</tr>
<tr>
<td>r</td>
<td>%72</td>
<td>114</td>
</tr>
<tr>
<td>s</td>
<td>%73</td>
<td>115</td>
</tr>
<tr>
<td>t</td>
<td>%74</td>
<td>116</td>
</tr>
<tr>
<td>u</td>
<td>%75</td>
<td>117</td>
</tr>
<tr>
<td>v</td>
<td>%76</td>
<td>118</td>
</tr>
<tr>
<td>w</td>
<td>%77</td>
<td>119</td>
</tr>
<tr>
<td>x</td>
<td>%78</td>
<td>120</td>
</tr>
<tr>
<td>y</td>
<td>%79</td>
<td>121</td>
</tr>
<tr>
<td>z</td>
<td>%7A</td>
<td>122</td>
</tr>
<tr>
<td>{</td>
<td>%7B</td>
<td>123</td>
</tr>
<tr>
<td>|</td>
<td>%7C</td>
<td>124</td>
</tr>
<tr>
<td>}</td>
<td>%7D</td>
<td>125</td>
</tr>
<tr>
<td>~</td>
<td>%7E</td>
<td>126</td>
</tr>
</tbody>
</table>
<p>-Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/url-encoding-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Preformatted Word Wrapping?</title>
		<link>http://www.devtrends.com/index.php/wordpress-preformatted-word-wrapping/</link>
		<comments>http://www.devtrends.com/index.php/wordpress-preformatted-word-wrapping/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 04:55:34 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PRE]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=249</guid>
		<description><![CDATA[For most of my posts I use the &#8220;Preformatted&#8221; style from the drop down menu in the Visual editor of WordPress. It works quite well for demonstrating sections of code...]]></description>
			<content:encoded><![CDATA[<p>For most of my posts I use the &#8220;Preformatted&#8221; style from the drop down menu in the Visual editor of WordPress. It works quite well for demonstrating sections of code or screen output. However, there is a problem with using Preformatted and that is the issue with word wrapping.</p>
<p>Preformatted style in WordPress uses the &lt;pre&gt; HTML tag. The &lt;pre&gt; tag does not word wrap any of the sentences contained within, and if you are using a defined space for displaying the text, as with the theme on my WordPress, you may find that your examples are shortened. Fortunately there is a fix to this problem that requires some minor style tag modifications for the &lt;pre&gt; tags that seem to run off into the distance.</p>
<p>I found a blog post on techguy.org that helped me out&#8230;quickly to the point, add:</p>
<pre style="padding-left: 30px;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;">white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;</pre>
<p>to your &lt;pre style=&#8221;"&gt; tag and the text should wrap in most browsers.</p>
<p><a href="http://forums.techguy.org/web-design-development/249849-forcing-long-text-lines-wrap.html" target="_blank">http://forums.techguy.org/web-design-development/249849-forcing-long-text-lines-wrap.html</a></p>
<p>I&#8217;m out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/wordpress-preformatted-word-wrapping/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

