<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - ColdFusion</title>
		<link>http://www.daniweb.com/forums/</link>
		<description><![CDATA[Our ColdFusion forum is the place for Q&A-style discussions related to this Adobe / Macromedia language.]]></description>
		<language>en-US</language>
		<lastBuildDate>Wed, 23 Dec 2009 09:22:04 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - ColdFusion</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Multiple Related Selects using coldfusion and Javascript</title>
			<link>http://www.daniweb.com/forums/thread248068.html</link>
			<pubDate>Mon, 21 Dec 2009 16:57:55 GMT</pubDate>
			<description>Hi  
I am trying multiple related selects using coldfusion and javascript. I have four dropdown list first one is related to the second one and thrid one is related to the first one. It is working as per expected if i have two drop down lists which are related to each other , but if I add third and...</description>
			<content:encoded><![CDATA[<div>Hi <br />
I am trying multiple related selects using coldfusion and javascript. I have four dropdown list first one is related to the second one and thrid one is related to the first one. It is working as per expected if i have two drop down lists which are related to each other , but if I add third and fourth one and then I select the first one the fourth dropdown is getting selected and if I try the thrid one nothing is happening the second dropdown is not displaying the data which should be populated automatically if i select the first one and if I select the third one fourth should be display data automatically<br />
<br />
Please help me get the other selects working. Thank you in advance<br />
<br />
<br />
Here is the code<br />
 <pre style="margin:20px; line-height:13px">&lt;cfquery name=&quot;Offices&quot; datasource=&quot;Ps&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Select OName, Ocode <br />
&nbsp; &nbsp; &nbsp; &nbsp; From Office <br />
&nbsp; &nbsp; &nbsp; &nbsp; Where Area = '01'&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Order by OName <br />
&lt;/cfquery&gt; <br />
&lt;cfquery name=&quot;Districts&quot; datasource=&quot;ds&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Select OName, OCode <br />
&nbsp; &nbsp; &nbsp; &nbsp; From office <br />
&nbsp; &nbsp; &nbsp; &nbsp; Where Area = '01' and OType = 'F1' <br />
&nbsp; &nbsp; &nbsp; &nbsp; Order by OName <br />
&lt;/cfquery&gt; <br />
&nbsp; <br />
&nbsp; &lt;SCRIPT LANGUAGE=&quot;JavaScript1.1&quot;&gt;<br />
&lt;!--<br />
if (typeof(Option)+&quot;&quot; != &quot;undefined&quot;) v=true;<br />
//--&gt;<br />
&lt;/SCRIPT&gt;<br />
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt; <br />
&nbsp;<br />
if(v){a=new Array();aln=0;} <br />
function getFormNum (formName) { <br />
formNum =-1; <br />
for (i=0;i&lt;document.forms.length;i++){ <br />
tempForm = document.forms[i]; <br />
if (formName == tempForm) { <br />
formNum = i; <br />
correctForm = tempForm; <br />
break; <br />
&nbsp;  } <br />
} <br />
return formNum; <br />
} <br />
function jmp(formName,elementNum) { <br />
getFormNum(formName); <br />
if (formNum&gt;=0) { <br />
with (document.f2.myChoice) { <br />
i=selectedIndex; <br />
if (i&gt;=0) location=options[i].value; <br />
&nbsp; &nbsp; &nbsp; } <br />
&nbsp;  } <br />
} <br />
function O(txt,url) { <br />
a[k]=new Option(txt,url);k++; <br />
} <br />
function relate(formName,elementNum,j) { <br />
if(v) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; k=1; <br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j==0) { // 1st category items <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=new Array(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O(&quot;-------------------&quot;,&quot;---&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j==1) { // 1st category items <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=new Array(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O(&quot;-------------------&quot;,&quot;---&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j==2) { // 1st category items <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=new Array(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfoutput query=&quot;Offices&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O(&quot;#Oname#&quot;,&quot;#Ocode#&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfoutput&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j==3) { // 2nd category items <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=new Array(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfoutput query=&quot;Districts&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O(&quot;#Oname#&quot;,&quot;#Ocode#&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfoutput&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; aln2=a.length; <br />
&nbsp; &nbsp; &nbsp; &nbsp; getFormNum(f2); <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (formNum&gt;=0) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formNum = formNum + 1; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with (document.f2.myChoice) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i=options.length-1;i&gt;0;i--) options[i]=null; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i=1;i&lt;aln2;i++) options[i-1]=a[i]; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; options[0].selected=true; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; <br />
else { <br />
&nbsp; &nbsp; &nbsp; &nbsp; jmp(f2,elementNum); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
document.f2.myChoice.focus(); <br />
} <br />
&lt;/SCRIPT&gt; <br />
<br />
<br />
&lt;SCRIPT LANGUAGE=&quot;JavaScript1.1&quot;&gt;<br />
&lt;!--<br />
if (typeof(Option)+&quot;&quot; != &quot;undefined&quot;) v=true;<br />
//--&gt;<br />
&lt;/SCRIPT&gt;<br />
<br />
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;<br />
<br />
&lt;!-- Original:&nbsp; webreference.com&nbsp; --&gt;<br />
&lt;!-- Web Site:&nbsp; http://webreference.com&nbsp; --&gt;<br />
<br />
&lt;!-- This script and many more are available free online at --&gt;<br />
&lt;!-- The JavaScript Source!! http://javascript.internet.com --&gt;<br />
<br />
&lt;!--&nbsp; Begin<br />
if(v){a=new Array();aln=0;}<br />
function getFormNum (formName) {<br />
formNum =-1;<br />
for (i=0;i&lt;document.forms.length;i++){<br />
tempForm = document.forms[i];<br />
if (formName == tempForm) {<br />
formNum = i;<br />
correctForm = tempForm;<br />
break;<br />
&nbsp;  }<br />
}<br />
return formNum;<br />
}<br />
function jmp(formName,elementNum) {<br />
getFormNum(formName);<br />
if (formNum&gt;=0) {<br />
with (document.f2.mySelect) {<br />
i=selectedIndex1;<br />
if (i&gt;=0) location=options[i].value;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;  }<br />
}<br />
function O(txt,url) {<br />
a[k]=new Option(txt,url);k++;<br />
}<br />
function relate(formName,elementNum,j) {<br />
if(v) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; k=1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j==0) { // 1st category items <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=new Array(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O(&quot;-------------------&quot;,&quot;---&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j==1) { // 1st category items <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=new Array(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O(&quot;-------------------&quot;,&quot;---&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j==2) { // 1st category items <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=new Array(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfoutput query=&quot;Offices&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O(&quot;#Oname#&quot;,&quot;#Ocode#&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfoutput&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j==3) { // 2nd category items <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=new Array(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfoutput query=&quot;Districts&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O(&quot;#Oname#&quot;,&quot;#Ocode#&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfoutput&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; aln2=a.length;<br />
&nbsp; &nbsp; &nbsp; &nbsp; getFormNum(f2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (formNum&gt;=0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formNum = formNum + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with (document.f2.mySelect) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i=options.length-1;i&gt;0;i--) options[i]=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i=1;i&lt;aln2;i++) options[i-1]=a[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; options[0].selected=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; } <br />
else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; jmp(f2,elementNum);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
document.f2.mySelect.focus();<br />
}<br />
// End --&gt;<br />
&lt;/SCRIPT&gt;<br />
<br />
<br />
&nbsp; <br />
&lt;cfform name=f2 action=&quot;display.cfm&quot;&gt; <br />
&lt;cfif '0' is not &quot;Reg&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;label for=ReportLevel class=&quot;style3&quot;&gt;&lt;span class=&quot;style6&quot;&gt;Report Level:&lt;/span&gt;&lt;/label&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=ReportLevel id=ReportLevel onChange=&quot;relate(this.form,2,this.selectedIndex);&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Reg&quot; selected&gt;Reg Summary&amp;nbsp;&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Area&quot; selected&gt;Area Summary&amp;nbsp;&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Office&quot;&gt;Office&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;District&quot;&gt;District&amp;nbsp;&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;label for=myChoice&gt;&lt;span class=&quot;style6&quot;&gt;Select Office: (if applicable)&lt;/span&gt;&lt;/label&gt;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select&nbsp; &nbsp; &nbsp; &nbsp;  name=myChoice <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ID=myChoice <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;---&quot;&gt;-------------------&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt; <br />
&nbsp; &nbsp;  &lt;p&gt;&lt;label for=ReportLevelz class=&quot;style3&quot;&gt;&lt;span class=&quot;style6&quot;&gt;Assigned Component:&lt;/span&gt;&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=ReportLevelz id=ReportLevelz onChange=&quot;relate(this.form,2,this.selectedIndex1);&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Reg&quot; selected&gt;Reg Summary&amp;nbsp;&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Area&quot; selected&gt;Area Summary&amp;nbsp;&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Office&quot;&gt;Office&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;District&quot;&gt;District&amp;nbsp;&lt;/option&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;label for=mySelect&gt;&lt;span class=&quot;style6&quot;&gt;Assinged Office &lt;/span&gt;&lt;/label&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select&nbsp; &nbsp; &nbsp; &nbsp;  name=mySelect<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ID=mySelect<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;---&quot;&gt;-------------------&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp;  <br />
&nbsp; &nbsp; &lt;cfelse&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;Home Office &quot; value=&quot;Reg&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;myChoice&quot; value=&quot;---&quot;&gt;<br />
&nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;mySelect&quot; value=&quot;---&quot;&gt;<br />
&lt;/cfif&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;/cfform&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>sanm</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread248068.html</guid>
		</item>
		<item>
			<title><![CDATA[SMTP server replied "5.7.1 Unable to relay for]]></title>
			<link>http://www.daniweb.com/forums/thread246735.html</link>
			<pubDate>Wed, 16 Dec 2009 02:06:34 GMT</pubDate>
			<description><![CDATA[Hi; 
Error in cold fusion 5. Failed to send the spooled mail file, E:\CFusion\Mail\spool\BD81.cfmail. SMTP server replied "5.7.1 Unable to relay for aaaa@bbbb.com" Moved file to E:\CFusion\Mail\undelivr\BD84.cfmail. 
Can someone help me.]]></description>
			<content:encoded><![CDATA[<div>Hi;<br />
Error in cold fusion 5. Failed to send the spooled mail file, E:\CFusion\Mail\spool\BD81.cfmail. SMTP server replied &quot;5.7.1 Unable to relay for <a href="mailto:aaaa@bbbb.com">aaaa@bbbb.com</a>&quot; Moved file to E:\CFusion\Mail\undelivr\BD84.cfmail.<br />
Can someone help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>satar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread246735.html</guid>
		</item>
		<item>
			<title>Help Needed!!</title>
			<link>http://www.daniweb.com/forums/thread243331.html</link>
			<pubDate>Thu, 03 Dec 2009 11:36:33 GMT</pubDate>
			<description>:?:Hi! I am in search for some technical newsletters to subscribe.. Can someone provide me with a list??</description>
			<content:encoded><![CDATA[<div>:?:Hi! I am in search for some technical newsletters to subscribe.. Can someone provide me with a list??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>suryakantb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243331.html</guid>
		</item>
		<item>
			<title>Coldfusion Clustering issue - Images are not loading properly</title>
			<link>http://www.daniweb.com/forums/thread241826.html</link>
			<pubDate>Fri, 27 Nov 2009 15:15:31 GMT</pubDate>
			<description>Hi, 
 
I am new to coldfusion. I installed CF7 in multiserver configuration. I created two instances on same box and created a cluster. I can browse to the two instances seperately and thru the cluster. 
 
I am having an issue. When I access instances directly the site is working fine, but when I...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am new to coldfusion. I installed CF7 in multiserver configuration. I created two instances on same box and created a cluster. I can browse to the two instances seperately and thru the cluster.<br />
<br />
I am having an issue. When I access instances directly the site is working fine, but when I access it thru cluster, the images, javascript are not loading. I am getting error on jjQuery also( jQuery is undefined error).<br />
<br />
I might have missed a basic thing in the installation but do not know what. <br />
<br />
Could anyone help me to resolve this issue?<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>sathish009</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241826.html</guid>
		</item>
		<item>
			<title>Does ColdFusion MX 7 have cfselect bind option?</title>
			<link>http://www.daniweb.com/forums/thread240488.html</link>
			<pubDate>Sun, 22 Nov 2009 19:17:48 GMT</pubDate>
			<description>Hi everyone, 
 
                        In coldfsuion mx 7 does cfselect supports bind option which is supported by coldfusion 8.I have seen live docs for cfselect but in live docs it dint show any bind option for cfselect tag. If bind attribute is not present how we need implement related selects....</description>
			<content:encoded><![CDATA[<div>Hi everyone,<br />
<br />
                        In coldfsuion mx 7 does cfselect supports bind option which is supported by coldfusion 8.I have seen live docs for cfselect but in live docs it dint show any bind option for cfselect tag. If bind attribute is not present how we need implement related selects.<br />
<br />
                       I have two cfselects in which the second should populate values by executing a query where the query takes the value that is selected in first cfselect.....how i need to approach this problem....for some reason bind option doesnt worked in coldfusion mx 7 which worked fine in coldfusion 8</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>coolcold</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240488.html</guid>
		</item>
		<item>
			<title>Simple addition not working - can anyone help?</title>
			<link>http://www.daniweb.com/forums/thread239084.html</link>
			<pubDate>Tue, 17 Nov 2009 02:09:23 GMT</pubDate>
			<description><![CDATA[First I run a simple query to get the max ID from the table, which 
returns a number 10284.  To which I would like to add a randomly generated number.  So I get a number like '2' and it adds it and I get 10287 - which is INCORRECT!  I was expecting 10286.  So what am I doing wrong?  I've run this...]]></description>
			<content:encoded><![CDATA[<div>First I run a simple query to get the max ID from the table, which<br />
returns a number 10284.  To which I would like to add a randomly generated number.  So I get a number like '2' and it adds it and I get 10287 - which is INCORRECT!  I was expecting 10286.  So what am I doing wrong?  I've run this dozens of times and I can't find a pattern to it...the random number is generating nicely but the results of the two values are rarely what I expect.  Thanks for any help!<br />
<br />
 <pre style="margin:20px; line-height:13px"> <br />
&lt;cfquery name=&quot;Find_Max&quot; datasource=&quot;#application.dbfile#&quot;&gt;<br />
&nbsp;  SELECT max(MainID) as maxID<br />
&nbsp;  FROM Main<br />
&lt;/cfquery&gt;<br />
<br />
Returns a number from the table like 10284.<br />
<br />
&lt;cfset total =&nbsp; val(#Find_Max.MaxID#) + val(#RandRange(1,10)#)&gt;<br />
&nbsp;<br />
&lt;cfoutput&gt;val(#RandRange(1,10)#)&lt;/cfoutput&gt;&lt;br /&gt;<br />
&lt;CFOUTPUT&gt;#Find_Max.MaxID# + random number = #total#&lt;/CFOUTPUT&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>oldnewbee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239084.html</guid>
		</item>
		<item>
			<title>limit access to Coldfusion on Windows 2003 (iis) server</title>
			<link>http://www.daniweb.com/forums/thread239026.html</link>
			<pubDate>Mon, 16 Nov 2009 20:18:23 GMT</pubDate>
			<description>I have 3-4 sites that do not need access to Coldfusion.  I want to block their ability to use it.  How can I do this?  I want to especially ensure that these sites will not be able to call on any of the data sources set up in coldfusion.   
 
galaxygal</description>
			<content:encoded><![CDATA[<div>I have 3-4 sites that do not need access to Coldfusion.  I want to block their ability to use it.  How can I do this?  I want to especially ensure that these sites will not be able to call on any of the data sources set up in coldfusion.  <br />
<br />
galaxygal</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>galaxygal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239026.html</guid>
		</item>
		<item>
			<title>Simple? SQL insert problem</title>
			<link>http://www.daniweb.com/forums/thread238355.html</link>
			<pubDate>Fri, 13 Nov 2009 18:46:29 GMT</pubDate>
			<description>I am building a site for my hockey league. I have been dealing with CF for a number of years, but would in no way class myself as any sort of expert. I am not sure if I am just having a brainfart, or what with this one! 
 
I have a simple form that pulls the rosters of a team based on the schedule...</description>
			<content:encoded><![CDATA[<div>I am building a site for my hockey league. I have been dealing with CF for a number of years, but would in no way class myself as any sort of expert. I am not sure if I am just having a brainfart, or what with this one!<br />
<br />
I have a simple form that pulls the rosters of a team based on the schedule and whether or not they are the home team or the away team.<br />
<br />
I then want to insert (if checked) their player_id and (if player_id checked), the jersey number in which they wore from a populated list menu. This needs to be inserted into another table called scoresheet. The only thing that is important is that they are split between roster_home and roster_away (the team_id's have to be unique to the proper team)<br />
<br />
The checkbox holds the player_id list as &quot;roster_away or roster_home&quot;<br />
The list menu holds potential jersey numbers;<br />
<br />
Seems simple enough, but I can't get the insert to work properly and align the player_id with the jersey numbers.<br />
<br />
Help?<br />
<br />
Here is my form:<br />
 <pre style="margin:20px; line-height:13px">&lt;form name=&quot;game_rosters&quot; action=&quot;&quot; method=&quot;POST&quot;&gt;<br />
&lt;table width=&quot;300&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;70&quot; colspan=&quot;3&quot; align=&quot;center&quot;&gt;&lt;cfoutput&gt;#getGameInfo.away_team#&lt;/cfoutput&gt; Game Roster&lt;/td&gt; <br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Played?&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Jersey&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Player&lt;/td&gt;<br />
&lt;/tr&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfoutput query=&quot;getAwayRoster&quot;&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;70&quot; align=&quot;center&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;roster_away&quot; type=&quot;checkbox&quot; value=&quot;#getAwayRoster.player_id#&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;80&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;away_player_jersey_number&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;#getAwayRoster2.player_jersey_number#&quot; selected&gt;#getAwayRoster2.player_jersey_number#&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfloop index=&quot;awj&quot; from=&quot;0&quot; to=&quot;99&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;#awj#&quot;&gt;#awj#&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfloop&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp;  &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;td width=&quot;150&quot;&gt;#getAwayRoster.player_fname#&amp;nbsp;#getAwayRoster.player_lname#&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td colspan=&quot;3&quot; align=&quot;center&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfoutput&gt;<br />
&lt;/table&gt;<br />
<br />
&lt;table width=&quot;300&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;70&quot; colspan=&quot;3&quot; align=&quot;center&quot;&gt;&lt;cfoutput&gt;#getGameInfo.home_team#&lt;/cfoutput&gt; Game Roster&lt;/td&gt; <br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Played?&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Jersey&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Player&lt;/td&gt;<br />
&lt;/tr&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfoutput query=&quot;getHomeRoster&quot;&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;70&quot; align=&quot;center&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;roster_home&quot; type=&quot;checkbox&quot; value=&quot;#getHomeRoster.player_id#&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;80&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;home_player_jersey_number&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;#getHomeRoster2.player_jersey_number#&quot; selected&gt;#getHomeRoster2.player_jersey_number#&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfloop index=&quot;hj&quot; from=&quot;0&quot; to=&quot;99&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;#hj#&quot;&gt;#hj#&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfloop&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp;  &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;td width=&quot;150&quot;&gt;#getHomeRoster.player_fname#&amp;nbsp;#getHomeRoster.player_lname#&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td colspan=&quot;3&quot; align=&quot;center&quot;&gt;&lt;input name=&quot;submit&quot; type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfoutput&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>fatlip</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238355.html</guid>
		</item>
		<item>
			<title>Cold Fusion Display FAQ</title>
			<link>http://www.daniweb.com/forums/thread237127.html</link>
			<pubDate>Mon, 09 Nov 2009 04:48:45 GMT</pubDate>
			<description>Hi All, 
 
I am new to this Coldfusion and  i am  creating a FAQ page. 
My Database is MS ACCESS. It is working but with some code error as i am displaying 5 FAQ on first page then next 5 FAQ on the other page and so on. The PROBLEM i am having is lets say my Database has 18 faqs.  
it would...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I am new to this Coldfusion and  i am  creating a FAQ page.<br />
My Database is MS ACCESS. It is working but with some code error as i am displaying 5 FAQ on first page then next 5 FAQ on the other page and so on. The PROBLEM i am having is lets say my Database has 18 faqs. <br />
it would display <br />
page 1 --- 5 FAQ<br />
page 2 --- 5 FAQ<br />
page 3 --- 5 FAQ<br />
PAGE 4 --- DOESNT SHOW ANY FAQ so the remaining 3 are not retrieved from the database.<br />
<br />
I will be very thankful if you guys can please help me with this issue.  <br />
<br />
Below is the code :<br />
*****************************************************<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Frequently Asked Questions&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;<br />
&lt;link href=&quot;FAQStylesheet.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;<br />
<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
&lt;img src=&quot;RMA.JPG&quot; width=&quot;960&quot; height=&quot;63&quot;&gt;<br />
&lt;hr&gt;&lt;hr&gt;<br />
&lt;H2&gt;FREQUENTLY ASKED QUESTIONS&lt;/H2&gt;<br />
&lt;hr&gt;<br />
&lt;br&gt;<br />
&lt;form action=&quot;search.cfm&quot; method=&quot;post&quot;&gt;<br />
&lt;input type=&quot;submit&quot; name=&quot;Search&quot; value=&quot;Search FAQ&quot;&gt; <br />
&lt;/form&gt;<br />
&lt;br&gt;&lt;br&gt;&lt;br&gt;<br />
<br />
&lt;cfquery name=&quot;getfaq&quot; datasource=&quot;faqdatabase&quot;&gt;<br />
Select *<br />
from qa<br />
order by qarefno desc<br />
&lt;/cfquery&gt;<br />
<br />
&lt;cfparam name=&quot;URL.PageIndex&quot; default=&quot;0&quot;&gt;<br />
&lt;cfset Recordsperpage=5 &gt;<br />
&lt;cfset totalpages=(getfaq.recordcount/recordsperpage)-1&gt;<br />
&lt;cfset startrow=(URL.pageindex*recordsperpage)+1&gt;<br />
&lt;cfset endrow=(startrow+recordsperpage)-1&gt; <br />
<br />
&lt;cfoutput&gt;<br />
&nbsp;&lt;cfloop query=&quot;getfaq&quot; &gt;<br />
&nbsp;&lt;cfif currentrow gte startrow&gt; <br />
<br />
&lt;Strong&gt;Qusetion#getfaq.qarefno# :<br />
#getfaq.fquestion#&lt;/Strong&gt;&lt;br&gt;<br />
&lt;Strong&gt;Answer:&lt;/Strong&gt;&nbsp; &lt;h4&gt;#getfaq.fanswer#&lt;/h4&gt;<br />
<br />
<br />
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;<br />
&lt;/cfif&gt;<br />
&lt;cfif currentrow eq endrow&gt;<br />
&lt;cfbreak&gt;<br />
&lt;/cfif&gt;<br />
&lt;/cfloop&gt;<br />
&lt;/cfoutput&gt;<br />
&lt;strong&gt;<br />
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
Select Page&lt;/strong&gt;<br />
&lt;cfloop index=&quot;pages&quot; from=&quot;0&quot; to=&quot;#totalpages#&quot;&gt;<br />
&lt;cfoutput&gt; <br />
|<br />
&lt;cfset displaypgno=pages+1&gt;<br />
&lt;cfif URL.pageindex eq pages&gt;<br />
&lt;strong&gt;#displaypgno#&lt;/strong&gt;<br />
<br />
&lt;cfelse&gt;<br />
&lt;a href=&quot;?pageindex=#pages#&quot;&gt;#displaypgno#&lt;/a&gt;<br />
&lt;/cfif&gt;<br />
|<br />
&lt;/cfoutput&gt;<br />
&lt;/cfloop&gt;<br />
<br />
<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
*****************************************************<br />
<br />
Pls help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>evilsanta03</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237127.html</guid>
		</item>
		<item>
			<title>ColdFusion Current Page + Spry Slider</title>
			<link>http://www.daniweb.com/forums/thread235778.html</link>
			<pubDate>Tue, 03 Nov 2009 21:53:10 GMT</pubDate>
			<description><![CDATA[Hey All, 
 
  
 
Question: I have a coldfusion/access database first of all , and I'm using the Dreamweaver Accordion Slider Spry. So I have 4 panels that slide once clicked, here is my issue... I have my database populated on Panel #3, When I hit next or previous it will go to the next 3 records...]]></description>
			<content:encoded><![CDATA[<div>Hey All,<br />
<br />
 <br />
<br />
Question: I have a coldfusion/access database first of all , and I'm using the Dreamweaver Accordion Slider Spry. So I have 4 panels that slide once clicked, here is my issue... I have my database populated on Panel #3, When I hit next or previous it will go to the next 3 records for that recordset but... it will refresh the page and resume back at Panel #1  so Panel #3 will be closed and have to be reopened to view it.  How can I set the next/previous to go to a certain Panel ID and stay on it.<br />
<br />
 <br />
<br />
I'm no master at coldfusion but I'm just assuming it has something to do with this part of the code with the &quot;#CurrentPage#&quot;<br />
 <pre style="margin:20px; line-height:13px">a href=&quot;#CurrentPage#?PageNum_Edit=#Min(IncrementValue(PageNum_Edit),TotalPages_E dit)##QueryString_Edit#&quot;&gt;Next&lt;/a&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>dimerbox</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235778.html</guid>
		</item>
		<item>
			<title>ColdFusion creating Excel file</title>
			<link>http://www.daniweb.com/forums/thread235763.html</link>
			<pubDate>Tue, 03 Nov 2009 20:57:46 GMT</pubDate>
			<description>Does anyone know if it is possible to format the Excel spreadsheet (dynamically created using ColdFusion and pulling from a MySQL database)  to have the Excel file automatically set to landscape, rather than portrait for printing. My client wants that Excel spreadsheet formatted for him. I have the...</description>
			<content:encoded><![CDATA[<div>Does anyone know if it is possible to format the Excel spreadsheet (dynamically created using ColdFusion and pulling from a MySQL database)  to have the Excel file automatically set to landscape, rather than portrait for printing. My client wants that Excel spreadsheet formatted for him. I have the borders and colors and headers set, but I'm told they've seen this done before, so I was hoping someone could tell me how, or point me in the right direction. I've done a google search, but can't find anything about this. The only way that I can imagine it could be done, is if the data is being put into an Excel file that is acting as a template, with all the features set in advance, but I don't know if that's possible using ColdFusion, nor have I ever seen it done. Any help is greatly appreciated.<br />
<br />
Thank you in advance.<br />
elizabeth</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>elizabeth1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235763.html</guid>
		</item>
		<item>
			<title>Multiple Uploads Help Please</title>
			<link>http://www.daniweb.com/forums/thread235750.html</link>
			<pubDate>Tue, 03 Nov 2009 20:07:10 GMT</pubDate>
			<description>Could someone please help me figure out how to offer multiple upload fields for a CF application? The current app starts with a login, and depending on the role, takes the user to a form that is then filled out. The form processing is done on the same CF page, if all is successful, the resulting...</description>
			<content:encoded><![CDATA[<div>Could someone please help me figure out how to offer multiple upload fields for a CF application? The current app starts with a login, and depending on the role, takes the user to a form that is then filled out. The form processing is done on the same CF page, if all is successful, the resulting code offers the user the ability to then upload an image. This is all working fine. However, now my client wants the user to be able to upload up to 5 images. These images need to each have a restriction on the file type, and the file size. I have that working for the one field, but need to figure out how to do this for multiple fields. Any help is greatly appreciated.<br />
<br />
Thank you in advance.<br />
<br />
elizabeth ;-)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>elizabeth1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235750.html</guid>
		</item>
		<item>
			<title>Reporting Style - coldfusion</title>
			<link>http://www.daniweb.com/forums/thread235703.html</link>
			<pubDate>Tue, 03 Nov 2009 16:44:59 GMT</pubDate>
			<description>First of all, am in the process of learning cold-fusion coding. 
 
I have a doubt in reporting part of coldfusion code. 
 
I need to make a report style such as below 
 
  
 
A B C Pass 
x B x Fail</description>
			<content:encoded><![CDATA[<div>First of all, am in the process of learning cold-fusion coding.<br />
<br />
I have a doubt in reporting part of coldfusion code.<br />
<br />
I need to make a report style such as below<br />
<br />
 <br />
<br />
A B C Pass<br />
x B x Fail<br />
A x C Pass<br />
A x x Pass<br />
<br />
 <br />
<br />
Presently am able to get display data table like below:<br />
<br />
<br />
ABC Pass<br />
BFail<br />
ACPass<br />
APass<br />
<br />
Where A,B,C are feed group;<br />
<br />
 <br />
<br />
My coding specific to looping is below:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;cfoutput query=&quot;PromotionInfo&quot; group= RID&gt; &lt;tr&gt;<br />
<br />
&lt;cfoutput group=&quot;feed_group&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;cfif IsSimpleValue(Feed_Group) &gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&nbsp; nowrap&gt;&lt;a href=&quot;#PromotionInfo.Report#&quot; target=&quot;_blank&quot;&gt;#PromotionInfo.feed_group#&lt;/a&gt;&lt;/td&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfelse&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;strong&gt;N/A&lt;/strong&gt;&lt;/td&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfif&gt;&nbsp; &nbsp; <br />
<br />
&nbsp; &lt;/cfoutput&gt;</pre><br />
 <br />
<br />
I tried for looping, still no sucess so far..<br />
<br />
 <br />
<br />
Note: Problem here in looping is When I tried cfif/Cfloop condition's for every column-wise data,<br />
<br />
cfoutput for  PromotionInfo.feed_group gives ABC (joined values) not separately ie. for each cycle of loop the data queried are shown in one single row. Am not able to split it since they are not having any delimiters.<br />
<br />
 <br />
<br />
Am not sure I gave the right picture of my problem, still expecting someone can help me..<br />
<br />
 <br />
<br />
Thanks<br />
<br />
Keeran</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>keeran6</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235703.html</guid>
		</item>
		<item>
			<title>Scripting Help Needed</title>
			<link>http://www.daniweb.com/forums/thread235393.html</link>
			<pubDate>Mon, 02 Nov 2009 15:34:22 GMT</pubDate>
			<description>I am redesigning a CF site vo2maxtesting.net in html and need to move it to the other server with minimal/no downtime or loss of Page One ranking.  Could anyone help me with redirecting script and tell me if I need to make up a page for each .cfm page or just the index, and anything else I might...</description>
			<content:encoded><![CDATA[<div>I am redesigning a CF site vo2maxtesting.net in html and need to move it to the other server with minimal/no downtime or loss of Page One ranking.  Could anyone help me with redirecting script and tell me if I need to make up a page for each .cfm page or just the index, and anything else I might need to know to do this.  My job depends on getting it right!  Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>powersstuff</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235393.html</guid>
		</item>
		<item>
			<title>Update Cold Fusion site using only html?</title>
			<link>http://www.daniweb.com/forums/thread235009.html</link>
			<pubDate>Sun, 01 Nov 2009 03:22:24 GMT</pubDate>
			<description><![CDATA[I've been asked to make cosmetic changes to a website that was developed in Cold Fusion. Their original web designer has moved on to other things. Is it possible to make simple changes, such as CSS stylesheet adjustments, new logo, new graphics behind navigation links using standard html coding? Or...]]></description>
			<content:encoded><![CDATA[<div>I've been asked to make cosmetic changes to a website that was developed in Cold Fusion. Their original web designer has moved on to other things. Is it possible to make simple changes, such as CSS stylesheet adjustments, new logo, new graphics behind navigation links using standard html coding? Or should I tell them to keep looking for someone well-versed in Cold Fusion programming?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>sherech</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235009.html</guid>
		</item>
		<item>
			<title>Run a CF program as a background process?</title>
			<link>http://www.daniweb.com/forums/thread234707.html</link>
			<pubDate>Fri, 30 Oct 2009 14:59:58 GMT</pubDate>
			<description>I want to write a ColdFusion program that sends an email to a list of people whenever a particular column in a database is edited. I know how to do this, but I want it to run automatically everyday, rather than me having to run it myself. Is there a way to do this??</description>
			<content:encoded><![CDATA[<div>I want to write a ColdFusion program that sends an email to a list of people whenever a particular column in a database is edited. I know how to do this, but I want it to run automatically everyday, rather than me having to run it myself. Is there a way to do this??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>vikingGirl</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234707.html</guid>
		</item>
		<item>
			<title>SubCookies</title>
			<link>http://www.daniweb.com/forums/thread234675.html</link>
			<pubDate>Fri, 30 Oct 2009 12:23:27 GMT</pubDate>
			<description>hi, 
 
Is any one familiar with use of Subcookies with coldfusion? 
 
Please help, its urgent. 
 
Thanks</description>
			<content:encoded><![CDATA[<div>hi,<br />
<br />
Is any one familiar with use of Subcookies with coldfusion?<br />
<br />
Please help, its urgent.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>kg_ally</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234675.html</guid>
		</item>
		<item>
			<title>Question and Answer Forum</title>
			<link>http://www.daniweb.com/forums/thread233091.html</link>
			<pubDate>Sun, 25 Oct 2009 06:19:37 GMT</pubDate>
			<description><![CDATA[I need an application like a forum, but only for the purpose of visitors posing questions for attorneys that will respond once a week.  The site is in .cfm and is fair credit law group dot com.  I'd really like to find someone that can also install it.]]></description>
			<content:encoded><![CDATA[<div>I need an application like a forum, but only for the purpose of visitors posing questions for attorneys that will respond once a week.  The site is in .cfm and is fair credit law group dot com.  I'd really like to find someone that can also install it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>ustelephone</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233091.html</guid>
		</item>
		<item>
			<title>Get referer URL</title>
			<link>http://www.daniweb.com/forums/thread230808.html</link>
			<pubDate>Fri, 16 Oct 2009 20:01:04 GMT</pubDate>
			<description><![CDATA[Hi all, 
I have a form where my colleagues enter basic details about participants in a study. The 'action' attribute of the form takes the control to a 'validateForm.cfm' script where, as the name suggests, form validation is done. If there are any problems, I show the errors as well as the form...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
I have a form where my colleagues enter basic details about participants in a study. The 'action' attribute of the form takes the control to a 'validateForm.cfm' script where, as the name suggests, form validation is done. If there are any problems, I show the errors as well as the form itself, this time populating the fields with the data they entered previously.<br />
<br />
To show the form after it has been submitted, I use the  <pre style="margin:20px; line-height:13px">&lt;cfinclude template /&gt;</pre> tag in validateForm.cfm. The validateForm script can be called twice from my site:<br />
1. When the user enters a NEW participant.<br />
2. When the user edits an EXISTING participant data.<br />
<br />
Since both times the validation is done by the 'validateForm.cfm' script, I cannot hard-code the template name in &lt;cfinclude&gt;. I tried using  <pre style="margin:20px; line-height:13px">&lt;cfinclude template=#CGI.HTTP_REFERER# /&gt;</pre> too, but  I get a <span style="font-style:italic"><span style="color:Red">'The filename, directory name, or volume label syntax is incorrect'</span></span> error.<br />
<br />
What am I missing?<br />
<br />
Thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>cheapterp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230808.html</guid>
		</item>
		<item>
			<title>newbie questions on generating Word document from ColdFusion</title>
			<link>http://www.daniweb.com/forums/thread226581.html</link>
			<pubDate>Tue, 29 Sep 2009 16:49:18 GMT</pubDate>
			<description>I am a complete newbie to ColdFusion and Flex. There was a Flex and Coldfusion developer in our project who left so that work has come to me. My programming background is mainly in C,C++, UNIFACE, PL/SQL with some HTML, JavaScript. 
 
I have a couple of questions and would appreciate if someone...</description>
			<content:encoded><![CDATA[<div>I am a complete newbie to ColdFusion and Flex. There was a Flex and Coldfusion developer in our project who left so that work has come to me. My programming background is mainly in C,C++, UNIFACE, PL/SQL with some HTML, JavaScript.<br />
<br />
I have a couple of questions and would appreciate if someone could respond to them.<br />
<br />
The application I am expected to maintain and enhance prints out reports in PDF format which we need to be in MS-Word format. I have looked at the source for the application and see the below lines in one file<br />
<br />
&lt;cfdocument format=&quot;pdf&quot; filename=&quot;#report_filename_format#&quot; orientation=&quot;landscape&quot;<br />
pagetype=&quot;legal&quot;&gt;<br />
<br />
Is there a way to do it in the program so that the output is a MS-Word document? I understand the format attribute can take only &quot;PDF&quot; or &quot;flashpaper&quot; as values as per <a rel="nofollow" class="t" href="http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&amp;file=00000236.htm" target="_blank">http://livedocs.adobe.com/coldfusion...e=00000236.htm</a>.<br />
<br />
I looked at the example at <a rel="nofollow" class="t" href="http://tutorial13.easycfm.com/" target="_blank">http://tutorial13.easycfm.com/</a> which shows how you can generate a Word document using ColdFusion.<br />
<br />
The first time I ran it it worked well and a word document called Hello.doc was created. The next time, I changed the text to be printed in the Word document from &quot;Hello World&quot; to &quot;Hello World again&quot; it did not and I got the error message &quot;<span style="font-style:italic">Error Occurred While Processing Request<br />
The SaveAs method was not found. There are no methods with the specified method name and argument types. Check your function and try again.</span>  &quot;<br />
<br />
I understand the first time, there was no Word document application object so it was created and the text was written to it properly. The next time, ColdFusion is trying to connect to the Word application object which exists, but somehow it is failing. I changed the name of Word file to be written from Hello.doc to Hello123.doc, but it still did not work. I have permissions to write in the directory where the Word file is being created which is why the example ran fine the first time.<br />
<br />
The way I am running this example is typing code in a file called helloworld.cfm which is present in my C:\ColdFusion8\wwwroot\CFIDE\administrator\ directory using Editplus editor, then opening a browser and trying to open a page <a rel="nofollow" class="t" href="http://127.0.0.1:8500/CFIDE/administrator/index.cfm?target=/CFIDE/administrator/helloworld.cfm?" target="_blank">http://127.0.0.1:8500/CFIDE/administ...elloworld.cfm?</a><br />
<br />
1. Is this the proper method?<br />
<br />
2. Can someone please clarify where I might be erring in running this example and how can I fix it?<br />
<br />
3. Is there an easier way to get the output from ColdFusion in MS-Word format than what I am doing?<br />
<br />
Thanks a lot.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum19.html">ColdFusion</category>
			<dc:creator>H_C</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226581.html</guid>
		</item>
	</channel>
</rss>
