Arrays

2009-02-08 Thread Jason Congerton
Hi I am currently getting trying to get my head arounds arrays. The shopping cart system i use, stores the cart details into an array. I need to be able to update the array with a figure at a certain point. Please see array structure below; The place i need to enter is ITEMS, zone cost,

Re: Arrays

2009-02-08 Thread Matt Williams
Hey Jason, if you don't already know which position in the array the item id is located, then you'll need to loop through the array and find it. Once found, you are actually dealing with a structure, so updating is just a simple cfset. Something like this (assuming item id is in session and new

Re: Arrays

2009-02-08 Thread Jason Congerton
Hi Matt Thanks for the reply, you understood correctly. I will now have a play with your code and post my results. I kind of thought i would have to loop through the array, but could work out how to update, and at the right position. Thank you Hey Jason, if you don't already know which

Re: Create a circle with text in it?

2009-02-08 Thread Dan O'Keefe
You can use the image functions to do this, though for the lettering will probably be a pain (I think you'd have to use composite images). It'd be doable though. I'd expect any significant image package has support for laying text out like this, so that's undoubtedly a better bet.

Re: Arrays

2009-02-08 Thread Will Tomlinson
I find a structure of structures to be better-understood, and easily updated. I have some example code from my cart if you want it. Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date

Re: Arrays

2009-02-08 Thread Matt Williams
On Sun, Feb 8, 2009 at 8:04 AM, Will Tomlinson w...@wtomlinson.com wrote: I find a structure of structures to be better-understood, and easily updated. Interesting Will. So does your outer-most structure have some sort of incremental key? Personally an array of structs seems easier to me

RE: Railo Hosting or a very basic VPS to install it on

2009-02-08 Thread Adrian Lynch
Thanks Gert, I'm looking at KAVPS as my number one choice at the moment. Quick question for you... After reading and following Matt Woodward's nice piece on setting up Tomcat with Railo, OpenBD and CF8 (http://www.mattwoodward.com/blog/index.cfm?event=showEntryentryId=60F08421

Re: Arrays

2009-02-08 Thread Peter Boughton
An array of structs is effectively a query. And having it in query form generally makes it easier to handle - much more powerful sorting and filtering (using QoQ). ~| Adobe® ColdFusion® 8 software 8 is the most important and

Coldfusion AJAX Demos

2009-02-08 Thread Terry Troxel
Anyone wish to share any links to examples and maybe some code on cf8 Ajax uses and magic? Terry Troxel ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

RE: Implementing FCK Editor in CF8.01

2009-02-08 Thread Terry Troxel
Thanks Rob.it's just like you suggested. Works fine now. Terry -Original Message- From: Rob Parkhill [mailto:robert.parkh...@gmail.com] Sent: Friday, February 06, 2009 12:52 PM To: cf-talk Subject: Re: Implementing FCK Editor in CF8.01 is the CFIDE directory mapped? or inside

Re: Coldfusion AJAX Demos

2009-02-08 Thread John M Bliss
http://livedocs.adobe.com/coldfusion/8/htmldocs/ajaxui_1.html http://www.fusionauthority.com/techniques/4593-using-ajax-with-coldfusion-part-i.htm http://www.adobe.com/products/coldfusion/features/ajax_features/ http://www.ajaxcf.com

Re: Coldfusion AJAX Demos

2009-02-08 Thread Matt Williams
Also search on Ben Nadel's and Ray Camden's blogs. http://www.bennadel.com http://www.coldfusionjedi.com On Sun, Feb 8, 2009 at 1:19 PM, John M Bliss bliss.j...@gmail.com wrote: http://livedocs.adobe.com/coldfusion/8/htmldocs/ajaxui_1.html

RE: Arrays

2009-02-08 Thread Gaulin, Mark
Your point about being able to use QoQ is a good one. It turns out that a query is actually implemented as a struct of arrays (where the struct key is the name of the column), and the most annoying thing about that is having to index the arrays by current row all of the time, vs a true array

RE: JVM Tuning and Garbage Collection

2009-02-08 Thread Mark Kruger
Rick What are your settings for client variables? -mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Rick Root [mailto:rick.r...@webworksllc.com] Sent: Friday, February 06, 2009 11:39 AM To:

Re: Need ISAPI rewrite help...

2009-02-08 Thread Seb Duggan
What version of ISAPI Rewrite are you using? The tutorial looks as though it's written for v2; whereas in v3 it is much more like the syntax of Apache's mod_rewrite. Which means that the querystring is not actually seen as part of the URL in RewriteRule, but can be accessed via a

Re: Need ISAPI rewrite help...

2009-02-08 Thread Will Tomlinson
What version of ISAPI Rewrite are you using? The tutorial looks as though it's written for v2; whereas in v3 it is much more like the syntax of Apache's mod_rewrite. Which means that the querystring is not actually seen as part of the URL in RewriteRule, but can be accessed via a

Re: Need ISAPI rewrite help...

2009-02-08 Thread Seb Duggan
This should do the trick: RewriteRule ^calendarDetails\.html/EID/([0-9]+)$ /calendarDetails.cfm? EID=$1 [NC] [NC] is the equivalent of [I] in v2 (case insensitive match). And this assumes that the files are at your site's root, and that it's always an EID value you're matching. (If the key

Re: JVM Tuning and Garbage Collection

2009-02-08 Thread Rick Root
On Sun, Feb 8, 2009 at 3:27 PM, Mark Kruger mkru...@cfwebtools.com wrote: What are your settings for client variables? We don't use them. Nor do we use session variables. Makes clustering a lot easier =) -- Rick Root New Brian Vander Ark Album, songs in the music player and cool behind the

dynamic names for named locks

2009-02-08 Thread Rick Root
Is it possible to use named locks with dynamic names? I've got a site running a single application under thousands of domains. Site information for each domain is stored in the application scope so I don't have to get it from the DB all the time. So my first lock looks like this cflock

Re: dynamic names for named locks

2009-02-08 Thread Dave Watts
Is it possible to use named locks with dynamic names? Yes. So I was thinking about doing a named lock with a dynamic name based on the domain... ie: cflock name=appInitLock2_#replace(request.domain,.,,ALL)# type=exclusive timeout=30 Would this work and can anyone think of any reasons

How to stop auto translation?

2009-02-08 Thread Don L
Hi there, I just realized that either sql JDBC driver or CF automatically translates symbols like into HTML code of lt; prior to saving the data into a database table. Here's a case, a form looks like this form ... textarea ... {user input include some text img src=userImage.gif ... ...}

Re: Need ISAPI rewrite help...

2009-02-08 Thread Will Tomlinson
And this assumes that the files are at your site's root, and that it's always an EID value you're matching. (If the key value in the querystring varies, you could use a regex for that too). Thanks Seb! So I could say: RewriteRule ^calendarDetails\.html/[A-Za-z]+/([0-9]+)$

Re: Need ISAPI rewrite help...

2009-02-08 Thread Will Tomlinson
This should do the trick: RewriteRule ^calendarDetails\.html/EID/([0-9]+)$ /calendarDetails.cfm? EID=$1 [NC] Seb, this works just fine in the ISAPI test utility, but I cannot get the URL variable to show up in URL scope of the page, which of course, cause an error.

Re: How to stop auto translation?

2009-02-08 Thread Brad Wood
I just realized that either sql JDBC driver or CF automatically translates symbols like into HTML code of lt; prior to saving the data into a database table. I've never seen CF or JDBC do this. If your HTML is being escaped, I would look for a stray htmleditformat function. Dump out the

Grouping of Radio Button

2009-02-08 Thread Priya Koya
This is my Code: cfform method=post cfloop index=mainloop from=1 to=3 cfoutputThis id Question#mainloop#/cfoutput cfloop index='loop1' from=1 to=3br/ cfinput type=radio name=radio1 value=1a required=yes message=Please select the right option/br /cfloop /cfloop cfinput type=Submit name=Submit

RE: Grouping of Radio Button

2009-02-08 Thread Michel Mes - Netwise
you have to make the name of the radio button unique for every question - hard coded this would give radio1 for question1, radio2 for question2 and radio3 for question3 M -Original Message- From: Priya Koya [mailto:priya23...@gmail.com] Sent: maandag 9 februari 2009 4:41 To: cf-talk

Re: Grouping of Radio Button

2009-02-08 Thread Priya Koya
Yes, but how could I really make the radiobutton name unique as it is in the loop. Is there any other way I can do if this is not the best approch?? Thanks, you have to make the name of the radio button unique for every question - hard coded this would give radio1 for question1, radio2 for

Re: Grouping of Radio Button

2009-02-08 Thread Azadi Saryev
that is because ALL your radio buttons have same NAME - radio1 - thus you have a group of 9 radio buttons. you need to have a different NAME for each question. you will also, presumably, want a different VALUE for each of your radio button, too, so depending on which one is selected you get its

Re: How to stop auto translation?

2009-02-08 Thread Don L
I just realized that either sql JDBC driver or CF automatically translates symbols like into HTML code of lt; prior to saving the data into a database table. I've never seen CF or JDBC do this. If your HTML is being escaped, I would look for a stray htmleditformat function. Dump out the

Re: How to stop auto translation?

2009-02-08 Thread Paul Kukiel
I just realized that either sql JDBC driver or CF automatically translates symbols like into HTML code of lt; prior to saving the data into a database table. I've never seen CF or JDBC do this. If your HTML is being escaped, I would look for a stray htmleditformat function. Dump

Re: Grouping of Radio Button

2009-02-08 Thread Priya Koya
Yes,Iknow I just wanted to give you an example soI mentioned some value in there.. actually I am takking a session variable there. So I am not worried about the value.. but worried abt the selection of a choice for each question. that is because ALL your radio buttons have same NAME - radio1

Re: How to stop auto translation?

2009-02-08 Thread Brad Wood
I'm wondering if there's some regExp to convert all HTML code back to its orginial form. I'm sure there could be if you wanted. You've only got four characters to put back according to the docs: lt; gt; amp; quot; If your goal is to not have the HTML escaped in the first place, I

Re: How to stop auto translation?

2009-02-08 Thread Don L
I just realized that either sql JDBC driver or CF automatically There is XMLUnformat it will probably do most of it: http:// cflib.org/index.cfm?event=page.udfbyidudfid=800 Paul Thanks for the idea, Paul, but it may be overkill?

Re: How to stop auto translation?

2009-02-08 Thread Don L
I'm wondering if there's some regExp to convert all HTML code back to its orginial form. I'm sure there could be if you wanted. You've only got four characters to put back according to the docs: lt; gt; amp; quot; If your goal is to not have the HTML escaped in the first place, I

Re: Grouping of Radio Button

2009-02-08 Thread Azadi Saryev
just use name=radio#mainloop# instead of name=radio1 for your radio buttons then. that will create a separate radio group for each question: radio1, radio2, etc... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Priya Koya wrote: Yes,Iknow I just wanted to give you an example soI