CF Formatter needed

2007-03-08 Thread Peter Reitberger
Hi, I'm looking for a free/open source CF code formatter. Currently I use the Eclipse CF plugin as IDE which does not support it (Ctrl-Shift-F would have been nice). Is there anything out there? Thanks, Peter ~|

Re: CF Formatter needed

2007-03-08 Thread Andrew Scott
Can you explain what you want it to do, code reformating in my eyes is very buggy at best and is one of things I extremely hated about DW. There was one template that was based on the fact that it formated the coplor of rows and used the if mod 2 style, and everytime I opend that I was forever

Re: SOT: Javascript undo multi-select list function

2007-03-08 Thread Martin Thorpe
Ok I think I have come up with a better solution, on the way home in the traffic jam, it seems simple so I think it will work. Basically to store a snapshot of the select list in an array element each time before an action is made. For instance user clicks add new element to select list,

Re: User Authentication

2007-03-08 Thread Andrew Scott
Hmmm, Just seems strange I just had to implement this the last few days too. Now there maybe a better way but this is how it folded out based on the requiements of my application. The first problem I faced was that a user could only be signed in once. So the only way I cold see this and with

Re: CF Formatter needed

2007-03-08 Thread Peter Reitberger
Can you explain what you want it to do... Well at least it should take care of a proper indention so that code is (more) readable. I have some old code here that I have to understand. It is rather spaghetti and people did indent their cfifs and cfelse and HTML tags in different styles, using

Re: Coldfusion 7 Real World-Examples language problem

2007-03-08 Thread Tom Chiverton
On Wednesday 07 Mar 2007, Siegfried Dolleisch wrote: This ist the entry in the dabase of 28 characters (!): #1579;#1579;#1602;#1602;#1601;#1601;#1594;#1594;#1593;#1593;#160 7;#1607;665544#1576;#1576;#1604;#1604;#1575;#1575;#1575;#1575;#157 8;#1578;#1602;#1602;#1602;#1602;#1602; I'm just

Re: File Size

2007-03-08 Thread Richard Cooper
Thanks for all the input, been very useful. Richard ~| Create Web Applications With ColdFusion MX7 Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive:

Re: CF Formatter needed

2007-03-08 Thread Andrew Scott
Ok well if Mark Drew is listening maybe he will include that in cfeclipse then. Now something like that would be damn handy, and not code reformating that I am used too. On 3/8/07, Peter Reitberger [EMAIL PROTECTED] wrote: Can you explain what you want it to do... Well at least it should

Re: File Size

2007-03-08 Thread Andrew Scott
It still depnds ont the web server too, it is no good for the scripting application server saying one thing and the Web server saying something different. Which is why, the things that have been mentioned like HD space and ram is also important. Before it hits CF the web server has to have it

RE: User Authentication

2007-03-08 Thread Robert Rawlins - Think Blue
Morning Andrew, Glad I'm not the only one that's been working along similar lines with this one. I essentially work with the same method as you, I have a bunch of user objects which manage the profiles, credentials and roles, then in effect I have my user 'factory', although its not a factory in

Re: debugging SOAP requests

2007-03-08 Thread Tom Chiverton
On Wednesday 07 Mar 2007, Russ Michaels wrote: no it is a JAVA web service. I would guess that the types of the parameters you are sending it are wrong. What does the WSDL say ? -- Tom Chiverton Helping to efficiently administrate 24/365 segments On: http://thefalken.livejournal.com

Re: Vista - too many files open error message- Dave watts?

2007-03-08 Thread Tom Chiverton
On Wednesday 07 Mar 2007, Dave Watts wrote: I second the Who the hell needs that many files open at one time? Unfortunately, that's just the way Foxpro works. And it's supported on Vista, is it ? A quick look at http://msdn2.microsoft.com/en-us/vfoxpro/bb190292.aspx suggests not. -- Tom

Re: improved js for form validation?

