Re: cfhttp response with non-english characters gets cut off

2011-05-19 Thread Andrei Kondrashev
Dump HTTP headers and look at Content-Type header. There is a charset attribute that specifies the input stream encoding. Most likely it is missing or incorrect. If the charset is missing, CF assumes UTF-8. However, in UTF-8 any char with the code higher than 127, is treated as an escape

Re: ColdFusion and AJAX choices

2011-05-19 Thread Andrei Kondrashev
Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. Not even speaking about its terrible performance. jQuery + infinity ~| Order the Adobe Coldfusion Anthology now!

Remote Coldfusion Developer available work urgently

2011-05-19 Thread vweb experts
I am coldfusion developer with 8 years of experience. Currently I am looking for remote work and available to work 40 hours per week. Reasonable rates and committed to deliver product in agreed time. Always write efficient and extensible software. I am expert into Coldfusion (6,MX,7,8,9), Ms

Re: ColdFusion and AJAX choices

2011-05-19 Thread James Holmes
1) It's 90k minified 2) Those 10 lines will inevitably be 1 line of jQuery 3) Those 10 lines will work in your favourite browser; then you find that IE x has some quirk you didn't count on, etc 4) You and Claude S will best friends, I can tell -- WSS4CF - WS-Security framework for CF

Re: scoping

2011-05-19 Thread Dominic Watson
Curiously, I do it the exact opposite way: cfset variables.myVariable = fubar / !--- ensure that I am setting in the variables scope, because there could be a 'myVariable' in another scope --- cfoutput#myVariable#/cfoutput !--- I have just guaranteed that I have variables.myVariable, there is

Re: ColdFusion and AJAX choices

2011-05-19 Thread Michael Grant
I used to feel the exact same way! Then I realized I was wrong. On Thu, May 19, 2011 at 2:42 AM, Andrei Kondrashev adiab...@cs.com wrote: Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. Not even speaking about its terrible

Re: scoping

2011-05-19 Thread Steven Durette
You keep saying variables in the local scope. You may want to say the current page because there is a local scope. In functions if you cfset var myvar = something / it is in the local scope and you don't attach a scope to it. I believe in CF 9 they actually added the local scope for this

Re: ColdFusion and AJAX choices

2011-05-19 Thread Raymond Camden
And add to that that if you use the CDN version, most people already have it cached. I've yet to see any performance issues with it. Would things be faster w/o using a framework? Maybe - but as in all things - you make trades between performance and the ability to maintain the code. I'm SO

CFThread Memory Issues sending emails

2011-05-19 Thread Firewall
This one has me really stumped. I'm running a pretty simple cfmail script to send out email messages to a user list. Up until now I was simply doing it with a browser reload but the client recently doubled the number of emails they want to send to about 57,000. So I decided to implement this with

RE: ColdFusion and AJAX choices

2011-05-19 Thread Rick Faircloth
Where do you get 300K? jQuery core is only 229K uncompressed... 31K, minified and gzipped. www.jquery.com -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Thursday, May 19, 2011 6:45 AM To: cf-talk Subject: Re: ColdFusion and AJAX choices I used to feel the

Recordcount not working????

2011-05-19 Thread Phillip Vector
cfquery name=OpenedUpSeats dbtype=ODBC datasource=TrainingBE Select * from OpenedUpSeatsView where account='cfset zz=writeoutput(session.account)' /cfquery cfif OpenedUpSeats.RecordCount First of all.. This isn't my code, so I know it's pretty bad. The Query doesn't error,

Re: Recordcount not working????

2011-05-19 Thread John M Bliss
What happens when you dump OpenedUpSeats and/or isquery(OpenedUpSeats) ? On Thu, May 19, 2011 at 6:57 AM, Phillip Vector vec...@mostdeadlygame.comwrote: cfquery name=OpenedUpSeats dbtype=ODBC datasource=TrainingBE Select * from OpenedUpSeatsView where account='cfset

Re: Recordcount not working????

