Checkboxes not passing variables correctly

2008-03-25 Thread Steve LaBadie
I have a group of 10 checkboxes where 3 have to be checked. I have a JS
script to validate this. The issue at hand is the values are not being
passed completely.

 

If you choose Robert Mckenzie the name is passed Robet Mkenzie, any
ideas would be appreciated.

 

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
http://www.esu.edu http://www.esu.edu 

 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301995
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Cutter (CFRelated)
Steve,

We want to help, but without seeing the form code it is almost 
impossible to troubleshoot.

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Steve LaBadie wrote:
 I have a group of 10 checkboxes where 3 have to be checked. I have a JS
 script to validate this. The issue at hand is the values are not being
 passed completely.
 
  
 
 If you choose Robert Mckenzie the name is passed Robet Mkenzie, any
 ideas would be appreciated.
 
  
 
 Steve LaBadie, Web Manager
 East Stroudsburg University
 200 Prospect St.
 East Stroudsburg, Pa 18301
 570-422-3999
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 http://www.esu.edu http://www.esu.edu 
 
  
 
 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301998
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Checkboxes not passing variables correctly

2008-03-25 Thread Steve LaBadie
This is the script to check for 3 checked boxes:

script
function is_checked() {
var formObj = document['internships']['fac'];
var count = 0;
for (i=0;iformObj.length; i++) {
if(formObj[i].type == 'checkbox')
if(formObj[i].checked)
count++;
}
if (count  3) {
return false;
}else {
return true;
}
}
function val(){
if (!is_checked()){
alert('You Must Choose 3 Faculty Supervisors');
return false;
}else {
return true;
}
}
/script


trtd align=right valign=topstrongFaculty
Supvisor:/strongnbsp;br /font style=color: #BD2925; font-size:
xx-small;(Choose 3)/fontnbsp;/tdtd
input type=checkbox name=fac value=Joseph Ashcroft /nbsp;Joseph
Ashcroftbr /
input type=checkbox name=fac value=Paul Lippert /nbsp;Paul
Lippertbr /
input type=checkbox name=fac value=Charles Warner /nbsp;Charles
Warnerbr /
input type=checkbox name=fac value=Marcia Godich /nbsp;Marcia
Godichbr /
input type=checkbox name=fac value=Andrea McClanahan
/nbsp;Andrea McClanahan/td
tdinput type=checkbox name=fac value=Glenn Geiser-Getz
/nbsp;Glenn Geiser-Getzbr /
input type=checkbox name=fac value=Robert McKenzie /nbsp;Robert
McKenziebr /
input type=checkbox name=fac value=Wenji Yan /nbsp;Wenjie
Yanbr /
input type=checkbox name=fac value=Patricia Kennedy
/nbsp;Patricia Kennedybr /
input type=checkbox name=fac value=Cem Zeytinoglu /nbsp;Cem
Zeytinoglu
/td/tr

Action page:

Faculty Supervisor: cfloop list=#form.fac# index=f
delimiters=crlf#f#/cfloop


Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu
-Original Message-

Steve LaBadie wrote:
 I have a group of 10 checkboxes where 3 have to be checked. I have a