2007-03-08 Thread Massimo Foti
Does anyone know if there are improved form validation scripts available for download (yes, I know I can make my own). This can be worth a look: http://www.massimocorner.com/validator/ Specifically, if I use validate=integer, it is approving a value of 1+.

Re: Java.io.file

2007-03-08 Thread Massimo Foti
Yea this came from the lastModified function from the java.io.file. It is in milliseconds and like you I'm clueless how to convert. I've looked around the net but everything talks about using seconds not milliseconds. You should be able to use the value returned by the lastModified() method

RE: improved js for form validation?

2007-03-08 Thread Robert Rawlins - Think Blue
I still don't get why people use JS for form validation, Why not just place some decent server side stuff on it? It's allot less hassle and allot more secure. Rob -Original Message- From: Massimo Foti [mailto:[EMAIL PROTECTED] Sent: 08 March 2007 09:28 To: CF-Talk Subject: Re: improved

Re: improved js for form validation?

2007-03-08 Thread Massimo Foti
I still don't get why people use JS for form validation, Maybe because it allows for a better user's exerience ? :-) Why not just place some decent server side stuff on it? I use both client and server-side validation. Many people consider it a best practice It's allot less hassle and

Hash Algorithems

2007-03-08 Thread Robert Rawlins - Think Blue
Hello Guys, For a while I've been wondering about the HASH() function and the different algorithms available on it, the cfdocs list the following. .. CFMX_COMPAT: Generates a hash string identical to that generated by ColdFusion MX and ColdFusion MX 6.1 (default). .. MD5:

Re: Hash Algorithems

2007-03-08 Thread Tom Chiverton
On Thursday 08 Mar 2007, Robert Rawlins - Think Blue wrote: Presumably they become more complex, and therefore more secure from top to bottom, so why would you not specify the SHA-512 on all hash encryption you do, I know that hash is generally regarded as a one way encryption so why do they

RE: improved js for form validation?

2007-03-08 Thread Robert Rawlins - Think Blue
I'm not so sure I agree that it does benefit the user experience, Perhaps for some of the more complex validations, but generally when I click the 'submit' button and I get a horrible windows style 'BP!!!' and a notice window that I've missed out my name I find it to be a little offensive more

RE: Hash Algorithems

2007-03-08 Thread Robert Rawlins - Think Blue
Ok thanks for that Tom, I'd made an educated guess about the performance of generating a SHA-512, it just interested me. Thanks again for that tid-bit Rob -Original Message- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: 08 March 2007 10:19 To: CF-Talk Subject: Re: Hash

Re: improved js for form validation?

2007-03-08 Thread Massimo Foti
I'm not so sure I agree that it does benefit the user experience, Perhaps for some of the more complex validations, but generally when I click the 'submit' button and I get a horrible windows style 'BP!!!' and a notice window that I've missed out my name I find it to be a little

CF Report Builder

2007-03-08 Thread James Smith
Has anyone got report builder to install on Vista? I have tried more than once now and on all occasions it gets through to the Installing stage and then just stops requiring Task Manager to end it as javaw.exe seems to be having problems. I do have an XP install running in Virtual PC 2007 but I

RE: CF Report Builder

2007-03-08 Thread Robert Rawlins - Think Blue
Afternoon Jay, Which version of vista are you running, home, business, ultimate? I would recommend running the install as Administrator and in XP Compatibility mode, you can do this by right clicking the install exe and choosing properties, and then the 'compatibility' tab. Hope that helps, Rob

Re: Coldfusion 7 Real World-Examples language problem

2007-03-08 Thread Paul Hastings
Siegfried Dolleisch wrote: what are the basics to create a web site in farsi? 1) HTML-Header: meta http-equiv=Content-Type content=text/html; charset=utf-8 / cf ignores this but useful for spiders, etc. 2) Change the field typs to nvarchar an ntext in the database and generally increase

Re: Coldfusion 7 Real World-Examples language problem