2011-05-19 Thread Phillip Vector
What happens when you dump OpenedUpSeats and/or isquery(OpenedUpSeats) ? Variable OPENEDUPSEATS is undefined. But it IS defined.. *pulls hair* ~| Order the Adobe Coldfusion Anthology now!

Re: scoping

2011-05-19 Thread Mike Chabot
There is a difference between local scope and local variables scope which is likely resulting in some confusion. The local scope is what is used inside of a function or CFC and it does not use variables. in front of the variable name. There is a separate scope called variables, often referred to

Re: Recordcount not working????

2011-05-19 Thread Roger Austin
On 5/19/2011 7:57 AM, Phillip Vector wrote: cfquery name=OpenedUpSeats dbtype=ODBC datasource=TrainingBE Select * from OpenedUpSeatsView where account='cfset zz=writeoutput(session.account)' /cfquery cfif OpenedUpSeats.RecordCount First of all.. This isn't my code, so

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
2) Those 10 lines will inevitably be 1 line of jQuery What's the difference between 1 line to call a jQuery function inside a 90k JS code and 1 line to call a 10 lines function in your own JS code ? Those 10 lines will work in your favourite browser; then you find that IE x has some quirk

Re: Recordcount not working????

2011-05-19 Thread Greg Morphis
Can we see more of the code? There's obviously something funny here and we're not able to see it. On Thu, May 19, 2011 at 7:02 AM, Phillip Vector vec...@mostdeadlygame.com wrote: What happens when you dump OpenedUpSeats and/or isquery(OpenedUpSeats) ? Variable OPENEDUPSEATS is undefined.

RE: Recordcount not working????

2011-05-19 Thread Mark A. Kruger
Roger, What happens when you just do cfdump var=#OpenedUpSeats#/ (and what in the ham sandwich is this use of writeoutput()) Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Roger Austin

Re: Recordcount not working????

2011-05-19 Thread Phillip Vector
On 5/19/2011 7:57 AM, Phillip Vector wrote: Run it without the Where clause in the SQL and see what happens. cfquery name=OpenedUpSeats dbtype=ODBC datasource=TrainingBE Select * from OpenedUpSeatsView /cfquery cfdump var=#OpenedUpSeats# abort gets me Variable OPENEDUPSEATS is undefined.

Re: scoping

2011-05-19 Thread Eric Cobb
That's kinda backwards If you don't specify a scope in your cfset statement, then CF will always put it in the VARIABLES scope. But, if you don't specify a scope when calling the variable (in your cfoutput), then CF will have to hunt down the variable to determine which scope it's in.

Re: scoping

2011-05-19 Thread Aaron Rouse
See, depending on what the entire CFM page looked like and it's usage along with what brought me into the code to debug things then I personally may not see that output as obvious. Now I look at it that way because I have inherited code from others who just plain had zero clue about scoping

Re: ColdFusion and AJAX choices

2011-05-19 Thread Raymond Camden
Simple. jQuery is so awesome it seems bigger than it really is. ;) On Thu, May 19, 2011 at 7:03 AM, Rick Faircloth r...@whitestonemedia.com wrote: Where do you get 300K? jQuery core is only 229K uncompressed... 31K, minified and gzipped. www.jquery.com -Original Message-

Re: scoping

2011-05-19 Thread Claude Schnéegans
because there could be a 'myVariable' in another scope I think CFSET always set a variable in the variables scope when no scope is specified and do not look in other scopes. Ie: CFSET form.test = form.test CFSET test = test CFOUTPUT form.test = #form.test#BR test = #test# /CFOUTPUT This

Re: Recordcount not working????

2011-05-19 Thread Phillip Vector
Can we see more of the code? There's obviously something funny here and we're not able to see it. cfif (not isdefined(session.stack)) or (not isdefined(session.stackT)) or (not listlen(session.stack) is listlen(session.stackT)) or (listlen(session.stack) gt 40)

Re: scoping

2011-05-19 Thread Eric Cobb
VARIABLES is implied when setting a variable, not when calling one. CF will always go into search mode if you call a variable without a scope. In CF 8 it will search 3 other scopes before looking at the VARIABLES scope, and in CF 9 it will search 5 scopes before looking at VARIABLES.