JS
 script to validate this. The issue at hand is the values are not being
 passed completely.
 
  
 
 If you choose Robert Mckenzie the name is passed Robet Mkenzie, any
 ideas would be appreciated.
 
  
 
 Steve LaBadie, Web Manager
 East Stroudsburg University
 200 Prospect St.
 East Stroudsburg, Pa 18301
 570-422-3999
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 http://www.esu.edu http://www.esu.edu 
 
  
 
 
 
 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301999
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Cutter (CFRelated)
No, there's nothing there that would explain it. I'd like to blame it on 
the font tags, but I can't;)

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Steve LaBadie wrote:
 This is the script to check for 3 checked boxes:
 
 script
 function is_checked() {
 var formObj = document['internships']['fac'];
 var count = 0;
 for (i=0;iformObj.length; i++) {
 if(formObj[i].type == 'checkbox')
 if(formObj[i].checked)
 count++;
 }
 if (count  3) {
 return false;
 }else {
 return true;
 }
 }
 function val(){
 if (!is_checked()){
 alert('You Must Choose 3 Faculty Supervisors');
 return false;
 }else {
 return true;
 }
 }
 /script
 
 
 trtd align=right valign=topstrongFaculty
 Supvisor:/strongnbsp;br /font style=color: #BD2925; font-size:
 xx-small;(Choose 3)/fontnbsp;/tdtd
 input type=checkbox name=fac value=Joseph Ashcroft /nbsp;Joseph
 Ashcroftbr /
 input type=checkbox name=fac value=Paul Lippert /nbsp;Paul
 Lippertbr /
 input type=checkbox name=fac value=Charles Warner /nbsp;Charles
 Warnerbr /
 input type=checkbox name=fac value=Marcia Godich /nbsp;Marcia
 Godichbr /
 input type=checkbox name=fac value=Andrea McClanahan
 /nbsp;Andrea McClanahan/td
 tdinput type=checkbox name=fac value=Glenn Geiser-Getz
 /nbsp;Glenn Geiser-Getzbr /
 input type=checkbox name=fac value=Robert McKenzie /nbsp;Robert
 McKenziebr /
 input type=checkbox name=fac value=Wenji Yan /nbsp;Wenjie
 Yanbr /
 input type=checkbox name=fac value=Patricia Kennedy
 /nbsp;Patricia Kennedybr /
 input type=checkbox name=fac value=Cem Zeytinoglu /nbsp;Cem
 Zeytinoglu
 /td/tr
 
 Action page:
 
 Faculty Supervisor: cfloop list=#form.fac# index=f
 delimiters=crlf#f#/cfloop
 
 
 Steve LaBadie, Web Manager
 East Stroudsburg University
 200 Prospect St.
 East Stroudsburg, Pa 18301
 570-422-3999
 [EMAIL PROTECTED]
 http://www.esu.edu
 -Original Message-
 
 Steve LaBadie wrote:
 I have a group of 10 checkboxes where 3 have to be checked. I have a
 JS
 script to validate this. The issue at hand is the values are not being
 passed completely.

  

 If you choose Robert Mckenzie the name is passed Robet Mkenzie, any
 ideas would be appreciated.

  

 Steve LaBadie, Web Manager
 East Stroudsburg University
 200 Prospect St.
 East Stroudsburg, Pa 18301
 570-422-3999
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 http://www.esu.edu http://www.esu.edu 

  




 
 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302004
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Davide Campo
This script work correctly, try it.


cfif isDefined(Form.submit)
cfloop list=#form.fac# index=f 
delimiters=crlfcfoutput#f#/cfoutput/cfloop
/cfif

form name=internships action= onsubmit=return val() method=post
script 
function is_checked() { 

var formObj = document['internships']['fac']; 
var count = 0; 
for (i=0;iformObj.length; i++) { 
if(formObj[i].type == 'checkbox') {
if(formObj[i].checked) count++; 
}
} 
if (count  3) { 
return false; 
}else { 
return true; 
} 
} 
function val(){ 
if (!is_checked()){ 
alert('You Must Choose 3 Faculty Supervisors'); 
return false; 
}else { 
return true; 
} 
} 
/script
 trtd align=right valign=topstrongFaculty Supvisor:/strong br 
/font style=color: #BD2925; font-size: xx-small;(Choose 3)/font 
/tdtd 
br /
input type=checkbox name=fac value=Joseph Ashcroft / Joseph Ashcroftbr 
/ input type=checkbox name=fac value=Paul Lippert / Paul Lippertbr / 
input type=checkbox name=fac value=Charles Warner / Charles Warnerbr 
/ input type=checkbox name=fac value=Marcia Godich / Marcia Godichbr 
/ input type=checkbox name=fac value=Andrea McClanahan / Andrea 
McClanahanbr
input type=checkbox name=fac value=Glenn Geiser-Getz / Glenn 
Geiser-Getzbr / input type=checkbox name=fac value=Robert McKenzie / 
Robert McKenziebr / input type=checkbox name=fac value=Wenji Yan / 
Wenjie Yanbr / input type=checkbox name=fac value=Patricia Kennedy / 
Patricia Kennedybr / input type=checkbox name=fac value=Cem Zeytinoglu 
/ Cem Zeytinoglu

/td/tr
input type=submit value=submit name=submit /
/form 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302006
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Azadi Saryev
Faculty Supervisor: cfloop list=#form.fac# index=f
 delimiters=crlf#f#/cfloop

that's your problem - your list delimiters.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Steve LaBadie wrote:
 I have a group of 10 checkboxes where 3 have to be checked. I have a JS
 script to validate this. The issue at hand is the values are not being
 passed completely.

  

 If you choose Robert Mckenzie the name is passed Robet Mkenzie, any
 ideas would be appreciated.

  

 Steve LaBadie, Web Manager
 East Stroudsburg University
 200 Prospect St.
 East Stroudsburg, Pa 18301
 570-422-3999
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 http://www.esu.edu http://www.esu.edu 

  



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302007
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Claude Schneegans
 delimiters=crlf