2007-03-08 Thread Paul Hastings
Siegfried Dolleisch wrote: Here an example: http://www.islamo.net/persisch.cfm and here is the code: http://www.islamo.net/persisch.txt something strange, that page comes up in FF as iso-8859-1 when i insert arabic/farsi into that page i get mojibake. and i also forgot about RTL issues

bad cfc practice but why?

2007-03-08 Thread Richard Cooper
Hi all, I've been using CFC's for a short while now and I'm really liking them. I can really speed up developments now by reusing code. Thing is I know I'm not supposed to put any presentation stuff in them. But say for example I had a poll cfc. I can run all of the actions through the CFC

RE: bad cfc practice but why?

2007-03-08 Thread Doug Brown
Richard If that is what you are looking for, then what you are talking about would be a custom tag. CFC's are only available during the call to one of it's functions and cannot be cfincluded as a custom tag. There is nothing stopping you from using the old way of combining logic and presentation

RE: bad cfc practice but why?

2007-03-08 Thread Paul Vernon
Thing is I know I'm not supposed to put any presentation stuff in them. But say for example I had a poll cfc. I can run all of the actions through the CFC fine, but why not add some optional basic html (i.e. form results) so that if wanted, the whole poll could be encapsulated within the

RE: bad cfc practice but why?

2007-03-08 Thread Robert Rawlins - Think Blue
Doug is right, the idea is that you keep your logic and presentation separate. If you want all the forms and things to be reusable, keep them out of your CFC's and build a CFM file, this can then be called a custom tag, or with a cfinclude at any point in the application. Have a read of this

RE: CF Report Builder

2007-03-08 Thread James Smith
Afternoon Rob It is ultimate, and yes, that fixed it nicely, cheers. Jay -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: 08 March 2007 11:24 To: CF-Talk Subject: RE: CF Report Builder Afternoon Jay, Which version of vista are you running, home,

RE: CF Report Builder

2007-03-08 Thread Robert Rawlins - Think Blue
No worries bud, Ultimate edition really is ULTIMATE, I love it, that compatibility tip comes in pretty handy as UE is quite different from the XP architecture and it'll take the app devs a while to get their head around it. Glad it worked, Rob -Original Message- From: James Smith

Re: bad cfc practice but why?

2007-03-08 Thread Michael Dinowitz
This is not a rule of CFCs, just a 'suggestion' from some of the people using them. There logic is to separate the logic of an application from its presentation. This allows for easy change of the presentation without touching the logic. The argument is logical, but not necessarily the rule.

Re: CF Formatter needed

2007-03-08 Thread Greg Luce
The codesweeper in Homesite works great. Customize one to your liking and every time you open a new file hit it and bob's your uncle! I've been using it for years. I absolutely HATE working in poorly formatted code. Greg On 3/8/07, Andrew Scott [EMAIL PROTECTED] wrote: Ok well if Mark Drew is

Re: bad cfc practice but why?

2007-03-08 Thread Cutter (CFRelated)
I remember, way back in the day, building my first e-comm application for a client. I used an open source javascript cart called Nopcart. It was fairly easy to implement and adjust, and part of the beauty of it was the ability to place a small line of code [showCart()] on any page and it laid

JS Help

2007-03-08 Thread Steve LaBadie
I hope it's ok to post this here. I have created an onmouseover pop-up window, which closes with onmouseout. Works fine in IE6, but creates multiple windows in Firefox. Any ideas? script language=JavaScript type=text/javascript !-- function openWindow(url, name) { myWin =

RE: CF Report Builder

2007-03-08 Thread James Smith
While on the subject of report builder, how can you do conditional queries? For example on a cfm template I could use the following... cfquery SELECT * FROM aTable cfif isDefined('url.someVar') WHERE someID = #url.somevar# /cfif ORDER BY someID /cfquery However this is not possible in report

RE: bad cfc practice but why?

2007-03-08 Thread Dwayne Cole
Likewise this works fine for me. I still seperate the logic from display. I have two cfc's one that contains database logic and the other contains display logic. So considering your poll example I have a modPoll.cfc and a viewPoll.cfc -- Original Message