Re: scoping

2011-05-19 Thread Dominic Watson
Aha, so it is. I always thought that the cfset searched the scopes as well. Just did the following to prove myself wrong: cfset form.fubar = test / cfset fubar = changed / cfdump var=#form.fubar# /cfabort (output = 'test') Oivay! On 19 May 2011 13:47, Eric Cobb cft...@ecartech.com wrote: If

Re: Recordcount not working????

2011-05-19 Thread Greg Morphis
The code looks like this: cfdump var=#OpenedUpSeats# abort ? I have never seen code like this ever or that writeoutput() above.. have you tried just cfdump var=#OpenedUpSeats# / cfabort / On Thu, May 19, 2011 at 8:29 AM, Phillip Vector vec...@mostdeadlygame.com wrote: cfdump

Re: ColdFusion and AJAX choices

2011-05-19 Thread Dominic Watson
Do those 10 lines of code enable you to write different handlers depending on the status code and success of the http call without any fuss? Do they translate common response formats into plain js objects for you? On 19 May 2011 14:25, wrote:  2) Those 10 lines will inevitably be 1 line of

RE: scoping

2011-05-19 Thread DURETTE, STEVEN J (ATTASIAIT)
Always scope your variables! We used to have a cf programmer around here that used to put the variable level in the application scope. Then he occasionally put it in session scope, occasionally in request scope, sometimes in the variables scope, and even sometimes he would pull a query with

Re: Recordcount not working????

2011-05-19 Thread Phillip Vector
The code looks like this: cfdump var=#OpenedUpSeats# abort ? I have never seen code like this ever or that writeoutput() above.. have you tried just cfdump var=#OpenedUpSeats# / cfabort / Same result. It's not the closing of the tags that are messing things up. cfdump var=#OpenedUpSeats#

Re: ColdFusion and AJAX choices

2011-05-19 Thread Gerald Guido
Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. Not even speaking about its terrible performance. The exact same argument could be made swapping out jQuery with CF and JS with PHP. On Thu, May 19, 2011 at 2:42 AM, Andrei Kondrashev

Re: Recordcount not working????

2011-05-19 Thread Greg Morphis
ah, added in CF9 http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7ef7.html Just to rule everything else out.. Go up to the top of the page and JUST put cfquery name=OpenedUpSeats dbtype=ODBC datasource=TrainingBE Select * from OpenedUpSeatsView /cfquery

Re: Recordcount not working????

2011-05-19 Thread Wil Genovese
I've seen this in the past when the request to the DB server just dies for some reason. The DB server may even process and return the request, so it may not be obvious. Make sure the DB is giving a response back. Make sure things like JDBC drivers are up to date. Wil Genovese Sr. Web

CFchart / currency

2011-05-19 Thread Jenny Gavin-Wear
I have set locale to English(UK), getlocal confirms it. I'm seeing pound signs for lscurrencyformat correctly, but my cfcharts are showing dollars. The server is set to English UK. Is this a bug? Thanks, Jenny No virus found in this outgoing message. Checked by AVG - www.avg.com Version:

Re: scoping

2011-05-19 Thread Claude Schnéegans
Yes, the real benefit is that you always know which scope is being referenced, with no ambiguity. Actually, there is only ambiguity for those who do not know the language they are using and its rules by default. There could be an ambiguity if you are using the same variables names for

Re: Recordcount not working????

2011-05-19 Thread Phillip Vector
ah, added in CF9 http://help.adobe.com/en_US/ColdFusion/9. 0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7ef7.html Just to rule everything else out.. Go up to the top of the page and JUST put cfquery name=OpenedUpSeats dbtype=ODBC datasource=TrainingBE Select * from OpenedUpSeatsView

Re: Recordcount not working????

2011-05-19 Thread Phillip Vector
I've seen this in the past when the request to the DB server just dies for some reason. The DB server may even process and return the request, so it may not be obvious. Make sure the DB is giving a response back. It's able to do tables.. I think that it's because it's a view and not a

