<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9003612</id><updated>2011-04-21T16:51:30.136-07:00</updated><category term='SQLAuthority'/><category term='SQL Server'/><title type='text'>ColdFusion Online - Tips, Tricks and Tutorials!</title><subtitle type='html'>A journey of ColdFusion with Pinal Dave!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://coldfusiononline.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9003612.post-2922914537291096296</id><published>2007-06-19T07:00:00.000-07:00</published><updated>2007-07-10T21:43:18.135-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQLAuthority'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLAuthority.com News - Journey to SQL Authority Milestone of SQL Server</title><content type='html'>&lt;h3&gt;&lt;strong&gt;SQLAuthority.com News - Journey to SQL Authority Milestone of SQL Server&lt;/strong&gt;&lt;/h3&gt;&lt;br /&gt;I am very glad to write this 200th post of this blog. I would like to express my gratitude to all of YOU - my readers for continuously reading this blog. I receive many comments and emails with feedback, questions and suggestion everyday.  I enjoy meeting few of you during this journey as well. Please do send me feedback and your request to make this blog better. Following is milestone of Journey to SQL Authority.&lt;br /&gt;&lt;a href="http://blog.sqlauthority.com/2007/04/21/sql-server-interview-questions-and-answers-complete-list-download/" target="_blank"&gt;&lt;br /&gt;SQL Server Interview Questions and Answers Complete List Download (PDF)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.sqlauthority.com/2007/06/06/sql-server-database-coding-standards-and-guidelines-complete-list-download/" target="_blank"&gt;SQL Server Database Coding Standards and Guidelines Complete List Download (PDF)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://jobs.sqlauthority.com/" target="_blank"&gt;Find SQL Server Job or Post SQL Server Job&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.sqlauthority.com/tag/sql-humor/" target="_blank"&gt;Lighter Side of SQL - SQL Humor&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=872428" target="_blank"&gt;Subscribe to SQLAuthority.com by Email for Regular Update&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://feeds.feedburner.com/SQLAuthority" target="_blank"&gt;SQLAuthority Feed&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.pinaldave.com/" target="_blank"&gt;New Personal Homepage of SQLAuthority Author Pinal Dave&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.pinaldave.com/dba-sql-lasvegas-resume.cfm" target="_blank"&gt;Updated Resume of SQL Authority Author&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.sqlauthority.com/best_top_sql_blog_all_post/" target="_blank"&gt;List of All Articles of SQL Authority Blog for Easy Navigation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;a href="http://www.pinaldave.com/best-sql-blog-best-top-articles.cfm" target="_blank"&gt;List of My Favorite SQL Articles on SQLAuthority&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://search.pinaldave.com/" target="_blank"&gt;Search SQLAuthority.com for Quick Search of SQL Keywords&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://america.cry.org/site/donate/" target="_blank"&gt;Support Child Rights and You&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Pinal Dave (&lt;a href="http://www.SQLAuthority.com" target="_blank"&gt;http://www.SQLAuthority.com&lt;/a&gt;) &lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9003612-2922914537291096296?l=coldfusiononline.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/2922914537291096296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/2922914537291096296'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/2007/06/sqlauthoritycom-news-journey-to-sql.html' title='SQLAuthority.com News - Journey to SQL Authority Milestone of SQL Server'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-9003612.post-1704384762336476903</id><published>2007-06-12T22:01:00.000-07:00</published><updated>2007-06-12T22:03:24.690-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQLAuthority'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Visit New Blog on SQL Server - SQLAuthority.com</title><content type='html'>Hello All,&lt;br /&gt;&lt;br /&gt;Visit my new Blog about SQL Server. I post there regularly.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.sqlauthority.com"&gt;http://blog.sqlauthority.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9003612-1704384762336476903?l=coldfusiononline.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/1704384762336476903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/1704384762336476903'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/2007/06/visit-new-blog-on-sql-server.html' title='Visit New Blog on SQL Server - SQLAuthority.com'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-9003612.post-112985176751486161</id><published>2005-10-20T07:00:00.000-07:00</published><updated>2005-10-20T16:46:12.370-07:00</updated><title type='text'>Align ColdFusion MX 7 Flash Forms using CSS</title><content type='html'>&lt;strong&gt;Goal: &lt;/strong&gt;&lt;br /&gt;Align ColdFusion MX 7 Flash Forms using CSS. Table less layout.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Story:&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;Tables are only for tabular data display. &lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;CSS is the best to web programming we all know that by now.&lt;br /&gt;&lt;br /&gt;ColdFusion MX 7 has feature of Flash Forms. I have come across this question many times. Many developers have asked that how to use HTML element in the flash forms and how to align the input fields. The solution is “Do not use table or other html element. Use CSS”. It is not that difficult at all. I have created this simple example for that.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Result: &lt;/strong&gt;&lt;br /&gt;It is very simple. Flash forms are aligned beautifully with CSS, no use of Table element of HTML.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Code: &lt;/strong&gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;body {&lt;br /&gt;font-family : "Lucida Grande","Lucida Sans Unicode",Verdana,sans-serif;&lt;br /&gt;font-size : 70%;&lt;br /&gt;color : #333;&lt;br /&gt;background : #fff;&lt;br /&gt;padding : 0;&lt;br /&gt;margin : 0;&lt;br /&gt;text-align : center;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#container {&lt;br /&gt;margin : 0 auto;&lt;br /&gt;padding : 0;&lt;br /&gt;width : 770px;&lt;br /&gt;text-align : left;&lt;br /&gt;}&lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div id="container"&amp;gt;&lt;br /&gt;&amp;lt;form id="example-form" method="post" action=""&amp;gt;&lt;br /&gt;&amp;lt;fieldset&amp;gt;&lt;br /&gt;&amp;lt;legend&amp;gt;Personal information&amp;lt;/legend&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;label for="fm-req_forename"&amp;gt;First name&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt;&amp;lt;input type="text" name="fm-req_forename" id="fm-req_forename" /&amp;gt; &amp;lt;br /&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;label for="fm-req_forename"&amp;gt;Last Name&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt;&amp;lt;input type="text" name="fm-req_surname" id="fm-req_lastname" /&amp;gt; &amp;lt;br /&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;label for="fm-eml_email"&amp;gt;Email&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;lt;div class="fm-required"&amp;gt;&amp;lt;input type="text" name="fm-eml_email" id="fm-eml_email" value=" " /&amp;gt; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/fieldset&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div id="fm-submit"&amp;gt;&amp;lt;input type="submit" name="Submit" value="Submit" /&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9003612-112985176751486161?l=coldfusiononline.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112985176751486161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112985176751486161'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/2005/10/align-coldfusion-mx-7-flash-forms.html' title='Align ColdFusion MX 7 Flash Forms using CSS'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-9003612.post-112935649446454381</id><published>2005-10-14T07:00:00.000-07:00</published><updated>2005-10-14T23:09:27.146-07:00</updated><title type='text'>CFFORM validation does not work</title><content type='html'>&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt;&lt;br /&gt;CFFORM validation does not work.&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Story:&lt;/strong&gt;&lt;br /&gt;I have faced this issue quite a few times so far. There are many ColdFusion servers, in my company. We keep on upgrading hardware of servers very frequently. Every new installation of operating system requires the installation of ColdFusion.&lt;/p&gt;&lt;p&gt;Personally, I like to use the regular FORM over CFFORM and write my own JavaScript validation. Well, there is a lot of “ancient” code, which we are cleaning up as we go. After importing all the code, configuration and settings while try to use forms sometime CFFORM does not work. When I move the same code to different server to test code it works as expected and when we move it back it does not work. This was quite a surprising problem for a while. We have blamed browser, operating system, domain etc thing for this issue; none of them are correct.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&lt;br /&gt;The error we faced was &lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Line:8 Error: Object Expected&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;None of the JavaScript Validation worked. Form did not preserve any of the data which was posted back.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;br /&gt;The solution of this problem is not code, rather a configuration and adjustment to the server. The journey to find the solution was very interesting. I removed the CFFORM validation and tried to use simple form. No Luck! I uploaded the same code to another server on different domain, it worked fine. I re-wrote the CFFORM to regular HTML FORM and JavaScript validation. It worked fine. Well, it determines that Code was perfect but the there is something about CFFORM is not working. Carefully, observing the code, which is generated using CFFORM, I see following line of code.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;&amp;lt;SCRIPT LANGUAGE=&amp;quot;JavaScript&amp;quot; TYPE=&amp;quot;text/javascript&amp;quot; SRC=&amp;quot;/CFIDE/scripts/cfform.js&amp;quot;&amp;gt;&amp;lt;/SCRIPT&amp;gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;I played with that and I realize that cfform.js was physically there but missing as relative path for server. I checked the ColdFusion Administrator it was missing the path there.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I) I went to IIS &amp; then map my CFIDE folder under my Web Site giving the alias as CFIDE.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;II) After that I created mapping to my CFIDE folder in ColdFusion Administrator&lt;br /&gt;&lt;/p&gt;&lt;p&gt;III) I added new path like&lt;br /&gt;&lt;br /&gt;       Logical Path:/CFIDE&lt;br /&gt;&lt;br /&gt;       Directory Path: Z:\Inetpub\wwwroot\CFIDE&lt;br /&gt;&lt;/p&gt;&lt;p&gt;IV) Restart the ColdFusion Server. &lt;/p&gt;CFFORM validation worked!&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Result:&lt;br /&gt;&lt;/strong&gt;The solution will work when there is a lot of code using CFFORM on the server and “Object Expected” error occurs. This solution will help to fix the problem right away.&lt;/p&gt;&lt;p&gt;I highly recommended writing the code which does not use CFFORM. Please write your own HTML form and JavaScript validation; which gives far great control on that form element.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Online Reference:&lt;/strong&gt;&lt;br /&gt;ColdFusion MX 6.1: Hot fix for cfform controls&lt;br /&gt;&lt;a href="http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18951"&gt;http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18951&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9003612-112935649446454381?l=coldfusiononline.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112935649446454381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112935649446454381'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/2005/10/cfform-validation-does-not-work.html' title='CFFORM validation does not work'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-9003612.post-112919908974084636</id><published>2005-10-13T07:00:00.000-07:00</published><updated>2005-10-13T03:31:29.326-07:00</updated><title type='text'>Best Reference Book for ColdFusion MX</title><content type='html'>The frequent question, I come across is “Which is the best reference book for ColdFusion MX?” I own almost all the book available for ColdFusion in my personal library. If I have to select only one book, I would recommend &lt;span style="font-weight: bold;"&gt;Macromedia ColdFusion MX 7 Web Application Construction Kit&lt;/span&gt; by &lt;span style="font-weight: bold;"&gt;Ben Forta&lt;/span&gt;. Following is my review on Amazon.com for the same book.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Must have 'significantly enhanced' MX 7 book&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/1368/359/1600/ColdFusion%20MX%207.jpg"&gt;&lt;img dragover="true" style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://photos1.blogger.com/blogger/1368/359/320/ColdFusion%20MX%207.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;ColdFusion MX 7 Web Application Construction Kit (Web Application Construction Kit) by Ben Forta Ben Forta, Raymond Camden, Leon Chalnick, Angela C. Buraglia. ISBN: 0321223675&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I just finished reading ColdFusion MX 7 Web Application Construction Kit. This is another master piece from Ben Forta. This book is definitely "&lt;span style="font-weight: bold;"&gt;significantly enhanced&lt;/span&gt;" than the previous version.&lt;br /&gt;&lt;br /&gt;Like previous version it includes all the basic concepts from installing the ColdFusion to Database concepts, from data-entry forms to new Flash integration features. It is great as a guide to planning and making decisions about development than as a comprehensive reference. I have to say it is great in the manner of which it is written, and is easily understandable. All time favorite explanations in the book like next-n paging, error handling, User Defined Functions (UDF) and ColdFusion Components (CFC) are explained in same lucid and easy to understand language with examples.&lt;br /&gt;&lt;br /&gt;In this new addition, the Flash applications are described in details with examples. The new features of Graphing, Printing, and Reporting are covered in length. The tricks and tips of the MX 7 like recursive directory search using cffile, flash forms, flash paper, Dreamweaver MX 2004 extensions are explained very well by authors.&lt;br /&gt;&lt;br /&gt;Do not forget to read the additional chapters from CD-ROM. The appendix of the book is almost same as previous version with few changes. I will say this book is essential for beginners and advance ColdFusion MX 7 developer.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Pinal Dave (Macromedia Certified Advanced ColdFusion MX Developer)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9003612-112919908974084636?l=coldfusiononline.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112919908974084636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112919908974084636'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/2005/10/best-reference-book-for-coldfusion-mx.html' title='Best Reference Book for ColdFusion MX'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-9003612.post-112884163109792823</id><published>2005-10-08T07:00:00.000-07:00</published><updated>2005-10-09T16:22:55.770-07:00</updated><title type='text'>ColdFusion function using RegEX (Regular Expression) to verify special characters in URL</title><content type='html'>&lt;p&gt;&lt;strong&gt; Goal:&lt;/strong&gt;&lt;br /&gt;Create the ColdFusion function using RegEX (Regular Expression) which verify string (URL) do not use special characters.&lt;/p&gt;&lt;p&gt;&lt;strong&gt; Story:&lt;/strong&gt;&lt;br /&gt;I came across situation when we allowed our clients to enter the URL variables in our system. The specification for URLs (&lt;a href="http://www.rfc-editor.org/rfc/rfc1738.txt" target="_blank"&gt;RFC 1738&lt;/a&gt;, Dec. '94) poses a problem, in that it limits the use of allowed characters in URLs to only a limited subset of the US-ASCII character set. We can not have special characters in the URL. There is simple and easy explanation of this issue is at following site by Brian Wilson (&lt;a href="http://www.blooberry.com/indexdot/html/topics/urlencoding.htm" target="_blank"&gt;http://www.blooberry.com/indexdot/html/topics/urlencoding.htm&lt;/a&gt;)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt; The special characters are as follows:&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt; Dollar ("$")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Ampersand ("&amp;")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Plus ("+")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Comma (",")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Forward slash/Virgule ("/")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Colon (":")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Semi-colon (";")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Question mark ("?")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; 'At' symbol ("@")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Single Quotation marks ("’")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Double Quotation marks ("”")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; 'Less Than' symbol ("&amp;lt;")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; 'Greater Than' symbol ("&amp;gt;")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; 'Pound' character ("#")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Percent character ("%")&lt;br /&gt;&lt;/li&gt;&lt;li&gt;  Left Curly Brace ("{")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Right Curly Brace ("}")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Vertical Bar/Pipe ("|")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Backslash ("\")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Caret ("^")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Tilde ("~")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Left Square Bracket ("[")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Right Square Bracket ("]")&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Grave Accent ("`")&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt; Result:&lt;/strong&gt;&lt;br /&gt;I wrote the ColdFusion function using Regular Expression (RegEx) which performs following tasks.&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt; Returns (Displays) the error if special character is used in the string.&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Returns (Displays) the special character to easily identify.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt; Code:&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &amp;lt;!--- Function Begin --&amp;gt;&lt;br /&gt;&amp;lt;cffunction name="CheckSpecialChars" output="false" returntype="struct"&amp;gt;&lt;br /&gt;&amp;lt;cfargument name="PageName" type="string" required="yes"&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &amp;lt;!--- Creating the return variables. --&amp;gt;&lt;br /&gt;&amp;lt;cfset arguments.SpecialCharsError = 0&amp;gt;&lt;br /&gt;&amp;lt;cfset arguments.SpecialChar = ''&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!--- Regular Experssion --&amp;gt;&lt;br /&gt;&amp;lt;cfset regex = '[$|&amp;amp;|+|,|/|:|;|=|?|@| |/"|/''|&amp;lt;|&amp;gt;|##|.|%|{|}|\||^|~|\]|\[|`]'&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &amp;lt;!--- Following is the logic to determine the error and special chars --&amp;gt;&lt;br /&gt;&amp;lt;cfif refind(regex, arguments.PageName)&amp;gt;&lt;br /&gt;&amp;lt;cfset arguments.SpecialCharsError = 1&amp;gt;&lt;br /&gt;&amp;lt;cfset r = refind(regex,arguments.PageName)&amp;gt;&lt;br /&gt;&amp;lt;cfif find(" ", mid(arguments.PageName, r, 1))&amp;gt;&lt;br /&gt;&amp;lt;cfset arguments.SpecialChar = '[space]'&amp;gt;&lt;br /&gt;&amp;lt;cfelse&amp;gt;&lt;br /&gt;&amp;lt;cfset arguments.SpecialChar = mid(arguments.PageName, r, 1)&amp;gt;&lt;br /&gt;&amp;lt;/cfif&amp;gt;&lt;br /&gt;&amp;lt;/cfif&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &amp;lt;!--- Creating the return structure --&amp;gt;&lt;br /&gt;&amp;lt;!--- Returns: 1) Special Char Error 2) Special Char --&amp;gt;&lt;br /&gt;&amp;lt;cfset arguments.retSpecialCharsCheck = StructNew()&amp;gt;&lt;br /&gt;&amp;lt;cfset arguments.retSpecialCharsCheck.SpecialCharsError = arguments.SpecialCharsError&amp;gt;&lt;br /&gt;&amp;lt;cfset arguments.retSpecialCharsCheck.SpecialChar = arguments.SpecialChar&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!--- Return the Result Variable Structure --&amp;gt;&lt;br /&gt;&amp;lt;cfreturn arguments.retSpecialCharsCheck&amp;gt;&lt;br /&gt;&amp;lt;/cffunction&amp;gt;&lt;br /&gt;&amp;lt;!--- Function End --&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Online Reference:&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;Good Reference of special URL Encoding&lt;/span&gt;&lt;/strong&gt;&lt;a href="http://www.blooberry.com/indexdot/html/topics/urlencoding.htm"&gt;&lt;br /&gt;http://www.blooberry.com/indexdot/html/topics/urlencoding.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;RFC &lt;strong&gt;&lt;span style="font-weight: normal;"&gt;URL Encoding&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;a href="http://www.rfc-editor.org/rfc/rfc1738.txt"&gt;http://www.rfc-editor.org/rfc/rfc1738.txt&lt;/a&gt;&lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9003612-112884163109792823?l=coldfusiononline.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112884163109792823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112884163109792823'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/2005/10/coldfusion-function-using-regex.html' title='ColdFusion function using RegEX (Regular Expression) to verify special characters in URL'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-9003612.post-112832230269721646</id><published>2005-10-02T07:00:00.000-07:00</published><updated>2005-10-03T00:19:37.166-07:00</updated><title type='text'>Create an Excel Spreadsheet dynamically using ColdFusion</title><content type='html'>&lt;p&gt;&lt;strong&gt;Goal:&lt;br /&gt;&lt;/strong&gt;Best way to create an Excel spreadsheet dynamically using ColdFusion.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Story:&lt;br /&gt;&lt;/strong&gt;There are many occasions when I have to prepare the Excel Reports from database. I have two options &lt;/p&gt;&lt;ul&gt;&lt;li&gt;I run SQL query in query analyzer and open the Excel and copy the results. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;I copy the query in my ColdFusion code and create the Excel File dynamically.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;em&gt;The advantages of the second options are: &lt;/em&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;I save lots of time &lt;/li&gt;&lt;br /&gt;&lt;li&gt;I can save the code file for future use. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;I do not have to open two different programs (MS SQL and MS Excel) to do one simple job. I am able to do it right away in my HTML Editor. I use Dream Weaver but one can use Notepad. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;I can give the name of the Excel file on the file. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;If the data is changed, complete process can be done automatically running the same code again. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;If we use cfschedule to run the schedule task, we can create the dynamic Excel file with dynamic name everytime.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Result:&lt;br /&gt;&lt;/strong&gt;I can produce Excel file in ColdFusion using dynamic data and dynamic file name on the fly.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Code:&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&amp;lt;cfquery datasource="MyDataSourceHere" name="qryAccessData"&amp;gt;&lt;br /&gt;SELECT Field1, Field2, FieldN&lt;br /&gt;FROM AccessTable&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!--- cfheader will create the xls file download on fly (run of code) ---&amp;gt;&lt;br /&gt;&amp;lt;cfheader name="content-disposition" value="inline;filename=AccessToExcelDump.xls"&amp;gt; &amp;lt;!--- Mime type which will create the content type of Excel ---&amp;gt;&lt;br /&gt;&amp;lt;cfcontent type="application/msexcel"&amp;gt;&lt;br /&gt;&amp;lt;table border="1"&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;lt;th&amp;gt;Field1&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;lt;th&amp;gt;Field2&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;lt;th&amp;gt;FieldN&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&amp;lt;cfoutput query="qryAccessData"&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;#qryAccessData.Field1#&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;#qryAccessData.Field2#&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;#qryAccessData.FieldN#&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&amp;lt;/cfoutput&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Online Reference:&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;cfcontent &lt;a href="http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-a17.htm#wp2850760"&gt;http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-a17.htm#wp2850760&lt;/a&gt;&lt;/p&gt;cfheader &lt;a href="http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p56.htm#wp1355655"&gt;http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p56.htm#wp1355655&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9003612-112832230269721646?l=coldfusiononline.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112832230269721646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/112832230269721646'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/2005/10/create-excel-spreadsheet-dynamically.html' title='Create an Excel Spreadsheet dynamically using ColdFusion'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-9003612.post-110247184848838545</id><published>2005-09-25T07:00:00.000-07:00</published><updated>2005-10-09T18:35:47.290-07:00</updated><title type='text'>Error Debugging using OnRequestEnd.cfm</title><content type='html'>&lt;strong&gt;Goal: &lt;/strong&gt; More debugging information. &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;strong&gt;Story: &lt;/strong&gt;&lt;br /&gt;Let us start our blog with debugging information. &lt;br /&gt;We all know that we need debugging information all the time. Personally sometime for me all the default debugging information is not enough and I want more. &lt;br /&gt;I put all the information in the OnRequestEnd.cfm . So everytime, I need it I run I include this file. As we know this file should be in the same folder as Application.cfm and also it should be named as OnRequestEnd.cfm on Unix/Linux machine. Windows machine does not care for case. I keep this file in the root folder as _OnRequestEnd.cfm and whenever I need it I rename it as OnRequestEnd.cfm . &lt;br /&gt;Also there is optional code for sending email to user. &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;strong&gt;Result: &lt;/strong&gt;&lt;br /&gt;The code will be display the entire possible variables one will ever need to debug the code. &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;strong&gt;Code: &lt;/strong&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt;cfsavecontent variable=&amp;quot;generated_output&amp;quot;&amp;gt; &lt;br /&gt;&amp;lt;cfoutput&amp;gt; &lt;br /&gt;&amp;lt;pre&amp;gt;&amp;lt;font face=&amp;quot;arial&amp;quot;&amp;gt; &lt;br /&gt;&amp;lt;strong&amp;gt;date.time:&amp;lt;/strong&amp;gt; &lt;br /&gt;#now()# &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt;strong&amp;gt;cgi.remote_addr:&amp;lt;/strong&amp;gt; &lt;br /&gt;#cgi.remote_addr# &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt;strong&amp;gt;cfcatch.type:&amp;lt;/strong&amp;gt; &lt;br /&gt;#cfcatch.type# &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt;strong&amp;gt;cfcatch.message :&amp;lt;/strong&amp;gt; &lt;br /&gt;#cfcatch.message # &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt;strong&amp;gt;cfcatch.detail:&amp;lt;/strong&amp;gt; &lt;br /&gt;#cfcatch.detail# &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt;strong&amp;gt;cfcatch.tagcontext:&amp;lt;/strong&amp;gt; &lt;br /&gt;&amp;lt;cfloop index=i from=1 to=#ArrayLen(CFCATCH.TAGCONTEXT)#&amp;gt;&amp;lt;cfset sCurrent = #CFCATCH.TAGCONTEXT[i]#&amp;gt;#i# #sCurrent[&amp;quot;ID&amp;quot;]# (#sCurrent[&amp;quot;LINE&amp;quot;]#,#sCurrent[&amp;quot;COLUMN&amp;quot;]#) #sCurrent[&amp;quot;TEMPLATE&amp;quot;]#&amp;lt;br&amp;gt;&amp;lt;/cfloop&amp;gt; &lt;br /&gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt;strong&amp;gt;Variables&amp;lt;/&amp;lt;strong&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;cfdump var=&amp;quot;#variables#&amp;quot;&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;strong&amp;gt;FORM&amp;lt;/&amp;lt;strong&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;cfdump var=&amp;quot;#form#&amp;quot;&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;strong&amp;gt;URL&amp;lt;/&amp;lt;strong&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;cfdump var=&amp;quot;#url#&amp;quot;&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;strong&amp;gt;CGI&amp;lt;/&amp;lt;strong&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;cfdump var=&amp;quot;#cgi#&amp;quot;&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;strong&amp;gt;COOKIE&amp;lt;/&amp;lt;strong&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;cfdump var=&amp;quot;#cookie#&amp;quot;&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;strong&amp;gt;CLIENT&amp;lt;/&amp;lt;strong&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;cfdump var=&amp;quot;#client#&amp;quot;&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;strong&amp;gt;Session&amp;lt;/&amp;lt;strong&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;cfdump var=&amp;quot;#session#&amp;quot;&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;strong&amp;gt;Application&amp;lt;/&amp;lt;strong&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;cfdump var=&amp;quot;#application#&amp;quot;&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;strong&amp;gt;Server&amp;lt;/&amp;lt;strong&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;cfdump var=&amp;quot;#server#&amp;quot;&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;&amp;lt;/font&amp;gt; &lt;br /&gt;&amp;lt;/cfoutput&amp;gt; &lt;br /&gt;&amp;lt;/cfsavecontent&amp;gt; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;lt;cfmail server=&amp;quot;mail.com&amp;quot; from=&amp;quot;system@mail.com&amp;quot; to=&amp;quot;admin@mail.com&amp;quot; cc=&amp;quot;owner@mail.com&amp;quot; subject=&amp;quot;#cgi.http_host# - Error&amp;quot; type=&amp;quot;HTML&amp;quot;&amp;gt; &lt;br /&gt;#generated_output# &lt;br /&gt;&amp;lt;/cfmail&amp;gt; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;strong&gt;Online references: &lt;/strong&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;We do not need as I already have wrote most of it here. &lt;br /&gt;&amp;nbsp; &lt;br /&gt;---Pinal&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9003612-110247184848838545?l=coldfusiononline.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/110247184848838545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/110247184848838545'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/2005/09/error-debugging-using-onrequestendcfm.html' title='Error Debugging using OnRequestEnd.cfm'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-9003612.post-110255794008513264</id><published>2005-09-15T07:00:00.000-07:00</published><updated>2005-10-20T19:40:10.536-07:00</updated><title type='text'>eBaySearch Technique and cflocation</title><content type='html'>&lt;strong&gt;Goal: &lt;/strong&gt;Submit eBay search Queries through URL.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Story: &lt;/strong&gt;&lt;br /&gt;Well, every time, I go to eBay I have good search form there. The search is pretty good but sometime it brings wrong information as user has entered the wrong information in it. Well, I do not have any solution for that. There could be some good information in the book “eBay Hack” but I do not have that book so I have to figure out myself.&lt;br /&gt;At present I am working in the company which has to do search in the &lt;a href="http://www.ebaymotors.com/"&gt;http://www.ebaymotors.com/&lt;/a&gt;. Well, what we were trying to bring out is the similar car information what user is about to launch the auction.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Problems Faced: &lt;/strong&gt;&lt;br /&gt;• eBay does not allow you to pass the parameter in the URL and it rewrites the URL if you pass any other value then exact string.&lt;br /&gt;•  eBay uses JavaScript rewriting the form and submits to DLL of it which brings back the results.&lt;br /&gt;•  eBay does not use common delimiter like ?, =, &amp;, comma or other.&lt;br /&gt;•  Post or Get can not be used.&lt;br /&gt;• We wanted to be completely legal and did want to use their API, as eBay does not provide API for search, eBay want the user to come to their site to do the search.&lt;br /&gt;•  While using any of the form method it posts like this in the URL like&lt;br /&gt;&lt;a href="http://mysearch.cfm/?searchterm=car&amp;amp;cat=honda"&gt;http://mysearch.cfm/?searchterm=car&amp;cat=honda&lt;/a&gt;instead eBay will use following search URL &lt;a href="http://mysearch/?searchcatQQAcarZcatQQAhondamoremoremore"&gt;&lt;br /&gt;&lt;br /&gt;http://mysearch?searchcatQQAcarZcatQQAhondamoremoremore &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Solution: &lt;/strong&gt;&lt;br /&gt;Using try and error and different approaches finally I figured out following logic. This is for the information and it is not authorized by eBay or any other API development programs.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;This only works with &lt;strong&gt;PASSENGER &lt;/strong&gt;cat in eBayMotors: &lt;/em&gt;&lt;br /&gt;&lt;em&gt;  &lt;/em&gt;&lt;br /&gt;BASE URL: &lt;a href="http://motors.search.ebay.com/_W0QQsacategoryZ6001"&gt;&lt;br /&gt;&lt;br /&gt;http://motors.search.ebay.com/_W0QQsacategoryZ6001 &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;MAKE Parameter: QQsamotorsmakeZbmw&lt;br /&gt;&lt;br /&gt;MODEL Parameter: QQsamotorsmodelZ3Q20Series&lt;br /&gt;&lt;br /&gt;START YEAR Parameter: QQsamotorsstartyearZ2000&lt;br /&gt;&lt;br /&gt;END YEAR Parameter: QQsamotorsendyearZ2000&lt;br /&gt;&lt;br /&gt;ALL ITEMS - Pass no value&lt;br /&gt;&lt;br /&gt;AUCTIONS - Pass QQsasaleclassZ1&lt;br /&gt;&lt;br /&gt;BUY IT NOW - Pass QQsasaleclassZ2&lt;br /&gt;&lt;br /&gt;SEPERATOR (LIKE=) – QQSA&lt;br /&gt;&lt;br /&gt;DELIMITER – Z&lt;br /&gt;&lt;br /&gt;SPACE BETWEEN WORD – Q20&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Architecture: &lt;/strong&gt;&lt;br /&gt;As we know we can not use get or post as they will post the param in the form of the coldfusion and using = and &amp;amp; in them. What we had to do is that we have to create the required search string first and then after open a new page and display the results there.&lt;br /&gt;I finally decided to use the &amp;lt;cflocation url= “someurl”&amp;gt; tag there as it directs the page to the url specified in the tag.&lt;br /&gt;In summery the architecture development steps are as follows.&lt;br /&gt;•  Create a form&lt;br /&gt;•  Submit to new page use target=_blank&lt;br /&gt;•  Create a search string&lt;br /&gt;•  Use cflocation to direct that to ebay search page&lt;br /&gt;•  Smile.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Result: &lt;/strong&gt;&lt;br /&gt;We were finally able to create required search string and accomplish our task..&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Code: &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Use following function to replace things in variable: &lt;/em&gt;&lt;br /&gt;&amp;lt;cfset variables.ebay_make = rereplace("#trim(EbayCat.CatName)#"," ", "Q20", "all")&amp;gt;&lt;br /&gt;&lt;em&gt;  &lt;/em&gt;&lt;br /&gt;&lt;em&gt;===== &lt;/em&gt;&lt;br /&gt;&lt;em&gt;  &lt;/em&gt;&lt;br /&gt;&lt;em&gt;Use following code to direct to eBay Page:locationpage.cfm &lt;/em&gt;&lt;br /&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;&amp;lt;cflocation url="#display_compare##with_the_compare#"&amp;gt;&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;===== &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Following is the constructions of the form using drop down menu: &lt;/em&gt;&lt;br /&gt;&amp;lt;form name="comparable_auctions" method="post" action="locationpage.cfm" target="_blank"&amp;gt;&lt;br /&gt;&amp;lt;strong&amp;gt;Comparable Auctions&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;Display&lt;br /&gt;&amp;lt;select name="display_compare" style="font-size:10px; width: 141px;"&amp;gt;&lt;br /&gt;&amp;lt;option value="http://motors.search.ebay.com/_W0QQsacategoryZ6001QQsasaleclassZ1"&amp;gt;&lt;br /&gt;Auctions Only&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;option value="http://motors.search.ebay.com/_W0QQsacategoryZ6001QQsasaleclassZ2"&amp;gt;&lt;br /&gt;Buy It Now Auctions Only&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;option value="http://motors.search.ebay.com/_W0QQsacategoryZ6001"&amp;gt;&lt;br /&gt;All Listings&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;/select&amp;gt;&lt;br /&gt;with the&lt;br /&gt;&amp;lt;select name="with_the_compare" style="font-size:10px; width: 161px;"&amp;gt;&lt;br /&gt;&amp;lt;option value="&amp;lt;cfoutput&amp;gt;QQsamotorsmakeZ#trim(variables.ebay_make)#&lt;br /&gt;QQsamotorsmodelZ#trim(variables.ebay_model)#&amp;lt;/cfoutput&amp;gt;"&amp;gt;&lt;br /&gt;Same make and model&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;option value="&amp;lt;cfoutput&amp;gt;QQsamotorsmakeZ#trim(variables.ebay_make)#&lt;br /&gt;QQsamotorsmodelZ#trim(variables.ebay_model)#QQsamotorsstartyearZ&lt;br /&gt;#trim(val(variables.year))#QQsamotorsendyearZ#trim(val(variables.year))#&amp;lt;/cfoutput&amp;gt;"&amp;gt;&lt;br /&gt;Same make, model and year&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;/select&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" value=" View " &amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Online references: &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;We do not need as I already have wrote most of it here.&lt;br /&gt;&lt;br /&gt;---Pinal&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9003612-110255794008513264?l=coldfusiononline.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/110255794008513264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9003612/posts/default/110255794008513264'/><link rel='alternate' type='text/html' href='http://coldfusiononline.blogspot.com/2005/09/ebaysearch-technique-and-cflocation.html' title='eBaySearch Technique and cflocation'/><author><name>Pinal Dave</name><uri>http://www.blogger.com/profile/16511217771212178115</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_g7q13Wpjw-I/R8vF4psJa0I/AAAAAAAAAQI/9qN3s96SBOw/S220/pinalsmall.gif'/></author></entry></feed>