Re: Text Similarity Algorithm

2007-03-08 Thread Chris Long
Thank you so much for the link! That was exactly what I was looking for. Let me know, if you need a CFX tag for this ($$). Since I've never tried creating my own CFX tag before, I'd be interested. How much are you asking?

Re: bad cfc practice but why?

2007-03-08 Thread Dave Ferguson
One thing to keep in mind is that best practice is not always that. Best practice is not a one size fits all type thing. Use what works for your application. If you happen to need to break out of what has been deemed best practice than so be it. I recently built an app that is all built on

Re: CF Formatter needed

2007-03-08 Thread Mark Drew
I am listening and nodding... and going... right.. I have an idea for that... OF course a bit of $$ incentive would be nice ;) MD On 8 Mar 2007, at 09:11, Andrew Scott wrote: Ok well if Mark Drew is listening maybe he will include that in cfeclipse then. Now something like that

Oracle 10g Express Quotes or no Quotes?

2007-03-08 Thread Dawn Sekel
I am trying to transfer an application from MSAccess into Oracle 10g. I the free version of Oracle 10g Express running locally for development purposes before uploading to the test server. I have used older versions of Oracle, but never 10g. It has been a while, but I do not ever remember

Re: File Size

2007-03-08 Thread Dave Ferguson
From my experience CF is not good at handling large file uploads. I have always ran into memory issues on the server using cf for uploads. That being said, it works great for small files but once you get over the 10mb I would suggest using something else. I use a java applet to do file

cfform flash cfselect not showing items in the list

2007-03-08 Thread Doug Brown
My servers had been running fine till I got hit with a virus last week that shut down everything. I reloaded Windows 2003, Coldfusion MX7.02 and I use SWSofts Plesk server management software. Before the sever outage, all of my coldfusion flash forms worked exactly as coded and expected. Now

Is there a Basecamp.cfc?

2007-03-08 Thread Andy Matthews
I'm trying to find out if someone has already written a CFC which ties into Basecamp's API. I've got a client who wants to pull data from Basecamp to generate additional reports on their time tracking. I'm thinking this would be a great open source project, but I want to find out if someone has

Re: Smart Names implementation

2007-03-08 Thread Tom McNeer
Jake, You're getting into an area that has been wrestled with for years, and the true solutions are very, very complex. So your choices on implementation will depend on just far into the forest you want to go. Do a Google search on fuzzy name matching. You'll find links to academic white papers

RE: cfform flash cfselect not showing items in the list

2007-03-08 Thread Adkins, Randy
Page not found -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 8:58 AM To: CF-Talk Subject: cfform flash cfselect not showing items in the list My servers had been running fine till I got hit with a virus last week that shut down

Re: bad cfc practice but why?

2007-03-08 Thread Christopher Jordan
Paul, I've been doing the exact same thing... well, not with a shopping cart, so not *eaxctly*, but still... I've got a CFC that I call display.cfc. It's whole purpose in life is to generate screen layouts and return the HTML as a string to the calling page where I then display the content

Re: bad cfc practice but why?

2007-03-08 Thread Richard Cooper
Thanks for your replies. Seems like there is a little bit of a split on this one. My gut tells me the savecontent way should cover my purposes, hopefully it won't come back to haunt me :) Thanks again. Richard ~| Create Web

Re: cfform flash cfselect not showing items in the list

2007-03-08 Thread Doug Brown
I apologize, I listed the wrong directory. corrected page location, http://www.moxysportswear.com/includes/forms.cfm My servers had been running fine till I got hit with a virus last week that shut down everything. I reloaded Windows 2003, Coldfusion MX7.02 and I use SWSofts Plesk server

RE: bad cfc practice but why?

2007-03-08 Thread Gaulin, Mark
I think Mike nailed it. People who say that CFC should not create html must also think that no class in java can create output, and that clearly won't fly (since java has nothing but classes). CFCs should have a single, clear purpose. If that purpose includes creating html than so be it. The OO

RE: bad cfc practice but why?