Re: CFchart / currency

2011-05-19 Thread Raymond Camden
I'll turn this into a blog post tonight, but I loaded up the Chart editor, went to Y-Axis, and picked Format. I changed the style to Currency, and unchecked Sytem Locale. I picked Germany and it definitely worked. I also tried English/UK and it worked well too. Once you get the style you can then

Re: Recordcount not working????

2011-05-19 Thread Claude Schnéegans
Are you under CFMX? Try to remove dbtype=ODBC This is not valid anymore: Deprecated the connectString, dbName, dbServer, provider, providerDSN, and sql attributes, and all values of the dbtype attribute except query. They do not work, and might cause an error, in releases later than ColdFusion

RE: RegEx Question

2011-05-19 Thread Duane Boudreau
Thanks that's brilliant! -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Wednesday, May 18, 2011 5:42 AM To: cf-talk Subject: Re: RegEx Question Here is a very blunt regex that should match the opening tag (does not check for the lack of

Re: Recordcount not working????

2011-05-19 Thread Phillip Vector
Are you under CFMX? Try to remove dbtype=ODBC This is not valid anymore: Thanks for the tip. Eliminated, but still not working. I changed the query to point to a table and that works fine. It's looking up a view that it does this. I can't find anywhere on the interwebs where the is a

Re: Recordcount not working????

2011-05-19 Thread Jason Fisher
There is no difference: we successfully query SQL Server views all the time in several of our apps. Have you checked the permissions? Could it be that the View doesn't allow the CF service user to SELECT data? From: Phillip Vector

Re: Recordcount not working????

2011-05-19 Thread Phillip Vector
There is no difference: we successfully query SQL Server views all the time in several of our apps. Have you checked the permissions? Could it be that the View doesn't allow the CF service user to SELECT data? Thanks.. I will check with our DB admin and see.

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. I agree 100%. I do all my Ajax stuff with only two functions: ajaxGET (url) and ajaxPOST (url, sendText), exactly 10 lines each.

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
Do those 10 lines of code enable you to write different handlers depending on the status code and success of the http call without any fuss? Better than that : they open a new window to display the CF error dump in case the called template caused an error. Do they translate common response

Re: ColdFusion and AJAX choices

2011-05-19 Thread Raymond Camden
So you agree with an incorrect assesment of the size of jQuery? It's 31KB minimized, not 300k. On Thu, May 19, 2011 at 8:17 AM, wrote:  Carrying 300K of JS code (min) just to do something that takes 10 lines (or less) of JS code is nonsense. I agree 100%. I do all my Ajax stuff with only

Re: ColdFusion and AJAX choices

2011-05-19 Thread Raymond Camden
On Thu, May 19, 2011 at 9:24 AM, wrote:  Do those 10 lines of code enable you to write different handlers depending on the status code and success of the http call without any fuss? Better than that : they open a new window to display the CF error dump in case the called template caused

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
Eh? How does jQuery make it easier for folks to get a CF error dump? Can you explain that? I was talking about my own code, not jQuery. ~| Order the Adobe Coldfusion Anthology now!

Re: cfhttp response with non-english characters gets cut off

2011-05-19 Thread morgan l
Paul, good thoughts. We had thought of both of these, and did our best to eliminate the zoo of encodings by creating a test document that causes the same behavior. True, I can't be certain that every case that is failing is valid utf-8, but my main test document is one I created in Notepad and

Re: Recordcount not working????

2011-05-19 Thread Scott Stewart
Phillip..I don't think dbtype is supported for anything other than type: query any more. On May 19, 2011 9:34 AM, Phillip Vector vec...@mostdeadlygame.com wrote: On 5/19/2011 7:57 AM, Phillip Vector wrote: Run it without the Where clause in the SQL and see what happens. cfquery

Re: ColdFusion and AJAX choices

2011-05-19 Thread Dominic Watson
I'd argue with that being better. Custom handlers for different responses allows you to tailor the reaction to failures either globally or case by case - you could open a new window with an error report, show a nice message for the user, do nothing, etc. I'm sure that your ajaxGet and ajaxPost