You're using crlf as delimitior?
No wonder c, r, l  f are lost.
You probably meant CR LF, but these are not the delimiters used to 
separate field values, the simple comma is used.
So just use
Faculty Supervisor: cfloop list=#form.fac# index=f#f#/cfloop

or more simply:
Faculty Supervisor: #form.fac#

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302010
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Checkboxes not passing variables correctly

2008-03-25 Thread Steve LaBadie
Is there a list of all possible delimiters value?

If I use your suggestion there are no spaces or commas between full
names when the information is sent. If I use delimiters=|  there is a
comma but no space after comma.

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2008 9:59 AM
To: CF-Talk
Subject: Re: Checkboxes not passing variables correctly

 delimiters=crlf

You're using crlf as delimitior?
No wonder c, r, l  f are lost.
You probably meant CR LF, but these are not the delimiters used to 
separate field values, the simple comma is used.
So just use
Faculty Supervisor: cfloop list=#form.fac# index=f#f#/cfloop

or more simply:
Faculty Supervisor: #form.fac#

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302013
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Matt Williams
What is your desired output?

If you just want a straight list with commas between the chosen names,
then do as Claude said:
Faculty Supervisor: #form.fac#

If you need line breaks between the names, then do a loop as Claude
said (with a br/ added):
cfloop list=#form.fac# index=f
#f#br/
/cfloop


