<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
  <channel>
    <title>Lee's Code - A Web Programmer's Toolbox</title>
    <link>http://shurie.com/coder/</link>
    <description>Get programming code snippets and tips for HTML, CSS, ASP, SQL, JavaScript, RSS, XML, and more. Lee's code is free, will save you time and money, and make your programming time more productive and fun!</description>
    <language>en-us</language>
    <pubDate>Thu, 10 Mar 2010 00:00:00 -0700</pubDate>
    <item>
      <title>Refresh Opening Page</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=39</link>
      <guid>http://bordersense.com/blog.asp?blogid=39</guid>
      <description><![CDATA[This is a very simple bit of Javascript which you can add to the <BODY> tag of a html page which has been opened by another page. When the called page is closed, the opening page is automatically refreshed. This is the simplest method I know of accomplishing this.]]></description>
      <pubDate>Fri, 18 Feb 2010 11:50:22 -0700</pubDate>
    </item>
    <item>
      <title>Detect Record State and Database State. Close recordset and database</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=38</link>
      <guid>http://bordersense.com/blog.asp?blogid=38</guid>
      <description><![CDATA[This code snippet illustrates how to detect an open recordset and close it. Same for an open database connection.<br><br>If you do not first detect the state of the recordset or the database and you attempt to close it, you will get an error if it is not open. This code eliminates the error by first deetecting ste state of the recordset or the dataabase connection.]]></description>
      <pubDate>Tue, 07 Dec 2009 10:14:48 -0700</pubDate>
    </item>
    <item>
      <title>SQL Injection Data Cleaner</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=37</link>
      <guid>http://bordersense.com/blog.asp?blogid=37</guid>
      <description><![CDATA[This is a simple input field cleaner to help prevent SQL Injection problems. SQL Injection occurs when a hacker fills out a form on your web site or posts data to a script. If the script which accepts and processes the data reads or writes to a SQL database, the hacker can include SQL commands. Those commands can insert data to your database and/or can output details about the tables and fields in your database. <br><br>There is much more to SQL injection, but this simple script will help to clean submitted data. It is intended for alphanumeric fields. You can clean numeric fields separately by testing for isNumeric and Not isNull.<br><br>Lee has a good deal of experience protecting web sites from SQL injection.]]></description>
      <pubDate>Thu, 01 Oct 2008 14:38:14 -0700</pubDate>
    </item>
    <item>
      <title>HTML box with rounded corners</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=36</link>
      <guid>http://bordersense.com/blog.asp?blogid=36</guid>
      <description><![CDATA[This little trick uses the fieldset and legend tags to create a nicely bordered box with a title. It is straight HTML.<br><br>Originally this was proprietary to IE, but it has been adapted by Mozilla Firefox. In IE the corners are nicely rounded. In Firefox they are square.]]></description>
      <pubDate>Sun, 13 Sep 2008 23:11:31 -0700</pubDate>
    </item>
    <item>
      <title>Classic ASP Timer using SQL Server</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=35</link>
      <guid>http://bordersense.com/blog.asp?blogid=35</guid>
      <description><![CDATA[This script provides a way to cause your Classic ASP page t pause or sleep. It uses SQL Server to perform the sleep function.]]></description>
      <pubDate>Wed, 05 Aug 2008 11:04:34 -0700</pubDate>
    </item>
    <item>
      <title>Lorem Ipsum Text Filler</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=34</link>
      <guid>http://bordersense.com/blog.asp?blogid=34</guid>
      <description><![CDATA[Ever needed something to use as a placeholder for future test? Have you wondered what "Lorem Ipsum… " was all about? Here is 5 paragraphs of Latin gibberish commonly used for text filler.]]></description>
      <pubDate>Wed, 13 May 2008 23:11:31 -0700</pubDate>
    </item>
    <item>
      <title>JavaScript Page Redirection on a Timer</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=33</link>
      <guid>http://bordersense.com/blog.asp?blogid=33</guid>
      <description><![CDATA[This is a simple but useful JavaScript code snippet which redirects the current page on a timer. Note the timer is in milliseconds.]]></description>
      <pubDate>Wed, 26 Feb 2008 19:19:32 -0700</pubDate>
    </item>
    <item>
      <title>ASP Break Cache</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=32</link>
      <guid>http://bordersense.com/blog.asp?blogid=32</guid>
      <description><![CDATA[When you update a data  on a data-driven page then redirect a user to it, you want to ensure the web browser displays current content instead of cached content. Use the simple code below to fool the cache.]]></description>
      <pubDate>Sat, 02 Nov 2007 13:43:53 -0700</pubDate>
    </item>
    <item>
      <title>Random Number Generator</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=31</link>
      <guid>http://bordersense.com/blog.asp?blogid=31</guid>
      <description><![CDATA[A simple function but very useful. This script will generate a random number between 1 and 1,000,000.]]></description>
      <pubDate>Sat, 02 Nov 2007 13:38:13 -0700</pubDate>
    </item>
    <item>
      <title>Parse First and Last Names</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=30</link>
      <guid>http://bordersense.com/blog.asp?blogid=30</guid>
      <description><![CDATA[A simple script I wrote years ago to parse first and last names. It is still handy.]]></description>
      <pubDate>Fri, 02 Aug 2007 13:46:34 -0700</pubDate>
    </item>
    <item>
      <title>Open CSV File as Dataset</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=29</link>
      <guid>http://bordersense.com/blog.asp?blogid=29</guid>
      <description><![CDATA[This script shows you how to open a CSV file as a recordset so you can read and write records. It also shows a simple method of looping through the records to print field names and values. The first part of the script opens a CSV file using a direct path to the file. This is the most common method. The commented section shows how to use the ODBC driver for text.]]></description>
      <pubDate>Fri, 02 Aug 2007 11:36:55 -0700</pubDate>
    </item>
    <item>
      <title>Open MS Access Database and Tables</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=28</link>
      <guid>http://bordersense.com/blog.asp?blogid=28</guid>
      <description><![CDATA[This script demonstrates how to open a MS Access database using a file path rather than an ODBC dataset name. It also includes sample scripts to open a recordset for writing, open a table as read only, insert a record into a table, delete a record, and update a record.]]></description>
      <pubDate>Fri, 02 Aug 2007 11:32:06 -0700</pubDate>
    </item>
    <item>
      <title>ASP Timer</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=27</link>
      <guid>http://bordersense.com/blog.asp?blogid=27</guid>
      <description><![CDATA[This is a simple script to demonstrate how to time an activity in ASP and display the results.]]></description>
      <pubDate>Thu, 18 Jul 2007 10:59:30 -0700</pubDate>
    </item>
    <item>
      <title>vCard Creator</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=26</link>
      <guid>http://bordersense.com/blog.asp?blogid=26</guid>
      <description><![CDATA[This script will create a downloadable vCard on the fly. This version uses pre-set parameters, but the name, address, and other information could easily be set from a database.]]></description>
      <pubDate>Sat, 13 Jul 2007 15:44:59 -0700</pubDate>
    </item>
    <item>
      <title>Modify CSS Property via javaScript</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=25</link>
      <guid>http://bordersense.com/blog.asp?blogid=25</guid>
      <description><![CDATA[Typically, CSS attributes are represented as properties in a style sheet. They may also be coded directly into an html tag. For example: &lt;div Style="font-weight:bold; color:0088dd;"&gt;some text here&lt;/div&gt;. <br><br>But how can you set or change these attributes via JavaScript? <br><br>For non hyphenated attributes, the property is identical. So your Javascript could look like this:<br><br>onMouseover="this.style.color='#0000ff'"<br><br>For hyphenated attributes, drop the hyphen and capitalize the first letter following it. For example: to manipulate the "font-weight" CSS property your JavaScript might look like this:<br><br>onMouseover="this.style.fontWeight='#fffff'"<br><br>Examples:<br><br>color = color <br>padding = padding <br>font-weight = fontWeight<br>background-color = backgroundColor <br>border-bottom-width = borderBottomWidth]]></description>
      <pubDate>Tue, 12 Feb 2007 09:26:19 -0700</pubDate>
    </item>
    <item>
      <title>Change CSS Property via javaScript</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=24</link>
      <guid>http://bordersense.com/blog.asp?blogid=24</guid>
      <description><![CDATA[Typically, CSS attributes are represented as properties in a style sheet. They may also be coded directly into an html tag. For example: &lt;div Style="font-weight:bold; color:0088dd;"&gt;some text here&lt;/div&gt;. <br><br>But how can you set or change these attributes via JavaScript? <br><br>For non hyphenated attributes, the property is identical. So your Javascript could look like this:<br><br>onMouseover="this.style.color='#0000ff'"<br><br>For hyphenated attributes, drop the hyphen and capitalize the first letter following it. For example: to manipulate the "font-weight" CSS property your JavaScript might look like this:<br><br>onMouseover="this.style.fontWeight='#fffff'"<br><br>Examples:<br><br>color = color <br>padding = padding <br>font-weight = fontWeight<br>background-color = backgroundColor <br>border-bottom-width = borderBottomWidth]]></description>
      <pubDate>Tue, 12 Feb 2007 09:26:19 -0700</pubDate>
    </item>
  </channel>
</rss>