RE: CFchart / currency

2011-05-19 Thread Jenny Gavin-Wear
Hi Ray, I'm guessing the cart editor is new since CF 7, sadly I'm on Cf 7. This is what I have: cfset chartdate = createdate(session.year, session.month, datepart(d, now())) cfchart format=flash chartwidth=400 chartheight=300 show3d=yes labelformat=currency title=#session.mainCatDescr# Sales

Re: ColdFusion and AJAX choices

2011-05-19 Thread John M Bliss
To be clear, even on Edge or 56K dial-up, non-cached Jquery, with all its built-in goodness, arrives in less than a second...so...I really can't imagine why rolling your own just-enough JS would be better. At least when it comes to speed/performance. Now, certainly, if you need to do X and

Re: cfhttp response with non-english characters gets cut off

2011-05-19 Thread morgan l
Andrei, one of my coworkers had much the same thought. The headers are reporting utf-8, and I've created a test document containing an omega character I've saved as plain text utf-8 encoded and it still truncates. I believe this may still be the actual problem, but I'm not seeing a solution. Our

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
Have you used jQuery Claude? I use a couple of libraries in my system, but most of the time, there is something I need they won't do, or 90% they do I don't need. I've been developing my own functions far before jQuery existed and even the term AJAX was invented. They do exactly what I want

Re: ColdFusion and AJAX choices

2011-05-19 Thread John M Bliss
Clearly, use whatever you like...but...wrt your harvester analogy: when the harvester is free, doesn't impact speed/performance, and will handle the 10 square feet of grass and the 10 hectares of grass...I'm not seeing the drawback of using it for both. On Thu, May 19, 2011 at 9:57 AM, wrote:

AntiSpammy vs http://www.cflib.org/udf.cfm/safetext for preventing XSS

2011-05-19 Thread Brook Davies
Hi Guys, I'm currently using the safeText UDF (http://www.cflib.org/udf.cfm/safetext) to clean user submitted content, both HTML fragments and full HTML documents. Based on some reading over at http://www.petefreitag.com/item/760.cfm , I am considering using AntiSammy instead. What I want

Re: ColdFusion and AJAX choices

2011-05-19 Thread Dominic Watson
jQuery (and other libraries) is well tested, well maintained, hugely popular and well thought out. All these things will have an impact on the speed of development and quality of code, especially for someone who wasn't coding before these things were commonplace. Andrei's assertion that using

Fwd: Re: scoping

2011-05-19 Thread Steve 'Cutter' Blades
There's some great stuff here, though not entirely technically correct. Key/values placed in the Variables scope are not a part of the Request scope. You can see this by dumping the Request scope and the Variables scope. You will see that they are two entirely different animals (BTW, you should

Re: CFchart / currency

2011-05-19 Thread Raymond Camden
Actually the chart editor is old. Go to your cf root, charting, and run webcharts.bat (or the Unix flavor). It's a graphical editor that spits out a style XML you can use in cfchart. Search my blog for cfchart. I've got a butt load of entries on it that talk about this tool and custom XML. (And

Re: CFchart / currency

2011-05-19 Thread Raymond Camden
I just checked - CF7 added the ability to use styles. You should be all set. On Thu, May 19, 2011 at 10:37 AM, Raymond Camden rcam...@gmail.com wrote: Actually the chart editor is old. Go to your cf root, charting, and run webcharts.bat (or the Unix flavor). It's a graphical editor that

Re: scoping

2011-05-19 Thread Cameron Childress
On Wed, May 18, 2011 at 12:51 PM, Eric Roberts ow...@threeravensconsulting.com wrote: We had a discussion at work as to whether or not we should scope local vars with the variables. scope since that is implied in a cfset.  One camp says it is not needed because of the implicit scoping when

Re: Recordcount not working????

2011-05-19 Thread Phillip Vector
Thanks.. I will check with our DB admin and see. Turns out, I didn't have permission for the view. I since got it and he mentioned that the view has no records at all anyway and to just put in a cfset OpenedUpSeats.recordcount = 0 to move past it. So yeah. Still a mystery, but we are moving

Re: Recordcount not working????

2011-05-19 Thread Wil Genovese
This sort of makes sense. The DB rejected the request, somewhere in the process the JDBC driver returned nothing or NULL or something not exactly expected and closed the request. CF not getting a result set (not even an empty results set) didn't set the query result set variable. Thus you

Re: cgi.host_name Security Exploit

2011-05-19 Thread Raymond Camden
What about an ecommerce system that hits the test ecom system when in dev mode? If I knew your code did that, or suspected, I'd try it and use one of the many common test CC numbers, like 4111. Actually, I've seen that number work on sites even in 'production' mode as well. On Sat,

RE: Recordcount not working????

2011-05-19 Thread Mark A. Kruger
You are getting an error somewhere else...open up coursecatalog.cfm and step through it... something is happening before this query. -Mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Phillip Vector

RE: ColdFusion and AJAX choices

2011-05-19 Thread Rick Faircloth
There are things my code do not check however: - a tornado hit my server; - the end user has an attack of scarlet fever... Need some code for that? :o) -Original Message- From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans

