RE: CF and JS question
beautiful use of JSStringFormat() Isaac!You know I fought with errant ' and in my JS for like a year and a half before discovering this function. Now, doesn't the below creae an array of 3d arrays?A true 3D array is nto available like CF, IIRC.Anyhoo, I've used the below approach also var sys = new Array; cfoutput query=rates group=billsystem sys['#JSStringFormat(rates.billsystem)#'] = new Array; cfoutput group=rateplan sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat (rates.rateplan)#' ] = new Array cfoutput group=descr sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat (rates.rateplan)#' ]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#'; /cfoutput /cfoutput /cfoutput Offhand, the syntax looks a bit odd... you've got sys['#jsstringformat(something)#'] = new Array; Where sys is an existing array... which may work with some _javascript_ engines if something is an integer, although generally speaking you wouldn't use jsstringformat() or quotes for this value since a _javascript_ array is always indexed with integers. If you were to change sys from an array to an Object (again, case sensitive like everything in JS), then you would want to use the quotes and the jsstringformat() function, since the Object behaves much like a CF structure or associative array, having members which are referenced by name instead of an arbitrary order (as an Array). Objects can also have functions or methods as members, although at least with previous versions of JS it was described as object based not object oriented. I'm not certain but I think the more recent versions of ECMAScript/JS are described as object oriented now. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
Actually, JS supports associative arrays also.So, foo['apple'] = fruit is perfectly fine.Hence the need for JSStringFormat() when creating these via CF, in case there's a ' or something. Doug - Original Message - From: S. Isaac Dealey [EMAIL PROTECTED] Date: Sat, 28 Aug 2004 11:29:58 -0400 Subject: RE: CF and JS question To: CF-Talk [EMAIL PROTECTED] beautiful use of JSStringFormat() Isaac!You know I fought with errant ' and in my JS for like a year and a half before discovering this function. Now, doesn't the below creae an array of 3d arrays?A true 3D array is nto available like CF, IIRC.Anyhoo, I've used the below approach also var sys = new Array; cfoutput query=rates group=billsystem sys['#JSStringFormat(rates.billsystem)#'] = new Array; cfoutput group=rateplan sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat (rates.rateplan)#' ] = new Array cfoutput group=descr sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat (rates.rateplan)#' ]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#'; /cfoutput /cfoutput /cfoutput Offhand, the syntax looks a bit odd... you've got sys['#jsstringformat(something)#'] = new Array; Where sys is an existing array... which may work with some _javascript_ engines if something is an integer, although generally speaking you wouldn't use jsstringformat() or quotes for this value since a _javascript_ array is always indexed with integers. If you were to change sys from an array to an Object (again, case sensitive like everything in JS), then you would want to use the quotes and the jsstringformat() function, since the Object behaves much like a CF structure or associative array, having members which are referenced by name instead of an arbitrary order (as an Array). Objects can also have functions or methods as members, although at least with previous versions of JS it was described as object based not object oriented. I'm not certain but I think the more recent versions of ECMAScript/JS are described as object oriented now. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
Actually, JS supports associative arrays also.So, foo['apple'] = fruit is perfectly fine.Hence the need for JSStringFormat() when creating these via CF, in case there's a ' or something. Doug Ahh... Well I've always just used Object() for that -- which is also what cfwddx uses... I suspect that's for backward compatibility with some earlier versions of JS or at least the JS engines in some earlier browsers. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: CF and JS question
In _javascript_ associative arrays are always Objects - doing new Object always creates an associative array (or, more specifically something that can be used as an associative array) and doing new Array always results in an indexed array.There's no way to create an associative array using the Array object. CF is similar for CFCs (in that all CFCs are actually structures).But in CF all CFCs are structs but all structs are not CFCs where in _javascript_ all associative arrays are Objects and all Objects are associative arrays. Jim Davis From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Saturday, August 28, 2004 1:04 PM To: CF-Talk Subject: Re: CF and JS question Actually, JS supports associative arrays also.So, foo['apple'] = fruit is perfectly fine.Hence the need for JSStringFormat() when creating these via CF, in case there's a ' or something. Doug Ahh... Well I've always just used Object() for that -- which is also what cfwddx uses... I suspect that's for backward compatibility with some earlier versions of JS or at least the JS engines in some earlier browsers. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
I'm abit confused here, I create an associative array using var foo = new Array foo['dosge'] = 'car'; without issue.I can see that Array is an Object perhaps, but teh above does work.Well, I'm not certain it will work in all JS in all browsers, I'm kind of lucky, I work on a sterile intranet. Doug - Original Message - From: Jim Davis [EMAIL PROTECTED] Date: Sat, 28 Aug 2004 14:11:16 -0400 Subject: RE: CF and JS question To: CF-Talk [EMAIL PROTECTED] In _javascript_ associative arrays are always Objects - doing new Object always creates an associative array (or, more specifically something that can be used as an associative array) and doing new Array always results in an indexed array.There's no way to create an associative array using the Array object. CF is similar for CFCs (in that all CFCs are actually structures).But in CF all CFCs are structs but all structs are not CFCs where in _javascript_ all associative arrays are Objects and all Objects are associative arrays. Jim Davis From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Saturday, August 28, 2004 1:04 PM To: CF-Talk Subject: Re: CF and JS question Actually, JS supports associative arrays also.So, foo['apple'] = fruit is perfectly fine.Hence the need for JSStringFormat() when creating these via CF, in case there's a ' or something. Doug Ahh... Well I've always just used Object() for that -- which is also what cfwddx uses... I suspect that's for backward compatibility with some earlier versions of JS or at least the JS engines in some earlier browsers. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
The array isnt really the problem, the problem is taking the array and populating the select statements. some puesdocode var taskArray = new Array(10,3); taskArray[Analysis,3,2]; taskArray[CBT,10,4]; taskArray[Classroom Training,9,4]; taskArray[Conference Call,11,4]; taskArray[Design,4,2]; taskArray[Development,5,2]; taskArray[Evaluation,7,2]; taskArray[Follow-Up,8,2]; taskArray[Implementation,6,2]; taskArray[SomeNewTask,21,2]; for i = 0 to taskArray.arrayLength for j = 0 to taskArray.arrayDimension if taskArray.[i,3] = 2 //document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i,j], taskArray[i,j+1]); ?? I have the array populated but it's taking that array and sending a value to a function to populate a select box that I'm having problems with. If I pass 2 then the selectbox should be created with.. Analysis,3 Design,4 Development,5 Evaluation,7 Follow-Up,8 Implementation,6 SomeNewTask,21 or 4 CBT,10 Classroom Training,9 Conference Call,11 the first variable (the string) is the Option, the number is the value. On Thu, 26 Aug 2004 23:42:19 -0400, Douglas Knudsen [EMAIL PROTECTED] wrote: beautiful use of JSStringFormat() Isaac!You know I fought with errant ' and in my JS for like a year and a half before discovering this function. Now, doesn't the below creae an array of 3d arrays?A true 3D array is nto available like CF, IIRC.Anyhoo, I've used the below approach also var sys = new Array; cfoutput query=rates group=billsystem sys['#JSStringFormat(rates.billsystem)#'] = new Array; cfoutput group=rateplan sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' ] = new Array cfoutput group=descr sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' ]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#'; /cfoutput /cfoutput /cfoutput Doug -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 4:05 PM To: CF-Talk Subject: Re: CF and JS question _javascript_ arrays are declared a bit differently than CF arrays. try this: var taskArray = new Array(); cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
The array isnt really the problem, the problem is taking the array and populating the select statements. some puesdocode for i = 0 to taskArray.arrayLength for j = 0 to taskArray.arrayDimension if taskArray.[i,3] = 2 I ... don't think this syntax is correct... I would expect to see taskArray[i][3] //document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i,j], taskArray[i,j+1]); Again, new Option(taskArray[i][j], taskArray[i][j+1]); s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
I'm still screwing around with this... I have the array created but getting some funky output.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.write('option=' + taskArray[i][j] + 'brvalue=' + taskArray[i][j+1] + 'br'); } } gives... option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 far from what I want.. which would be option=Analysis value=3 option=Design value=4 option=Development value=5 option=Evaluation value=7 option=Follow-Up value=8 option=Implementation value=6 option=SomeNewTask value=21 and that way I could use that data to populate my select box.. Thanks On Fri, 27 Aug 2004 10:25:01 -0500, Greg Morphis [EMAIL PROTECTED] wrote: The array isnt really the problem, the problem is taking the array and populating the select statements. some puesdocode var taskArray = new Array(10,3); taskArray[Analysis,3,2]; taskArray[CBT,10,4]; taskArray[Classroom Training,9,4]; taskArray[Conference Call,11,4]; taskArray[Design,4,2]; taskArray[Development,5,2]; taskArray[Evaluation,7,2]; taskArray[Follow-Up,8,2]; taskArray[Implementation,6,2]; taskArray[SomeNewTask,21,2]; for i = 0 to taskArray.arrayLength for j = 0 to taskArray.arrayDimension if taskArray.[i,3] = 2 //document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i,j], taskArray[i,j+1]); ?? I have the array populated but it's taking that array and sending a value to a function to populate a select box that I'm having problems with. If I pass 2 then the selectbox should be created with.. Analysis,3 Design,4 Development,5 Evaluation,7 Follow-Up,8 Implementation,6 SomeNewTask,21 or 4 CBT,10 Classroom Training,9 Conference Call,11 the first variable (the string) is the Option, the number is the value. On Thu, 26 Aug 2004 23:42:19 -0400, Douglas Knudsen [EMAIL PROTECTED] wrote: beautiful use of JSStringFormat() Isaac!You know I fought with errant ' and in my JS for like a year and a half before discovering this function. Now, doesn't the below creae an array of 3d arrays?A true 3D array is nto available like CF, IIRC.Anyhoo, I've used the below approach also var sys = new Array; cfoutput query=rates group=billsystem sys['#JSStringFormat(rates.billsystem)#'] = new Array; cfoutput group=rateplan sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' ] = new Array cfoutput group=descr sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' ]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#'; /cfoutput /cfoutput /cfoutput Doug -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 4:05 PM To: CF-Talk Subject: Re: CF and JS question _javascript_ arrays are declared a bit differently than CF arrays. try this: var taskArray = new Array(); cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
hey Issac.. yeah I started using your code to generate the JS Array.. var taskArray = new Array(); cfoutput cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop /cfoutput but when implementing it.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][j], taskArray[i][j+1]); } } which to me seems like it should work.. But it isnt On Fri, 27 Aug 2004 11:14:33 -0500, Greg Morphis [EMAIL PROTECTED] wrote: I'm still screwing around with this... I have the array created but getting some funky output.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.write('option=' + taskArray[i][j] + 'brvalue=' + taskArray[i][j+1] + 'br'); } } gives... option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 option=Analysis value=3 option=3 value=2 far from what I want.. which would be option=Analysis value=3 option=Design value=4 option=Development value=5 option=Evaluation value=7 option=Follow-Up value=8 option=Implementation value=6 option=SomeNewTask value=21 and that way I could use that data to populate my select box.. Thanks On Fri, 27 Aug 2004 10:25:01 -0500, Greg Morphis [EMAIL PROTECTED] wrote: The array isnt really the problem, the problem is taking the array and populating the select statements. some puesdocode var taskArray = new Array(10,3); taskArray[Analysis,3,2]; taskArray[CBT,10,4]; taskArray[Classroom Training,9,4]; taskArray[Conference Call,11,4]; taskArray[Design,4,2]; taskArray[Development,5,2]; taskArray[Evaluation,7,2]; taskArray[Follow-Up,8,2]; taskArray[Implementation,6,2]; taskArray[SomeNewTask,21,2]; for i = 0 to taskArray.arrayLength for j = 0 to taskArray.arrayDimension if taskArray.[i,3] = 2 //document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i,j], taskArray[i,j+1]); ?? I have the array populated but it's taking that array and sending a value to a function to populate a select box that I'm having problems with. If I pass 2 then the selectbox should be created with.. Analysis,3 Design,4 Development,5 Evaluation,7 Follow-Up,8 Implementation,6 SomeNewTask,21 or 4 CBT,10 Classroom Training,9 Conference Call,11 the first variable (the string) is the Option, the number is the value. On Thu, 26 Aug 2004 23:42:19 -0400, Douglas Knudsen [EMAIL PROTECTED] wrote: beautiful use of JSStringFormat() Isaac!You know I fought with errant ' and in my JS for like a year and a half before discovering this function. Now, doesn't the below creae an array of 3d arrays?A true 3D array is nto available like CF, IIRC.Anyhoo, I've used the below approach also var sys = new Array; cfoutput query=rates group=billsystem sys['#JSStringFormat(rates.billsystem)#'] = new Array; cfoutput group=rateplan sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' ] = new Array cfoutput group=descr sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' ]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#'; /cfoutput /cfoutput /cfoutput Doug -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 4:05 PM To: CF-Talk Subject: Re: CF and JS question _javascript_ arrays are declared a bit differently than CF arrays. try this: var taskArray = new Array(); cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
You have an unnecessary extra loop... (the j loop) for(i=0;itaskArray.length;i++){ if (taskArray[i][2] == actid) document.write('option=' + taskArray[i][0] + 'brvalue=' + taskArray[i][1] + 'br'); } s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
hey Issac.. yeah I started using your code to generate the JS Array.. var taskArray = new Array(); cfoutput cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop /cfoutput but when implementing it.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][j], taskArray[i][j+1]); } } which to me seems like it should work.. But it isnt See my last reply for the code-bit -- your j loop is an extra -- once you remove that I think you should be okay. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
that works.. I also had to add cfoutput and [x] within the loop. the problem I'm running into now is that it's leaving the spaces empty for(i=0;itaskArray.length;i++){ if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][0], taskArray[i][1]); } it's going through the entire array (10 items) and putting something in there.. which means if I pass 4.. the select box has 7 empty spaces and then CBT Classroom Training Conference Call I added a rmvNulls function I wrote quick.. function rmvNulls(sel) { for (i=0;isel.length; i++) { //alert(sel.options[i].value.length) if (sel.options[i].value.length == 0) sel.options[i] = null; } } this removes some of them but then gives me a JS error.. says something about options.value is null or not an object? any ideas on how to not add all the extra empty choices On Fri, 27 Aug 2004 12:25:38 -0400, S. Isaac Dealey [EMAIL PROTECTED] wrote: hey Issac.. yeah I started using your code to generate the JS Array.. var taskArray = new Array(); cfoutput cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop /cfoutput but when implementing it.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][j], taskArray[i][j+1]); } } which to me seems like it should work.. But it isnt See my last reply for the code-bit -- your j loop is an extra -- once you remove that I think you should be okay. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
you will want to use a vairavle for matches like z so z=0 loop if match { option[z].value; z=z+1; } Code: document.forms['laforma'].c_taskid.options.length = 0; y = taskArray.length; z=0; for (x=0; xy; x++){ //loop the array if the id= the passed ID then boom put itin the sub select if(taskArray[i][2] == actid){ document.forms['laforma'].c_taskid.options[z] = new Option(taskArray[x][0]); document.forms['laforma'].c_taskid.options[z].value =taskArray[x][1] z=z+1; } } AdamH On Fri, 27 Aug 2004 12:13:24 -0500, Greg Morphis [EMAIL PROTECTED] wrote: that works.. I also had to add cfoutput and [x] within the loop. the problem I'm running into now is that it's leaving the spaces empty for(i=0;itaskArray.length;i++){ if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][0], taskArray[i][1]); } it's going through the entire array (10 items) and putting something in there.. which means if I pass 4.. the select box has 7 empty spaces and then CBT Classroom Training Conference Call I added a rmvNulls function I wrote quick.. function rmvNulls(sel) { for (i=0;isel.length; i++) { //alert(sel.options[i].value.length) if (sel.options[i].value.length == 0) sel.options[i] = null; } } this removes some of them but then gives me a JS error.. says something about options.value is null or not an object? any ideas on how to not add all the extra empty choices On Fri, 27 Aug 2004 12:25:38 -0400, S. Isaac Dealey [EMAIL PROTECTED] wrote: hey Issac.. yeah I started using your code to generate the JS Array.. var taskArray = new Array(); cfoutput cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop /cfoutput but when implementing it.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][j], taskArray[i][j+1]); } } which to me seems like it should work.. But it isnt See my last reply for the code-bit -- your j loop is an extra -- once you remove that I think you should be okay. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
FINALLY! I went with 2 arrays, 2 queries to populate the damn arrays using SQL to check to see if c_activityid was 2 or 4. It works.. On Fri, 27 Aug 2004 12:13:24 -0500, Greg Morphis [EMAIL PROTECTED] wrote: that works.. I also had to add cfoutput and [x] within the loop. the problem I'm running into now is that it's leaving the spaces empty for(i=0;itaskArray.length;i++){ if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][0], taskArray[i][1]); } it's going through the entire array (10 items) and putting something in there.. which means if I pass 4.. the select box has 7 empty spaces and then CBT Classroom Training Conference Call I added a rmvNulls function I wrote quick.. function rmvNulls(sel) { for (i=0;isel.length; i++) { //alert(sel.options[i].value.length) if (sel.options[i].value.length == 0) sel.options[i] = null; } } this removes some of them but then gives me a JS error.. says something about options.value is null or not an object? any ideas on how to not add all the extra empty choices On Fri, 27 Aug 2004 12:25:38 -0400, S. Isaac Dealey [EMAIL PROTECTED] wrote: hey Issac.. yeah I started using your code to generate the JS Array.. var taskArray = new Array(); cfoutput cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop /cfoutput but when implementing it.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][j], taskArray[i][j+1]); } } which to me seems like it should work.. But it isnt See my last reply for the code-bit -- your j loop is an extra -- once you remove that I think you should be okay. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
Sorry Adam, I didnt see your post.. I may go that route but considering it's given me pains for the past 3 hours :) I think I'm gonna do something else for a few minutes and calm myself down.. On Fri, 27 Aug 2004 12:42:45 -0500, Greg Morphis [EMAIL PROTECTED] wrote: FINALLY! I went with 2 arrays, 2 queries to populate the damn arrays using SQL to check to see if c_activityid was 2 or 4. It works.. On Fri, 27 Aug 2004 12:13:24 -0500, Greg Morphis [EMAIL PROTECTED] wrote: that works.. I also had to add cfoutput and [x] within the loop. the problem I'm running into now is that it's leaving the spaces empty for(i=0;itaskArray.length;i++){ if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][0], taskArray[i][1]); } it's going through the entire array (10 items) and putting something in there.. which means if I pass 4.. the select box has 7 empty spaces and then CBT Classroom Training Conference Call I added a rmvNulls function I wrote quick.. function rmvNulls(sel) { for (i=0;isel.length; i++) { //alert(sel.options[i].value.length) if (sel.options[i].value.length == 0) sel.options[i] = null; } } this removes some of them but then gives me a JS error.. says something about options.value is null or not an object? any ideas on how to not add all the extra empty choices On Fri, 27 Aug 2004 12:25:38 -0400, S. Isaac Dealey [EMAIL PROTECTED] wrote: hey Issac.. yeah I started using your code to generate the JS Array.. var taskArray = new Array(); cfoutput cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop /cfoutput but when implementing it.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][j], taskArray[i][j+1]); } } which to me seems like it should work.. But it isnt See my last reply for the code-bit -- your j loop is an extra -- once you remove that I think you should be okay. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
oh yeah or you could look on Macromedia's dev exchange and look for the UDF (maybe a tag) called 2 releated selects ;) I don't like the way it is done in that tag though. Adam H On Fri, 27 Aug 2004 12:45:14 -0500, Greg Morphis [EMAIL PROTECTED] wrote: Sorry Adam, I didnt see your post.. I may go that route but considering it's given me pains for the past 3 hours :) I think I'm gonna do something else for a few minutes and calm myself down.. On Fri, 27 Aug 2004 12:42:45 -0500, Greg Morphis [EMAIL PROTECTED] wrote: FINALLY! I went with 2 arrays, 2 queries to populate the damn arrays using SQL to check to see if c_activityid was 2 or 4. It works.. On Fri, 27 Aug 2004 12:13:24 -0500, Greg Morphis [EMAIL PROTECTED] wrote: that works.. I also had to add cfoutput and [x] within the loop. the problem I'm running into now is that it's leaving the spaces empty for(i=0;itaskArray.length;i++){ if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][0], taskArray[i][1]); } it's going through the entire array (10 items) and putting something in there.. which means if I pass 4.. the select box has 7 empty spaces and then CBT Classroom Training Conference Call I added a rmvNulls function I wrote quick.. function rmvNulls(sel) { for (i=0;isel.length; i++) { //alert(sel.options[i].value.length) if (sel.options[i].value.length == 0) sel.options[i] = null; } } this removes some of them but then gives me a JS error.. says something about options.value is null or not an object? any ideas on how to not add all the extra empty choices On Fri, 27 Aug 2004 12:25:38 -0400, S. Isaac Dealey [EMAIL PROTECTED] wrote: hey Issac.. yeah I started using your code to generate the JS Array.. var taskArray = new Array(); cfoutput cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop /cfoutput but when implementing it.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][j], taskArray[i][j+1]); } } which to me seems like it should work.. But it isnt See my last reply for the code-bit -- your j loop is an extra -- once you remove that I think you should be okay. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
well see I have 3 selects twice.. I'm already using the cf multi selects related once, and because of the code behind that custom tag you cant use it twice on the same page. I'd already considered that ;) On Fri, 27 Aug 2004 14:00:12 -0400, Adam Haskell [EMAIL PROTECTED] wrote: oh yeah or you could look on Macromedia's dev exchange and look for the UDF (maybe a tag) called 2 releated selects ;) I don't like the way it is done in that tag though. Adam H On Fri, 27 Aug 2004 12:45:14 -0500, Greg Morphis [EMAIL PROTECTED] wrote: Sorry Adam, I didnt see your post.. I may go that route but considering it's given me pains for the past 3 hours :) I think I'm gonna do something else for a few minutes and calm myself down.. On Fri, 27 Aug 2004 12:42:45 -0500, Greg Morphis [EMAIL PROTECTED] wrote: FINALLY! I went with 2 arrays, 2 queries to populate the damn arrays using SQL to check to see if c_activityid was 2 or 4. It works.. On Fri, 27 Aug 2004 12:13:24 -0500, Greg Morphis [EMAIL PROTECTED] wrote: that works.. I also had to add cfoutput and [x] within the loop. the problem I'm running into now is that it's leaving the spaces empty for(i=0;itaskArray.length;i++){ if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][0], taskArray[i][1]); } it's going through the entire array (10 items) and putting something in there.. which means if I pass 4.. the select box has 7 empty spaces and then CBT Classroom Training Conference Call I added a rmvNulls function I wrote quick.. function rmvNulls(sel) { for (i=0;isel.length; i++) { //alert(sel.options[i].value.length) if (sel.options[i].value.length == 0) sel.options[i] = null; } } this removes some of them but then gives me a JS error.. says something about options.value is null or not an object? any ideas on how to not add all the extra empty choices On Fri, 27 Aug 2004 12:25:38 -0400, S. Isaac Dealey [EMAIL PROTECTED] wrote: hey Issac.. yeah I started using your code to generate the JS Array.. var taskArray = new Array(); cfoutput cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop /cfoutput but when implementing it.. for(i=0;itaskArray.length;i++){ for(j=0;j2;j++) { if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][j], taskArray[i][j+1]); } } which to me seems like it should work.. But it isnt See my last reply for the code-bit -- your j loop is an extra -- once you remove that I think you should be okay. s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
well see I have 3 selects twice.. I'm already using the cf multi selects related once, and because of the code behind that custom tag you cant use it twice on the same page. I'd already considered that ;) Well you probably could, but if you're using an encrypted tag it would require using cfsavecontent and some regular expressions which -- if the _javascript_ to do this gives you headaches, the regular expressions to do that would just make your head explode outright. :) s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS question
_javascript_ arrays are declared a bit differently than CF arrays. try this: var taskArray = new Array(); cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
RE: CF and JS question
beautiful use of JSStringFormat() Isaac!You know I fought with errant ' and in my JS for like a year and a half before discovering this function. Now, doesn't the below creae an array of 3d arrays?A true 3D array is nto available like CF, IIRC.Anyhoo, I've used the below approach also var sys = new Array; cfoutput query=rates group=billsystem sys['#JSStringFormat(rates.billsystem)#'] = new Array; cfoutput group=rateplan sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' ] = new Array cfoutput group=descr sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' ]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#'; /cfoutput /cfoutput /cfoutput Doug -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 4:05 PM To: CF-Talk Subject: Re: CF and JS question _javascript_ arrays are declared a bit differently than CF arrays. try this: var taskArray = new Array(); cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); /cfloop s. isaac dealey954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.sys-con.com/story/?storyid=44477DE=1 http://www.sys-con.com/story/?storyid=45569DE=1 http://www.fusiontap.com _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: CF and JS
If you're going to do this without 'refreshing' the page...it's going to require a fairly sizable array in the javascript. You'd first need an array of states...then an array of all cities within each state (JS doesn't natively support 2d arrays, so you have to do arrays of arrays). Further, an array of each street within each city (so an array of an array of an array). It's do-able from a functionality perspective. Honestly, I don't know how big of an array is considered to be 'too big'. It might not be inconceivable to create a separate .js file with the aforementioned arrays, and include it in your cf template. I'd like to hear some other more experienced js'ers tho address the issue of the size of the array. charlie Depending on how - Original Message - From: Mike Tangorre [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 2:59 PM Subject: CF and JS Forgive me if this same question was going through from my work email, I am having problems with that email. My question was the following: I have a CF page with 7 form elements on it: 3 select boxes, 2 multi select boxes and 2 buttons. I am populating the 3 select boxes and 1 multi select boxes with queries, all related. select box 1 - states select box 2 - cities select box 3 - streets multi select box 1 - houses What I am trying to do, is make these select boxes drill down without refreshing the page. For example, user selects a state, the cities box is then populated with the cities in that state... the user then selects a city, and that populates the streets. The user selects a street, and all the houses on that street are listed in the multi select box 1. The user can then select multiple houses from the multi select box and click the add button, which will add those to the multi select box 2. Could someone assist me in writing the JS for this or point me in the right online resource to accomplish this? I am a novice in JS. Thanks. Mike __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CF and JS
there is a custom tag two_selects_related and there is a tag three_selects_related. Looks like you want 4, but you can check macromedia developer exchange. On Sun, 18 Aug 2002, Mike Tangorre wrote: Forgive me if this same question was going through from my work email, I am having problems with that email. My question was the following: I have a CF page with 7 form elements on it: 3 select boxes, 2 multi select boxes and 2 buttons. I am populating the 3 select boxes and 1 multi select boxes with queries, all related. select box 1 - states select box 2 - cities select box 3 - streets multi select box 1 - houses What I am trying to do, is make these select boxes drill down without refreshing the page. For example, user selects a state, the cities box is then populated with the cities in that state... the user then selects a city, and that populates the streets. The user selects a street, and all the houses on that street are listed in the multi select box 1. The user can then select multiple houses from the multi select box and click the add button, which will add those to the multi select box 2. Could someone assist me in writing the JS for this or point me in the right online resource to accomplish this? I am a novice in JS. Thanks. Mike __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CF and JS
Hi Mike: I threw together a quick (basic) javascript that allows you to select 1 of 3 states, then one of 3 cities, then one of 3 streets. It's at http://130.13.170.56:6699/bigArray.html you can view the source to see what the arrays look like. Since I assume your data is coming from a database, you should be able to create the arrays fairly easily on the server just looping over query output. If you're bold enough, give it a shot to see how quickly it runs. It's still gonna be a big big big array :) hth, charlie - Original Message - From: Mike Tangorre [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 2:59 PM Subject: CF and JS Forgive me if this same question was going through from my work email, I am having problems with that email. My question was the following: I have a CF page with 7 form elements on it: 3 select boxes, 2 multi select boxes and 2 buttons. I am populating the 3 select boxes and 1 multi select boxes with queries, all related. select box 1 - states select box 2 - cities select box 3 - streets multi select box 1 - houses What I am trying to do, is make these select boxes drill down without refreshing the page. For example, user selects a state, the cities box is then populated with the cities in that state... the user then selects a city, and that populates the streets. The user selects a street, and all the houses on that street are listed in the multi select box 1. The user can then select multiple houses from the multi select box and click the add button, which will add those to the multi select box 2. Could someone assist me in writing the JS for this or point me in the right online resource to accomplish this? I am a novice in JS. Thanks. Mike __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CF and JS
thanks for taking the time to throw that together! That is a good start for me.. i'll shoot ya an email offlist when I get the task done! Thanks again. Mike - Original Message - From: Charlie Griefer [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 7:06 PM Subject: Re: CF and JS Hi Mike: I threw together a quick (basic) javascript that allows you to select 1 of 3 states, then one of 3 cities, then one of 3 streets. It's at http://130.13.170.56:6699/bigArray.html you can view the source to see what the arrays look like. Since I assume your data is coming from a database, you should be able to create the arrays fairly easily on the server just looping over query output. If you're bold enough, give it a shot to see how quickly it runs. It's still gonna be a big big big array :) hth, charlie - Original Message - From: Mike Tangorre [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 2:59 PM Subject: CF and JS Forgive me if this same question was going through from my work email, I am having problems with that email. My question was the following: I have a CF page with 7 form elements on it: 3 select boxes, 2 multi select boxes and 2 buttons. I am populating the 3 select boxes and 1 multi select boxes with queries, all related. select box 1 - states select box 2 - cities select box 3 - streets multi select box 1 - houses What I am trying to do, is make these select boxes drill down without refreshing the page. For example, user selects a state, the cities box is then populated with the cities in that state... the user then selects a city, and that populates the streets. The user selects a street, and all the houses on that street are listed in the multi select box 1. The user can then select multiple houses from the multi select box and click the add button, which will add those to the multi select box 2. Could someone assist me in writing the JS for this or point me in the right online resource to accomplish this? I am a novice in JS. Thanks. Mike __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CF and JS
There is no sure fire way. You can hack it. For example, you can use JS to set a cookie, and then on the second-N requests, check for that cookie, although the user could break your check by simply disabled JS after he gets past the first page. === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 11:56 AM To: CF-Talk Subject: CF and JS Is there anyway to detect if a browser has javascript enabled/disabled using CF? ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CF and JS
Yes, and no. CF is server-side; it's interaction with the browser consists of just HTTP POST and GET, which has nothing to do with JS. However, you can have the browser tell CF if JS is enabled. in your application.cfm: cfparam name=session.hasJS default=no in your first page on your site: script document.write(img src=\js.cfm\); /script in js.cfm: cfcontent type=image/gif file=c:\trans.gif deletefile=No cfset session.hasJS = yes (I omitted CFLOCK for brevity - always CFLOCK session vars) In the first page in the session, session.hasJS will be no - but afterwards, it will be yes if they have it turned on. --- Billy Cravens - Original Message - From: Tangorre, Michael T. [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, December 14, 2001 10:56 AM Subject: CF and JS Is there anyway to detect if a browser has javascript enabled/disabled using CF? Michael T. Tangorre Resident Assistant - Brick Web Applications Developer A.U. Webteam Slave :-) AIM: CrazyFlash4 ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CF and JS
this is what i used. noscript meta http-equiv=refresh content=0; URL=http://mydomain/detect. cfm /noscript on detect.cfm, do your conditional processings there. Nick Han [EMAIL PROTECTED] 12/14/01 08:56AM Is there anyway to detect if a browser has javascript enabled/disabled using CF? Michael T. Tangorre == Resident Assistant - Brick Web Applications Developer A.U. Webteam Slave :-) AIM: CrazyFlash4== ~~ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists