<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" 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/" > <channel><title>Comments on: Classic ASP and AJAX</title> <atom:link href="http://skeymedia.com/classic-asp-and-ajax-tutorial/feed/" rel="self" type="application/rss+xml" /><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/</link> <description>Blogging about Web Development and Website Management &#38; Monetization</description> <lastBuildDate>Sun, 11 Sep 2011 07:44:05 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.4</generator> <item><title>By: Varun</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-58056</link> <dc:creator>Varun</dc:creator> <pubDate>Tue, 14 Jun 2011 06:52:09 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-58056</guid> <description>Cool ...thanks...</description> <content:encoded><![CDATA[<p>Cool &#8230;thanks&#8230;</p> ]]></content:encoded> </item> <item><title>By: brian</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-57214</link> <dc:creator>brian</dc:creator> <pubDate>Tue, 26 Oct 2010 17:09:12 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-57214</guid> <description>If you don&#039;t have it, get the web developer tool bar for firefox.  It is the number 1 tool for testing javascript, as you get an error box with a single click that usually points to the error. http://chrispederick.com/work/web-developer/</description> <content:encoded><![CDATA[<p>If you don&#8217;t have it, get the web developer tool bar for firefox.  It is the number 1 tool for testing javascript, as you get an error box with a single click that usually points to the error.<br /> <a href="http://chrispederick.com/work/web-developer/" >http://chrispederick.com/work/web-developer/</a></p> ]]></content:encoded> </item> <item><title>By: Whitaker</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-57213</link> <dc:creator>Whitaker</dc:creator> <pubDate>Tue, 26 Oct 2010 15:35:30 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-57213</guid> <description>Got the permission denied worked out by putting in the complete address rather than using the var url on line 17 of default.asp.  But now it doesn&#039;t do anything.  It shows the form, but when text is input, nothing happens.  Any ideas?  Thanks!</description> <content:encoded><![CDATA[<p>Got the permission denied worked out by putting in the complete address rather than using the var url on line 17 of default.asp.  But now it doesn&#8217;t do anything.  It shows the form, but when text is input, nothing happens.  Any ideas?  Thanks!</p> ]]></content:encoded> </item> <item><title>By: Whitaker</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-57212</link> <dc:creator>Whitaker</dc:creator> <pubDate>Tue, 26 Oct 2010 15:24:27 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-57212</guid> <description>I appreciate any classic asp information.  There are more of us out there than anyone gives credit.  I am getting a `permission denied` error when I begin typing into the text field.  I have the connection string worked out with my ID/PW (and it works on other pages for this table), but I cannot figure out where this may be coming from... Any ideas?  Thanks!!!W-</description> <content:encoded><![CDATA[<p>I appreciate any classic asp information.  There are more of us out there than anyone gives credit.  I am getting a `permission denied` error when I begin typing into the text field.  I have the connection string worked out with my ID/PW (and it works on other pages for this table), but I cannot figure out where this may be coming from&#8230; Any ideas?  Thanks!!!</p><p>W-</p> ]]></content:encoded> </item> <item><title>By: Al Willmott</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-57001</link> <dc:creator>Al Willmott</dc:creator> <pubDate>Tue, 24 Aug 2010 08:54:04 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-57001</guid> <description>This is a great article! There are still legacy ASP apps out there which this works with amazingly well!! Thanks very much.</description> <content:encoded><![CDATA[<p>This is a great article! There are still legacy ASP apps out there which this works with amazingly well!! Thanks very much.</p> ]]></content:encoded> </item> <item><title>By: brian</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-56780</link> <dc:creator>brian</dc:creator> <pubDate>Wed, 07 Apr 2010 06:57:57 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-56780</guid> <description>This is for XHTML compliance.  It shouldn&#039;t have any bearing on ASP parsing correctly.&lt;code&gt; &lt;input type=&quot;button&quot; /&gt; &lt;/code&gt; is 100% valid XHTML.&lt;code&gt; &lt;input type=&quot;button&quot;&gt; &lt;/code&gt; is not.</description> <content:encoded><![CDATA[<p>This is for XHTML compliance.  It shouldn&#8217;t have any bearing on ASP parsing correctly.</p><p><code><br /> &lt;input type=&quot;button&quot; /&gt;<br /> </code><br /> is 100% valid XHTML.</p><p><code><br /> &lt;input type=&quot;button&quot;&gt;<br /> </code><br /> is not.</p> ]]></content:encoded> </item> <item><title>By: David</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-56769</link> <dc:creator>David</dc:creator> <pubDate>Wed, 10 Mar 2010 21:20:05 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-56769</guid> <description>This is such a great treasure to find! I&#039;m getting into AJAX late in the game and was having a real difficult time with understanding how to get ASP data and use it with javascript, like it was a clash of two worlds. The instructions made it very clear - thanks.One issue I found is that the closing tags for the &#039;input&#039; ASP value tags have a stray closing slash between the &#039;%&#039; and &#039;&gt;&#039;, as in: value=&quot;&quot;This prevented the page from loading until corrected.</description> <content:encoded><![CDATA[<p>This is such a great treasure to find! I&#8217;m getting into AJAX late in the game and was having a real difficult time with understanding how to get ASP data and use it with javascript, like it was a clash of two worlds. The instructions made it very clear &#8211; thanks.</p><p>One issue I found is that the closing tags for the &#8216;input&#8217; ASP value tags have a stray closing slash between the &#8216;%&#8217; and &#8216;&gt;&#8217;, as in:<br /> value=&#8221;"</p><p>This prevented the page from loading until corrected.</p> ]]></content:encoded> </item> <item><title>By: Mark Welshans</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-56724</link> <dc:creator>Mark Welshans</dc:creator> <pubDate>Tue, 22 Dec 2009 21:16:46 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-56724</guid> <description>Hi. I wanted to drop you a quick note to impart my thanks. I&#039;ve been observing your blog for a month or so and have picked up a heap of effective information as well as relished the way you&#039;ve structured your site. I am attempting to run my own blog however I think its too general and I would like to focus more on smaller topics.</description> <content:encoded><![CDATA[<p>Hi. I wanted to drop you a quick note to impart my thanks. I&#8217;ve been observing your blog for a month or so and have picked up a heap of effective information as well as relished the way you&#8217;ve structured your site. I am attempting to run my own blog however I think its too general and I would like to focus more on smaller topics.</p> ]]></content:encoded> </item> <item><title>By: Julie</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-56692</link> <dc:creator>Julie</dc:creator> <pubDate>Wed, 28 Oct 2009 20:45:21 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-56692</guid> <description>Thanks for this. Our entire website is vbScript/Javascript and I have no idea when it would change. This makes all sorts of things possible for us that weren&#039;t an option using vbScript/Javascript/SQL alone.</description> <content:encoded><![CDATA[<p>Thanks for this. Our entire website is vbScript/Javascript and I have no idea when it would change. This makes all sorts of things possible for us that weren&#8217;t an option using vbScript/Javascript/SQL alone.</p> ]]></content:encoded> </item> <item><title>By: Brian</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-55689</link> <dc:creator>Brian</dc:creator> <pubDate>Tue, 13 Oct 2009 03:29:53 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-55689</guid> <description>Mark, I think you&#039;re mis-using one of the technologies then.  AJAX is NOT a replacement for ASP or ANY server-side language.  It&#039;s simply the call method instead of traditional GET/POST.</description> <content:encoded><![CDATA[<p>Mark, I think you&#8217;re mis-using one of the technologies then.  AJAX is NOT a replacement for ASP or ANY server-side language.  It&#8217;s simply the call method instead of traditional GET/POST.</p> ]]></content:encoded> </item> <item><title>By: Mark</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-55667</link> <dc:creator>Mark</dc:creator> <pubDate>Tue, 13 Oct 2009 00:35:27 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-55667</guid> <description>We switched from ASP to AJAX last year and we&#039;ve got lot of advantages: AJAX is quicker and more reliable than ASP.</description> <content:encoded><![CDATA[<p>We switched from ASP to AJAX last year and we&#8217;ve got lot of advantages: AJAX is quicker and more reliable than ASP.</p> ]]></content:encoded> </item> <item><title>By: brian</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-52258</link> <dc:creator>brian</dc:creator> <pubDate>Sat, 18 Jul 2009 05:09:18 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-52258</guid> <description>SQL Server and MySql are 98% similar in T-SQL structure.The major differences are TOP vs LIMIT (ie, select top 2 from table in MSSQL vs select * from table Limit 2 in MySql), multi-phrase column name ticking (ie, backticks vs [] brackets, and group by&#039;s are not as strickt in mysql.   Other than a few other advanced techniques (triggers, etc) the syntax is very similar.In this particular example, the only thing that would need to be changed would be to change [zipcode] to `zipcode` (note, those are back ticks, not quote marks).  You can also leave the ticks off completely as it is a single string (ie, the field name is not `zip code` with a space).</description> <content:encoded><![CDATA[<p>SQL Server and MySql are 98% similar in T-SQL structure.</p><p>The major differences are TOP vs LIMIT (ie, select top 2 from table in MSSQL vs select * from table Limit 2 in MySql), multi-phrase column name ticking (ie, backticks vs [] brackets, and group by&#8217;s are not as strickt in mysql.   Other than a few other advanced techniques (triggers, etc) the syntax is very similar.</p><p>In this particular example, the only thing that would need to be changed would be to change [zipcode] to `zipcode` (note, those are back ticks, not quote marks).  You can also leave the ticks off completely as it is a single string (ie, the field name is not `zip code` with a space).</p> ]]></content:encoded> </item> <item><title>By: AlmostBaldFromStress</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-52246</link> <dc:creator>AlmostBaldFromStress</dc:creator> <pubDate>Wed, 01 Jul 2009 23:35:48 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-52246</guid> <description>Man thanks, I have looked all over the web from some guidance and I guess I finally entered the right keywords cause here it is. I only have one question. How much do you have to change the database call if you are using mySql instead of SQL server?</description> <content:encoded><![CDATA[<p>Man thanks,<br /> I have looked all over the web from some guidance and I guess I finally entered the right keywords cause here it is. I only have one question. How much do you have to change the database call if you are using mySql instead of SQL server?</p> ]]></content:encoded> </item> <item><title>By: Brian Cummiskey</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-1950</link> <dc:creator>Brian Cummiskey</dc:creator> <pubDate>Wed, 25 Jul 2007 18:26:19 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-1950</guid> <description>After reviewing this post again, I&#039;ve noticed a critical flaw.   The query is subject to SQL Injection.   Please be sure you are running a RegEx or some data parsing on all your variables that are entered into a SQL query like this.In this case for US-based 5-digit zipcodes, we should do something like this:&lt;code&gt; &lt;% Function digitsonly(teststr) dim isValid dim regEx isValid = True set regEx = New RegExp regEx.IgnoreCase = false regEx.Pattern = &quot;^[0-9]{5}$&quot; isValid = regEx.Test(teststr) digitsonly = isValid End Functionzipcode = request(&quot;zipcode&quot;)if len(zipcode) = 5 then if digitsonly(zipcode) = false then response.write &quot;bad data&quot; response.end else &#039;do the query and the rest of the above ASP back end functions. end if %&gt; &lt;/code&gt;</description> <content:encoded><![CDATA[<p>After reviewing this post again, I&#8217;ve noticed a critical flaw.   The query is subject to SQL Injection.   Please be sure you are running a RegEx or some data parsing on all your variables that are entered into a SQL query like this.</p><p>In this case for US-based 5-digit zipcodes, we should do something like this:</p><p><code><br /> &lt;%<br /> Function digitsonly(teststr)<br /> &nbsp;&nbsp;dim isValid<br /> &nbsp;&nbsp;dim regEx<br /> &nbsp;&nbsp;<br /> &nbsp;&nbsp;isValid = True<br /> &nbsp;&nbsp;set regEx = New RegExp<br /> &nbsp;&nbsp;<br /> &nbsp;&nbsp;regEx.IgnoreCase = false<br /> &nbsp;&nbsp;<br /> &nbsp;&nbsp;regEx.Pattern = &quot;^[0-9]{5}$&quot;<br /> &nbsp;&nbsp;isValid = regEx.Test(teststr)<br /> &nbsp;&nbsp;<br /> &nbsp;&nbsp;digitsonly = isValid<br /> &nbsp;&nbsp;<br /> End Function<br /> <br /> zipcode = request(&quot;zipcode&quot;)<br /> <br /> if len(zipcode) = 5 then<br /> &nbsp;&nbsp;if digitsonly(zipcode) = false then<br /> &nbsp;&nbsp;&nbsp;&nbsp;response.write &quot;bad data&quot;<br /> &nbsp;&nbsp;&nbsp;&nbsp;response.end<br /> &nbsp;&nbsp;else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&#039;do the query and the rest of the above ASP back end functions.<br /> end if<br /> %&gt;<br /> </code></p> ]]></content:encoded> </item> <item><title>By: Cesar</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-1945</link> <dc:creator>Cesar</dc:creator> <pubDate>Sun, 22 Jul 2007 16:41:19 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-1945</guid> <description>Very great work my friend.  You&#039;re certainly right about one thing...barely any good documentation out there about Classic ASP and Ajax.  Thumbs up to you!!</description> <content:encoded><![CDATA[<p>Very great work my friend.  You&#8217;re certainly right about one thing&#8230;barely any good documentation out there about Classic ASP and Ajax.  Thumbs up to you!!</p> ]]></content:encoded> </item> <item><title>By: gabru</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-1923</link> <dc:creator>gabru</dc:creator> <pubDate>Wed, 04 Jul 2007 07:43:30 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-1923</guid> <description>nice thing ... i thought you might be interested in an Ajax Library for classic ASP (ajaxed). Check http://www.webdevbros.net/ajaxed/ there are still guys around hacking classic ASP ;)</description> <content:encoded><![CDATA[<p>nice thing &#8230; i thought you might be interested in an Ajax Library for classic ASP (ajaxed). Check <a href="http://www.webdevbros.net/ajaxed/" >http://www.webdevbros.net/ajaxed/</a><br /> there are still guys around hacking classic ASP <img src='http://static.skeymedia.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Brian Cummiskey</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-1095</link> <dc:creator>Brian Cummiskey</dc:creator> <pubDate>Wed, 02 May 2007 07:06:51 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-1095</guid> <description>ubigdummie,Unfortunately this was part of an intranet project at my last company where I am no longer employed.  Thus, I don&#039;t have access to the source code.However, I did some copy paste action and made a full page of the posted code.   This is untested as I don&#039;t have ASP or MSSQL on my blog webserver.I have added a link to the source in the orig post.  Again, un-tested.</description> <content:encoded><![CDATA[<p>ubigdummie,</p><p>Unfortunately this was part of an intranet project at my last company where I am no longer employed.  Thus, I don&#8217;t have access to the source code.</p><p>However, I did some copy paste action and made a full page of the posted code.   This is untested as I don&#8217;t have ASP or MSSQL on my blog webserver.</p><p>I have added a link to the source in the orig post.  Again, un-tested.</p> ]]></content:encoded> </item> <item><title>By: ubigdummie</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-1094</link> <dc:creator>ubigdummie</dc:creator> <pubDate>Tue, 01 May 2007 04:43:57 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-1094</guid> <description>Brian, would it be possible to receive the complete source for your example here?  I learn best that way.  Thanks!</description> <content:encoded><![CDATA[<p>Brian, would it be possible to receive the complete source for your example here?  I learn best that way.  Thanks!</p> ]]></content:encoded> </item> <item><title>By: tonytee</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-798</link> <dc:creator>tonytee</dc:creator> <pubDate>Tue, 27 Mar 2007 08:29:16 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-798</guid> <description>Thanks man, I am one of the ASP classic programmer (READ: dinosaur). Your post is vert useful to me. Keep up the good job!</description> <content:encoded><![CDATA[<p>Thanks man, I am one of the ASP classic programmer (READ: dinosaur). Your post is vert useful to me. Keep up the good job!</p> ]]></content:encoded> </item> <item><title>By: Brian Cummiskey</title><link>http://skeymedia.com/classic-asp-and-ajax-tutorial/comment-page-1/#comment-675</link> <dc:creator>Brian Cummiskey</dc:creator> <pubDate>Wed, 28 Feb 2007 03:23:24 +0000</pubDate> <guid isPermaLink="false">http://www.skeymedia.com/programming/classic-asp-and-ajax/#comment-675</guid> <description>yukiandrews:The best thing to do would be to store a session variable for the zipcode on the following page.formactionpage.asp: &lt;code&gt; session(&quot;zipcode&quot;) = request.form(&quot;zipcode&quot;) &lt;/code&gt;and in your form, pre-populate the value for the zip code:&lt;code&gt; &lt;input type=&quot;text&quot; name=&quot;zipcode&quot; id=&quot;zipcode&quot; value=&quot;&lt;%= session(&quot;zipcode&quot;) %&gt;&quot; /&gt; &lt;/code&gt;And finally, in the footer somewhere, call the javascript to iniitate the query.  Note, it&#039;s important that this JS happens AFTER the form field is populated from the session variable (thus, a window.onload call in the head section will most likely be problematic)&lt;code&gt; &lt;script type=&quot;text/javascript&quot;&gt; function postload() { getZipcode(document.getElementById(&quot;zipcode&quot;)) }window.onload = postload;&lt;/code&gt;This is un-tested and off the seat of my pants, so there may be some errors and/or typos :)Hope this gives you some guidance.   Good luck :)</description> <content:encoded><![CDATA[<p>yukiandrews:</p><p>The best thing to do would be to store a session variable for the zipcode on the following page.</p><p>formactionpage.asp:<br /> <code><br /> session(&quot;zipcode&quot;) = request.form(&quot;zipcode&quot;)<br /> </code></p><p>and in your form, pre-populate the value for the zip code:</p><p><code><br /> &lt;input type=&quot;text&quot; name=&quot;zipcode&quot; id=&quot;zipcode&quot; value=&quot;&lt;%= session(&quot;zipcode&quot;) %&gt;&quot; /&gt;<br /> </code></p><p>And finally, in the footer somewhere, call the javascript to iniitate the query.  Note, it&#8217;s important that this JS happens AFTER the form field is populated from the session variable (thus, a window.onload call in the head section will most likely be problematic)</p><p><code><br /> &lt;script type=&quot;text/javascript&quot;&gt;<br /> function postload() {<br /> &nbsp;&nbsp;getZipcode(document.getElementById(&quot;zipcode&quot;))<br /> }<br /> <br /> window.onload = postload;<br /> <br /> </code></p><p>This is un-tested and off the seat of my pants, so there may be some errors and/or typos <img src='http://static.skeymedia.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>Hope this gives you some guidance.   Good luck <img src='http://static.skeymedia.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using xcache
Page Caching using xcache
Database Caching 2/25 queries in 0.015 seconds using disk
Object Caching 599/599 objects using xcache
Content Delivery Network via static.skeymedia.info

Served from: skeymedia.com @ 2012-05-18 19:39:11 -->