Re: cfhttp response with non-english characters gets cut off

2011-05-19 Thread Andrei Kondrashev
Andrei, one of my coworkers had much the same thought. The headers are reporting utf-8, and I've created a test document containing an omega character I've saved as plain text utf-8 encoded and it still truncates. Just created a text file that contains the entire Greek alphabet plus crazy

Re: Recordcount not working????

2011-05-19 Thread Pete Jordan
Wil Genovese wrote: This sort of makes sense. The DB rejected the request, somewhere in the process the JDBC driver returned nothing or NULL or something not exactly expected and closed the request. CF not getting a result set (not even an empty results set) didn't set the query result

Re: ColdFusion and AJAX choices

2011-05-19 Thread Dave Watts
And btw - why do you show up nameles He shows up nameless for Gmail users because of a character encoding mismatch between Google's mail servers and his mail server. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned

Problem with enctype=multipart/form-data and some browsers

2011-05-19 Thread Al Musella, DPM
Hi I have an urgent problem.. I created a website for a fundraising event that is going on all month.. one function is to create fundraising teams, where people can create a team and upload a photo. I wrote the code, tested it on the current version of chrome and firefox and it worked

Re: ColdFusion and AJAX choices

2011-05-19 Thread Claude Schnéegans
He shows up nameless for Gmail users because of a character encoding mismatch between Google's mail servers and his mail server. Actually no, My name is correctly set up in Thunderbird and all messages replied to me show my name correctly. Only those forwarded by CF_talk are messed up. The

RE: scoping

2011-05-19 Thread Eric Roberts
Does it always search of the variable is not scoped (when calling it) even if you do a cfset at the top of the page? Or does it automagically know it is in the Variables scope? Eric -Original Message- From: Eric Cobb [mailto:cft...@ecartech.com] Sent: Thursday, May 19, 2011 07:47 AM

Re: CFchart / currency

2011-05-19 Thread Raymond Camden
http://www.coldfusionjedi.com/index.cfm/2011/5/19/cfchart-and-nonAmerican-locales Blog post. With pictures. It's pure winning. On Thu, May 19, 2011 at 10:37 AM, Raymond Camden rcam...@gmail.com wrote: I just checked - CF7 added the ability to use styles. You should be all set. On Thu, May

RE: CFchart / currency

2011-05-19 Thread Jenny Gavin-Wear
Awesome, thanks Ray :) -Original Message- From: Raymond Camden [mailto:rcam...@gmail.com] Sent: 19 May 2011 19:04 To: cf-talk Subject: Re: CFchart / currency http://www.coldfusionjedi.com/index.cfm/2011/5/19/cfchart-and-nonA merican-locales Blog post. With pictures. It's pure

Re: scoping

2011-05-19 Thread Steve 'Cutter' Blades
It always searches if the variable unscoped. Steve 'Cutter' Blades Adobe Community Professional Adobe Certified Expert Advanced Macromedia ColdFusion MX 7 Developer http://blog.cutterscrossing.com Co-Author Learning Ext JS 3.2 Packt Publishing 2010