2007-03-08 Thread Ian Skinner
I don't know what the 10 replies to this original message are yet, but my thought is that it is not bad to put display logic in a CFC designed for the view layer, just don't blend other layer's logic in the same CFC; keep the separation. -- Ian Skinner Web Programmer BloodSource

Re: Scheduled Task Times not saving

2007-03-08 Thread Dana Kowalski
Last yesterday afternoon I deleted all the tasks and set them back up form scratch. Today they are working fine again. darn hiccups =\ anyhow thanks for the info, at least I learned about the insane spaces in the time field (lol btw) - dk

Re: Is there a Basecamp.cfc?

2007-03-08 Thread Dana Kowalski
http://www.imified.com/ IMified is build on top of Coldfusion and lets you interact with your basecamp account through any instant messenger service (except yahoo atm). pretty cool stuff. they also tie in to rememberthemilk and probably a dozen or so others. I don't think the API they use is

Re: Is there a Basecamp.cfc?

2007-03-08 Thread Rey Bango
Hi Dana, IMified is a little different from Andy is looking for. He wants a component that will allow him to access the Basecamp API from within CF. Rey... Dana Kowalski wrote: http://www.imified.com/ IMified is build on top of Coldfusion and lets you interact with your basecamp account

RE: Is there a Basecamp.cfc?

2007-03-08 Thread Andy Matthews
Right... I've already started writing it. I'll probably have it done this weekend. Then, I'll put it out there and get feedback from everyone. -Original Message- From: Rey Bango [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 9:52 AM To: CF-Talk Subject: Re: Is there a

RE: Is there a Basecamp.cfc?

2007-03-08 Thread Andy Matthews
Thanks Dana... Not quite what I'm needing, but thanks for the input. -Original Message- From: Dana Kowalski [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 8:32 AM To: CF-Talk Subject: Re: Is there a Basecamp.cfc? http://www.imified.com/ IMified is build on top of Coldfusion

Re: Vista - too many files open error message- Dave watts?

2007-03-08 Thread Will Tomlinson
Dave, She says, YOU DA MAN. Your solution worked perfectly. :) Thanks much dude, Will ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion

Validating with hidden form fields - how to use my own formatting for error messages?