On Tue, Mar 25, 2008 at 9:12 AM, Steve LaBadie [EMAIL PROTECTED] wrote:
 Is there a list of all possible delimiters value?

  If I use your suggestion there are no spaces or commas between full
  names when the information is sent. If I use delimiters=|  there is a
  comma but no space after comma.

  Steve LaBadie, Web Manager
  East Stroudsburg University
  200 Prospect St.
  East Stroudsburg, Pa 18301
  570-422-3999
  [EMAIL PROTECTED]
  http://www.esu.edu

  -Original Message-
  From: Claude Schneegans [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 25, 2008 9:59 AM
  To: CF-Talk
  Subject: Re: Checkboxes not passing variables correctly

   delimiters=crlf

  You're using crlf as delimitior?
  No wonder c, r, l  f are lost.
  You probably meant CR LF, but these are not the delimiters used to
  separate field values, the simple comma is used.
  So just use
  Faculty Supervisor: cfloop list=#form.fac# index=f#f#/cfloop

  or more simply:
  Faculty Supervisor: #form.fac#

  --
  ___
  REUSE CODE! Use custom tags;
  See http://www.contentbox.com/claude/customtags/tagstore.cfm
  (Please send any spam to this address: [EMAIL PROTECTED])
  Thanks.




  

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302015
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread morgan l
If you just want the list of names, separated by comma and space, then use:

Faculty Supervisor: #Replace(form.fac ,all)#
On Tue, Mar 25, 2008 at 9:12 AM, Steve LaBadie [EMAIL PROTECTED]
wrote:

 Is there a list of all possible delimiters value?

 If I use your suggestion there are no spaces or commas between full
 names when the information is sent. If I use delimiters=|  there is a
 comma but no space after comma.

 Steve LaBadie, Web Manager
 East Stroudsburg University
 200 Prospect St.
 East Stroudsburg, Pa 18301
 570-422-3999
 [EMAIL PROTECTED]
 http://www.esu.edu

 -Original Message-
 From: Claude Schneegans [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 25, 2008 9:59 AM
 To: CF-Talk
 Subject: Re: Checkboxes not passing variables correctly

  delimiters=crlf

 You're using crlf as delimitior?
 No wonder c, r, l  f are lost.
 You probably meant CR LF, but these are not the delimiters used to
 separate field values, the simple comma is used.
 So just use
 Faculty Supervisor: cfloop list=#form.fac# index=f#f#/cfloop

 or more simply:
 Faculty Supervisor: #form.fac#

 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.




 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302016
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Claude Schneegans
 Is there a list of all possible delimiters value?

There only one delimiter: the comma, which is the default delimiter for 
all list functions, so you don't need to specify one.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302014
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Claude Schneegans
 Is there a list of all possible delimiters value?

If you want to know more about forms and how values are passed, use
CFDUMP var=#form#
in your action template and you'll know everything a young lady should 
know before wedding ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302017
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Checkboxes not passing variables correctly

2008-03-25 Thread Steve LaBadie
Thanks everyone for your input and wisdom. Thanks Claude for the laugh.

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2008 10:30 AM
To: CF-Talk
Subject: Re: Checkboxes not passing variables correctly

 Is there a list of all possible delimiters value?

If you want to know more about forms and how values are passed, use
CFDUMP var=#form#
in your action template and you'll know everything a young lady should 
know before wedding ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302018
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Azadi Saryev
the value attrubute of your checkboxes are different from their
labels/text? typos?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Steve LaBadie wrote:
 I have a group of 10 checkboxes where 3 have to be checked. I have a JS
 script to validate this. The issue at hand is the values are not being
 passed completely.

  

 If you choose Robert Mckenzie the name is passed Robet Mkenzie, any
 ideas would be appreciated.

  

 Steve LaBadie, Web Manager
 East Stroudsburg University
 200 Prospect St.
 East Stroudsburg, Pa 18301
 570-422-3999
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 http://www.esu.edu http://www.esu.edu 

  



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302025
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Checkboxes not passing variables correctly

2008-03-25 Thread Dominic Watson

 Is there a list of all possible delimiters value?


A delimeter could be any 'legal' character in a string. The delimeter you
use is informed by the string you are given to break up into list items;
using different delimiters will break up your 'list' in different ways. Here
is some code to demonstrate, just copy and past into a blank template and
run it; then look over the output and hopefully things will become clear for
you (if they haven't already):

cfset myList = foo|bar,sticky toffee pudding|init
cfoutput
h1Delimiter demo/h1
p The list: #myList#/p

h2Using default delimiter (comma)/h2
ul
 cfloop list=#myList# index=listItem
  li#listItem#/li
 /cfloop
/ul

h2Using '|'/h2
ul
 cfloop list=#myList# index=listItem delimiters=|
  li#listItem#/li
 /cfloop
/ul

h2Using '|' or ','/h2
ul
 cfloop list=#myList# index=listItem delimiters=|,
  li#listItem#/li
 /cfloop
/ul

h2Using any vowel/h2
ul
 cfloop list=#myList# index=listItem delimiters=aeiou
  li#listItem#/li
 /cfloop
/ul

h2Using a character that isn't in the string (@)/h2
ul
 cfloop list=#myList# index=listItem delimiters=@
  li#listItem#/li
 /cfloop
/ul

/cfoutput

Also, if you want a delimiter of CR LF (used quite regularly to delimit
whole lines of a csv that have a line break to indicate a new row) you can
use the Chr function:

delimiters=#Chr(13)##Chr(10)#

HTH

Dominic

-- 
Blog it up: http://fusion.dominicwatson.co.uk


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302037
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Checkboxes not passing variables correctly

2008-03-25 Thread Steve LaBadie
Thank you Dominic for the extra input, very helpful examples.

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu

-Original Message-
From: Dominic Watson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2008 3:53 PM
To: CF-Talk
Subject: Re: Checkboxes not passing variables correctly


 Is there a list of all possible delimiters value?


A delimeter could be any 'legal' character in a string. The delimeter
you
use is informed by the string you are given to break up into list items;
using different delimiters will break up your 'list' in different ways.
Here
is some code to demonstrate, just copy and past into a blank template
and
run it; then look over the output and hopefully things will become clear
for
you (if they haven't already):

cfset myList = foo|bar,sticky toffee pudding|init
cfoutput
h1Delimiter demo/h1
p The list: #myList#/p

h2Using default delimiter (comma)/h2
ul
 cfloop list=#myList# index=listItem
  li#listItem#/li
 /cfloop
/ul

h2Using '|'/h2
ul
 cfloop list=#myList# index=listItem delimiters=|
  li#listItem#/li
 /cfloop
/ul

h2Using '|' or ','/h2
ul
 cfloop list=#myList# index=listItem delimiters=|,
  li#listItem#/li
 /cfloop
/ul

h2Using any vowel/h2
ul
 cfloop list=#myList# index=listItem delimiters=aeiou
  li#listItem#/li
 /cfloop
/ul

h2Using a character that isn't in the string (@)/h2
ul
 cfloop list=#myList# index=listItem delimiters=@
  li#listItem#/li
 /cfloop
/ul

/cfoutput

Also, if you want a delimiter of CR LF (used quite regularly to delimit
whole lines of a csv that have a line break to indicate a new row) you
can
use the Chr function:

delimiters=#Chr(13)##Chr(10)#

HTH

Dominic

-- 
Blog it up: http://fusion.dominicwatson.co.uk




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302038
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4