RE: CFchart / currency

2011-05-19 Thread Jenny Gavin-Wear
Hi Ray, Not quite there ... I had a look at the wecharts stuff in charting, way over anything I will ever need or want to learn just to get a pound sign. The chart editor I see in DW doesn't have the options to turn off locale or set lang and country. But I used the following laboriously

Scripting website or host header will IIS and CF

2011-05-19 Thread Steve Reich
It seems simple enough. My user inputs a web address he wants configured on my server and I programatically create it in IIS through my CF application. And then I may want to create subdomains though host headers on the same IP. Using CF9. Surely this has been done hundreds of times... anyone got

Re: CFchart / currency

2011-05-19 Thread Raymond Camden
The chart editor I see in DW doesn't have the options to turn off locale or set lang and country.  But I used the following laboriously copied and pasted from your blog entry. That's a cfchart tag editior. It can't/shouldn't contain what you see in the Java based program since - well it's

Re: Re: scoping

2011-05-19 Thread Judah McAuley
Hmm.. I sort of get what you are saying, Cutter, but then it seems like Variables is a scope that can only exist within another scope. If there was a variables.myvars struct in session, I would say that the myvars struct really lives in Session. Yes, it also technically lives inside another

Re: cgi.host_name Security Exploit

2011-05-19 Thread Sean Corfield
Agreed. Using CGI.HOST_NAME for dev/test/live switching opens you up to all sorts of abuse. Here's what I switch on: createObject( 'java', 'java.net.InetAddress' ).getLocalHost().getHostName() I have a configuration file that maps from all the known (partial) hostname matches to different

Re: ColdFusion and AJAX choices

2011-05-19 Thread Andrei Kondrashev
Didn't really wanted to start a discussion. Just expressed my private opinion applied to this particular situation, not really trying to make any general claims. 1) It's 90k minified Only 90? Great! 2) Those 10 lines will inevitably be 1 line of jQuery No, my custom line will be 11th one.

RE: CFchart / currency

2011-05-19 Thread Jenny Gavin-Wear
From posting on another forum: There are 2 ways to reference the web chart XML in the cfchart tag. Firstly, you can copy the XML file to the chart styles folder which will be somethinf like C:\CFusionMX\charting\styles, when using this method you do not need the .xml extension:- But I find this

Re: ColdFusion and AJAX choices

2011-05-19 Thread Mark Drew
The other side of the coin is that since a lot of people use JQuery, and a lot of people get it from the shared JQuery CDN, users are bound to already have it cached and therefore there will be little or no load time. What terrible performance of JQuery? I guess it depends, but if you have

Re: CFchart / currency

2011-05-19 Thread Raymond Camden
Ah yes - my chart was for a bar chart. What's your chart type? Isee it's a pie. Hold on. Going to my coldfusion dir... Going to charting folder... Double clicking webcharts.bat On the welcome screen, I picked a Pie chart example. Hmm. So you want a pound sign on the mouse overs for the pie

Re: Problem with enctype=multipart/form-data and some browsers

2011-05-19 Thread Raymond Camden
When you tested with Firebug, did you see anything? How about any other network tool, like Charles? On Thu, May 19, 2011 at 12:13 PM, Al Musella, DPM muse...@virtualtrials.com wrote: Hi  I have an urgent problem..   I created a website for a fundraising event that is going on all month..

Re: scoping

2011-05-19 Thread Steve 'Cutter' Blades
I wouldn't say that the Variables scope is intended to live inside another scope, I think that it's just that it can, in the context of a persistent object. As noted by Ray, in the comments of my first blog post, the Variables scope was kind of an afterthought, giving a way to access those

Re: Re: scoping

2011-05-19 Thread Dave Watts
Hmm.. I sort of get what you are saying, Cutter, but then it seems like Variables is a scope that can only exist within another scope. If there was a variables.myvars struct in session, I would say that the myvars struct really lives in Session. Yes, it also technically lives inside another