2007-03-08 Thread Pete Ruckelshaus
I'm using CF's built-in form validation method that uses hidden form fields for validation (see http://livedocs.adobe.com/coldfusion/7/htmldocs/1385.htm#1154690) How do I apply my own formatting to those error messages? Thanks, Pete

RE: Validating with hidden form fields - how to use my own formatting for error messages?

2007-03-08 Thread Ian Skinner
How do I apply my own formatting to those error messages? One method is to use the cferror... tag. You can use this tag to call any page you want to display this type of exceptions, and that page can then format the output as you desire. -- Ian Skinner Web Programmer BloodSource

Re: File Size

2007-03-08 Thread Kris Jones
There can be limitations on upload size enforced at the webserver. In IIS this is set in the metabase. Here is explanation of such for IIS: http://technet2.microsoft.com/WindowsServer/en/library/c89bf2ae-f764-459d-bf4f-9f02afc45fa31033.mspx?mfr=true Cheers, Kris

Re: CF Report Builder

2007-03-08 Thread Kris Jones
You could do the query in CF prior to calling the report, then pass the query into the report. I think you could also setup a parameter to the report, which when set would add the where clause as below? I've not tested this as I always pass my queries into the report rather than embed them.

cfforms - Please stop breaking my validation

2007-03-08 Thread Will Tomlinson
I hate to gripe again, I really do, but it seems that once I get hooked on another CF feature like xForms, somethin rears its ugly head. CF sticks this right above the form: link href=/CFIDE/scripts/css/blue_style.css rel=stylesheet type=text/css media=all/ validator.w3.org LOVES this. It

RE: improved js for form validation?

2007-03-08 Thread Leitch, Oblio
First, thanks to everyone for responding. However, I never intended to start a flame war - the fact is I'm using JS and it's not working right. Specifically, I'm using CF's built in validation for ranges in a cfinput tag. The trouble I'm having is it's accepting a value of 1+. Technically, it

Automated Local Printing of Remote Report

2007-03-08 Thread E C list
Hello- I am wondering if anyone has come up with any ways of automatically printing (locally) a remote cfreport or pdf file. I'd like to print off some customer letters every day at 9am without human intervention, and in a robust sort of way. I am sure I haven't thought of everything, but so

RE: cfforms - Please stop breaking my validation

2007-03-08 Thread Andy Matthews
Other than for personal satisfaction, what does it matter if your page validates? Does it validate if you take that line out? If that's all it is then I wouldn't' worry about it. -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 9:28 AM To:

Re: Validating with hidden form fields - how to use my own formatting for error messages?

2007-03-08 Thread Pete Ruckelshaus
Thanks Ian, that helped. I found that using cferror doesn't allow me to use my normal site template, so since I'm using application.cfc, I used the onError method. This is what I did, and it allowed me to use my normal site template: cffunction name=onError output=true cfargument

RE: Automated Local Printing of Remote Report

2007-03-08 Thread Adkins, Randy
May want to search the archives as Automatic Printing comes up QUITE often. -Original Message- From: E C list [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 11:58 AM To: CF-Talk Subject: Automated Local Printing of Remote Report Hello- I am wondering if anyone has come up

Passing params to CFREPORT

2007-03-08 Thread Greg Griffin
I have no problems using the CFREPORTPARAM tags to pass variables into my CFREPORTS, but I want to know if there is a special scope for these paramaters. In a nutshell, I'm trying to write a generic CFML wrapper for report calls. I want to loop through the FORM structure (which might contain

Re: improved js for form validation?

2007-03-08 Thread Josh Nathanson
Oblio, A lot of people on this list don't like cfforms for just the reason you are stating - there are flaws in the js such as the one you've discovered. I did some testing and found that 1$ will also slip through, as well as 1, (one with a comma). This is why people are saying to try another

Re: CF Formatter needed

2007-03-08 Thread Charlie Griefer
just out of curiosity...what's the going rate for bug #145 (i -hate- that one) :) On 3/8/07, Mark Drew [EMAIL PROTECTED] wrote: I am listening and nodding... and going... right.. I have an idea for that... OF course a bit of $$ incentive would be nice ;) MD On 8 Mar 2007, at 09:11,

Re: Passing params to CFREPORT

2007-03-08 Thread Kris Jones
I don't think there is a report parameter collection that you could pass the form structure into, like you can with a cfc function call. But, you could loop through your form scope, and add a cfreportparam for each parameter you found there. Your form element names could be such that you get the

Re: CF Formatter needed

2007-03-08 Thread Mike Kear
You must have used an old version of Dreamweaver. I use DW and the code sweeper is great. It never re-writes code, i have never had a syntax error after running the sweeper over it. And the style sweeper is configurable. You can tell it where you want new lines where you want indentation and

Re: Hash Algorithems

2007-03-08 Thread Ben Doom
MD5 is an older standard. I don't remember what it stands for. It is still widely used for signing things like software downloads (look for it where you download Linux CDs or on Sourceforge). It is not secure the same way the lock on my door isn't secure -- it's defeatable, but it's a good

Re: Is there a Basecamp.cfc?

2007-03-08 Thread Dana Kowalski
yeah like I said, I don't know if they will/have released their code to do it since the project is currently free /shrug. ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity.

RE: installing CF Enterprise, Load Balancing Etc...

2007-03-08 Thread Brad Wood
I have no idea why this message just reposted several days after my original post. They just changed our mail servers around-- must have gotten stuck in the queue. Weird. ~Brad -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 10:38 AM To:

Coldfusion Server Issues

2007-03-08 Thread Chris Musial
I have been experiencing issues (slowness, high thread counts, constant crashes, etc) on a shared server for about 2 weeks now. I got another server, transferred one site (the largest one) to it...everything seemed to be working fine. The troubled server was running like it should and the new

Re: improved js for form validation?

2007-03-08 Thread Dana Kowalski
I'm currently integrating Adobe's Spry form validation into most of my sites and its been wonderful so far. There's no need to have windows beeps as you call em when theres far more graceful notifications to the user that can be done. Also, providing client side validation is great for you and

Re: improved js for form validation?

2007-03-08 Thread Josh Nathanson
Oblio, I got your intended result by doing the following: cfinput name=fld required=yes type=text validate=regular_expression pattern=^[\d]+$ message=not an integer. / I didn't bang on it too hard though, maybe you could test it further and see if it's failsafe. It is lame though that you

Re: cfforms - Please stop breaking my validation

2007-03-08 Thread Dana Kowalski
I honestly hate that kind of attitude from a good portion of the CF community. Web Standards are a reality. If you are running a shop and putting out web products eventually you will run into this where you're app won't validate and theres nothing to do but simply stop using the feature.

String Function

2007-03-08 Thread Deepak Gupta
Hi I have a string like this AB_BC_DE Now i have to extract AB, BC, DE in seperate variables. How can I do that? which function i can use. DG ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIA’s for your

RE: String Function

2007-03-08 Thread Mosh Teitelbaum
Deepak: You can use the various List functions as long as you specify an underscore as the delimiter. If the string is always going to have 3 elements to it, you could simply do something like: CFSET str = AB_BC_DE CFSET var1 = ListGetAt(str, 1, _) CFSET var2 =

Re: String Function

2007-03-08 Thread Charlie Griefer
loop over it treating as a list delimited by the underscore character. cfset mylist = AB_BC_DE / cfset countVar = 1 / cfloop list=#myList# delimiters=_ index=idx cfset variables[myVar countVar] = idx / cfset countVar = countVar + 1 / /cfloop cfoutput #myVar1#br /

RE: String Function

2007-03-08 Thread Andy Matthews
Use ListGetAt: ListGetAt(string,1,_) would give you AB ListGetAt(string,2,_) would give you BC, etc. -Original Message- From: Deepak Gupta [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 12:20 PM To: CF-Talk Subject: String Function Hi I have a string like this AB_BC_DE

Re: String Function

2007-03-08 Thread Ben Doom
Use the standard list functions (like listgetat()) using _ as the delimiter. So, to get BC, you could use listgetat(list, 2, _) --Ben Doom Deepak Gupta wrote: Hi I have a string like this AB_BC_DE Now i have to extract AB, BC, DE in seperate variables. How can I do that? which

Re: String Function

2007-03-08 Thread Jon Clausen
Deepak, You should be able to use: cfset myString = AB_BC_DE/ cfset myStruct = structNew()/ cfloop list=#myString# index=i delimiters=_ cfset myStruct[i] = i/ /cfloop Or you can use listChangeDelims() : http://www.cfquickdocs.com/? sourceid=cfQDSearch1.02getDoc=listChangeDelims HTH, Jon On

RE: String Function

2007-03-08 Thread Ian Skinner
A one stop solution might be listToArray() cfset stringAry = listToArray(aa_bb_cc,_) cfoutput#stringAry[2]#/cfoutput -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Sudoku | | | - C code. C code run.

CFCs and the THIS scope

2007-03-08 Thread joe smiths
Given the files below - why does update1() fail to update the cfc property? file TEMP.CFM: cfoutput cfif not isDefined(session.temp) cfset session.temp=#createObject('component','temp')# /cfif html head titletemp/title /head body form method=post action=temp.cfc?method=update1 update1:

RE: String Function

2007-03-08 Thread Jones Eric R Ctr 8 AF Det 1/AFNOC
cfset listToArray(LIST,'_') Then you can reference each as an array element to further process. ---_ Eric R. Jones Senior Web Application Developer, AFNOC/NCD Barksdale AFB, LA DSN 781-7784 Comm (318) 456-7784 NIPRNET: [EMAIL

RE: String Function

2007-03-08 Thread Jones Eric R Ctr 8 AF Det 1/AFNOC
cfset listToArray(LIST,'_') Then you can reference each as an array element to further process. ---_ Eric R. Jones Senior Web Application Developer, AFNOC/NCD Barksdale AFB, LA DSN 781-7784 Comm (318) 456-7784 NIPRNET: [EMAIL

Re: String Function

2007-03-08 Thread Charlie Griefer
On 3/8/07, Ian Skinner [EMAIL PROTECTED] wrote: A one stop solution might be listToArray() cfset stringAry = listToArray(aa_bb_cc,_) cfoutput#stringAry[2]#/cfoutput nice! -- Charlie Griefer ...All the world shall be your enemy, Prince with

Re: String Function

2007-03-08 Thread Scott Weikert
Might be good to use an array to store the vars instead. That way you can always quickly determine the number of vars present. cfset mylist = AB_BC_DE / cfset myArray = ArrayNew(1) cfloop list=#myList# delimiters=_ index=idx cfset ArrayAppend(myArray, idx) / /cfloop I have

Re: String Function

2007-03-08 Thread Jon Clausen
Yep, that thread's good 'n dead. :-) I don' t think I've seen a thread jumped on so fast since the one about the new Firefox logo. Good call on listToArray(), Ian, BTW. -Jon On Mar 8, 2007, at 2:40 PM, Jon Clausen wrote: Deepak, You should be able to use: cfset myString = AB_BC_DE/

Re: String Function

2007-03-08 Thread Charlie Griefer
but you can determine that just as easily using the listLen() function :) altho I do think Ian (and Eric's) suggestion about using listToArray() is the most concise and straightforward. On 3/8/07, Scott Weikert [EMAIL PROTECTED] wrote: Might be good to use an array to store the vars instead.

RE: improved js for form validation?

2007-03-08 Thread Leitch, Oblio
Thanks, that was nice and direct. I actually tracked down the problem; it lies in the fact that the cfform.js *changes* the value before validating. I can't guess why they did this, but they strip spaces, dollar, pound, yen, euro, commas, tildas and plus signs before deciding that it's good.

Re: improved js for form validation?

2007-03-08 Thread Josh Nathanson
Thanks, that was nice and direct. I actually tracked down the problem; it lies in the fact that the cfform.js *changes* the value before validating. I can't guess why they did this, but they strip spaces, dollar, pound, yen, euro, commas, tildas and plus signs before deciding that it's

RE: CFCs and the THIS scope

2007-03-08 Thread Jaime Metcher
Well, it seems to me that both forms are being handled by a new instance of temp. update1 stores the value in that new instance, which is garbage collected some time after the POST request terminates. update2 stores the value in the prexisting instance which has been placed in the session scope,

RE: Coldfusion Server Issues

2007-03-08 Thread Jaime Metcher
What could cause cross-interference between sites? Some ideas: 1. Contention for shared resources e.g. you keep a file open somewhere, or each site has a logging thread that keeps a lock on some table. 2. An insidious one can be where you inadvertently use the same application name, so the two

RE: Vista - too many files open error message- Dave watts?

2007-03-08 Thread Dave Watts
Thanks much dude You're welcome! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit

Re: CFCs and the THIS scope

2007-03-08 Thread Rick Root
Because you're posting to temp.cfc directly, not the temp.cfc you've loaded into the session scope. Rick On 3/8/07, joe smiths [EMAIL PROTECTED] wrote: Given the files below - why does update1() fail to update the cfc property? file TEMP.CFM: cfoutput cfif not isDefined(session.temp)

RE: Validating with hidden form fields - how to use my own format ting for error messages?

2007-03-08 Thread Dave Watts
I'm using CF's built-in form validation method that uses hidden form fields for validation (see http://livedocs.adobe.com/coldfusion/7/htmldocs/1385.htm#1154690) How do I apply my own formatting to those error messages? You can use the CFERROR tag to control the display of these

  1   2   >