Re: ColdFusion and AJAX choices

2011-05-19 Thread Steve Milburn
So you typically generate the HTML for an ajax call on the server side and send that back to the browser? From a person who is concerned about that extra second and the size of the jQuery library, this approach seems a little contradictory as those ajax responses have to be bloated due to all

Re: scoping

2011-05-19 Thread Dave Watts
As noted by Ray, in the comments of my first blog post, the Variables scope was kind of an afterthought, giving a way to access those variables that weren't explicitly in another scope (form, url, session, application, request, client). With most of the core of ColdFusion created prior to

Re: ColdFusion and AJAX choices

2011-05-19 Thread Michael Grant
I've been developing my own functions far before jQuery existed and even the term AJAX was invented. Most of us have. Big deal. I used to write all my own stuff too. Then I wised up. Why reinvent the wheel over and over with code that is almost certain to be of lower quality than the jQuery

Re: ColdFusion and AJAX choices

2011-05-19 Thread Michael Grant
My definition of library is something that contains millions of books, but I can come there and borrow a SINGLE book I need, rather than carry back home all millions books. Well, at less than 100k your library/millions of books analogy is fundamentally flawed. It's probably more accurate to

RE: AntiSpammy vs http://www.cflib.org/udf.cfm/safetext for preventing XSS

2011-05-19 Thread Andrew Scott
Anti Samy is brilliant, the way this is used is as a HTML string cleaner. What that means is that you define which configuration type you want, there are predefined configs like Slashdot to name but one. These configs are fully configurable to the HTML Elements. SlashDot config is what SlashDot

RE: ColdFusion and AJAX choices

2011-05-19 Thread Andrew Scott
Andrei, I want to point your attention to your comment. I am calling MY Web-site, I know EXACTLY what to expect As a veteran Software Analyst my first reaction is WTF!!! You might be calling your server but you have absolutely no control over the users machine, nor do you have any control over

Re: Problem with enctype=multipart/form-data and some browsers

2011-05-19 Thread Al Musella, DPM
I am getting strange results.. In firebug, it says the status is 200 but there were no bytes received. and a view source shows absolutely nothing. I turned on cf debuggin - to at least get debug info - and still nothing at all. . but there is a message about the cache.. perhaps my computer

Re: scoping

2011-05-19 Thread Matt Robertson
On Thu, May 19, 2011 at 6:55 AM, wrote: Actually, there is only ambiguity for those who do not know the language they are using and its rules by default. The penalty for being smug about your mastery of the universe is - sooner or later - extremely painful. Put simply, unscoped vars can

Re: Problem with enctype=multipart/form-data and some browsers

2011-05-19 Thread Priya K
Sometimes caching creates all kinds of problems especially using latest version of IE.Try to clear out cache and even that didn't work try using fiddler clear out cache. Fiddler is a web debugger and logs the traffic. See if you can find anything. On Thu, May 19, 2011 at 8:21 PM, Al Musella, DPM

Re: CFThread Memory Issues sending emails

2011-05-19 Thread Maureen
I've found that all sends of email to large lists has to be done in batches. CFMail doesn't really handle massive lists very well. On Thu, May 19, 2011 at 4:38 AM, Firewall firew...@cc.uk.com wrote: The server seems to have no problems sending about 10-15k emails using this process but

Re: scoping

2011-05-19 Thread Steve 'Cutter' Blades
Dave, Thanks for chiming in on this, your insight is always helpful. Most of my thoughts there are my own theories, which must be proven (or debunked) to be otherwise :) Your deep knowledge of the history of CF helps to fill in the gaps of time and memory, and keep perspective (for the

RE: AntiSpammy vs http://www.cflib.org/udf.cfm/safetext for preventing XSS

2011-05-19 Thread Brook Davies
Hi Andrew, But consider a CMS or 'landing page creator' that allows users to create their own landing pages - and insert their own google analytics code. So I would need to be able to tell antiSamy that I want to allow a specific script... A google search didn't turn up anything. I guess I

  1   2   >