Re: Problem with IExplorer's history

2013-09-26 Thread Claude Schnéegans
Modern browsers will remember form details and auto fill them if you go back to same page especially if you didn't submit the form. Do you have an example? Well, if they do so, it's all right, but if they do not, they should not allow to resubmit a page with method GET when it was first

Retrieving line number

2013-10-08 Thread Claude Schnéegans
Hi, Since error messages include the number of the line where the error occured, I suppose this line number is stored somewhere in the compiled code. Does any one knows how to get this number ? I mean anywhere in the code even when no error occured.

Re: Retrieving line number

2013-10-08 Thread Claude Schnéegans
you can get to it through getPageContext(). Exactly what I was looking for. Thanks a lot. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Check an email domain

2013-10-10 Thread Claude Schnéegans
Hi, I just lost about 2 hours digging in my mail server logs to find why a user did not get his message sent by CF to finally find out the guy entered a typo in his domain name... So, I know that verifying that an email address exists is utopic, but verifying that at least some mail server

Re: Check an email domain

2013-10-10 Thread Claude Schnéegans
You need to use nslookup Yes, this is what I end up doing. Here is a function that returns the name of the mail server id there is on, or an empty string if there is not. (tested on Windows) CFFUNCTION NAME=nslookup CFARGUMENT NAME=domain REQUIRED=yes TYPE=string CFEXECUTE

Re: Check an email domain

2013-10-10 Thread Claude Schnéegans
Thanks, but the notice All our CFX tags and tools are for the Windows platform only. makes me think this tag is written in C, not Java. I am hesitating installing new tags on my server. Although I have a 64bit server, I had to install the 32 bit version of CF because of some heritage CFXs, and

Re: Check an email domain

2013-10-10 Thread Claude Schnéegans
Unfortunately, there isn't really a reliable way to check if a user exists other than sending an email to that address and getting a response. Right, and I even add and getting a response... from a user who knows that he has a spam folder somewhere and who knows how to look in it. But I'm not

Re: Check an email domain

2013-10-10 Thread Claude Schnéegans
I use it to avoid duff mail addresses producing spam triggers Do you know that checking if a user exists without actually sending a message can also tag you as a potential spammer? ~| Order the Adobe Coldfusion Anthology

Re: Check an email domain

2013-10-15 Thread Claude Schnéegans
To replace CFX_ValidEmail, I'd look at performing an MX lookup on the domain Thanks for your feedback. This is what I have implemented in my address validation function used by my forms. and then if you need to do an SMTP check, you'd have to implement a short SMTP client that pretends to be

Re: Syntax Problem

2013-10-17 Thread Claude Schnéegans
It seem like a hack to get around something that should work. Don't forget that syntax is checked at compile time and if at execution. See this code for instance: CFSET test=yes CFIF test TABLE CFSET test=no /CFIF table rows go here CFIF test /TABLE /CFIF This would

Re: passing data to nested custom tags

2013-10-18 Thread Claude Schnéegans
So lets say that I passed a query into the attributes scope of the parent, You can also define your query in the request scope and have it availiable at all levels. ~| Order the Adobe Coldfusion Anthology now!

Re: passing data to nested custom tags

2013-10-18 Thread Claude Schnéegans
I wouldn't do that. Seems a bit improper to me. Well, IMO it depends on how you need to share data between levels of the tag - If you need to share any level data between all levels, then getBaseTagData is the only solution - If you need to share the same data between all levels, the request.

Re: passing data to nested custom tags

2013-10-18 Thread Claude Schnéegans
I was just being anal about it. That's our job, we are analysts aren't we? ;-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Problem with data formating in CFINSERT

2013-11-03 Thread Claude Schnéegans
Hi, Weird problem this morning. I have a CFINSERT which fails in an Access database with an error [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. First, there is no criteria since it's only an insert.

Re: Problem with data formatting in CFINSERT

2013-11-04 Thread Claude Schnéegans
but if I remember correctly the currency data type only accepts 2 decimal places. I know, and my form only supplies 2 decimal places. Java adds all these decimals, due to floating approximation errors. And it does not explain whay there is an error with 57.49 and not with 57.50. Anyway, I

Re: Problem with data formatting in CFINSERT

2013-11-05 Thread Claude Schnéegans
I have robot updaters and inserters too (made all the more robotic with the help of cfdbinfo figuring out the field types), This is what I do, but using my own CFX_ODBCinfo I developped years before cfdbinfo was available, and I'm still using it because cfdbinfo doesn't work for Access

Re: Problem with data formatting in CFINSERT

2013-11-05 Thread Claude Schnéegans
it could just as easy be said about frameworks Let's say it then ;-) The only framework I use is the one I've developped myself. When a proble arises, I can look into it, understand it, and correct it easily. ~| Order the

Re: Problem with data formatting in CFINSERT

2013-11-05 Thread Claude Schnéegans
FYI you CAN get Access running on 08r2 with CF 64bit. It just takes some work. Exact, the trick is to define the ODBC database first, then link it to CF with the administrator. Once it is done, it works perfectly. ~| Order

Re: CMS Vs Framework

2013-12-05 Thread Claude Schnéegans
Why would I choose a CF Framework over a CF CMS system? I'm affraid you are comparing apples and oranges. You would use a CF framework to develop a CMS system but you wouldn't have to develop anything if you use a CMS system.

Re: custom error handler

2013-12-11 Thread Claude Schnéegans
works fine for missing variables however is there a way to identify context validation errors such as missing /cfif etc. missig variables are execution time errors, but missing /CFIF are syntax errors. CFERROR can trap execution errors, but not syntax errors since they happen during

Re: Hosting... Again

2014-01-13 Thread Claude Schnéegans
I've got a lot of large CF sites I have to move because my host is not up to what we've grown to be. Have you considered having your own dedicated server ? I certainly do not have as large CF sites as you have, but except if you run all these site for free, a dedicated server is worth the

Re: Hosting... Again

2014-01-13 Thread Claude Schnéegans
there is no way to isolate sites from each other on a shared hosting setup. For instance, from time to time I've encountered a situation when I have to stop and restart the CF service, ie: dead lock, local file kept open after an error, etc. You can'nt do this on a shared server.

Problem with Solr and CF 9

2014-01-17 Thread Claude Schnéegans
Hi, I have CF 9.0.1 installed, and I'm not able to define a Solr collection. I get this error in the Administrator: An error occurred while creating the collection: org.apache.solr.common.SolrException. Check the Solr logs for more detail. And in the Solr log, I get this: JNDI not configured

Re: Problem with Solr and CF 9

2014-01-17 Thread Claude Schnéegans
might be a problem with the port being used, do you have anything else running, other CF versions, other instances or anything like that ? Nope. Nothing like that. I noticed in solrConfig.xml something like maxMergeDocs2147483647/maxMergeDocs I thought It could be a too big number to read for a

Re: CF9 vs CF10 scheduled tasks

2014-02-23 Thread Claude Schnéegans
Is it possible to run scheduled tasks in CF10 Standard Edition? It sure is. However, there is now a restriction on the extension for the log file. It can only be .txt or .log, for so called secirity reason (?). ~| Order the

Re: CF9 vs CF10 scheduled tasks

2014-02-24 Thread Claude Schnéegans
considering all the (well documented) problems it caused previously. Yes, I remember now. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion

Re: Honest question about cfform

2014-03-04 Thread Claude Schnéegans
Why are people so vehemently opposed so to CFForm? Mainly for historical reason. I don't know how is CFForm nowadays, but when it first appeared in CF, it was really week, missing a lot of essential features, and every message coming out of it was only in English, making it not an option for

Re: Does an iframe return anything

2014-03-08 Thread Claude Schnéegans
You cam run the same checls on an oframe as You can om ypur ma8n dic Sich as document.loaded etc Oh boy ! Did you spilled your coffee on your keyboard this morning ? ~| Order the Adobe Coldfusion Anthology now!

Re: Does an iframe return anything

2014-03-08 Thread Claude Schnéegans
lol, I was on my phone, ... and they call that an « intelligent telephone » ? ;-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: The long tail of ColdFusion fail

2014-03-17 Thread Claude Schnéegans
I think this hack is known since a long time ago. I remember having installed my CF administrator in a safe place at least 2 or 3 years ago. The adobe document which describes what to do is dated Mai 2010, almost 4 years old.

Re: The long tail of ColdFusion fail

2014-03-17 Thread Claude Schnéegans
and then when their site gets owned, CF gets the blame. On another hand, why Adobe hasn't change the way CF is installed if its not safe? ~| Order the Adobe Coldfusion Anthology now!

Re: The long tail of ColdFusion fail

2014-03-17 Thread Claude Schnéegans
I love developing in CF as I can build complex apps in 1/2 the time as it takes in PHP. And I will add the PHP is the uglyest language I've ever seen in about a 40 years career! ~| Order the Adobe Coldfusion Anthology

Re: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
so some people think it is not real code ... and these people are real morons ;-) Being tag oriented, compatible with HTML, makes CF the most developper friendly language ever. ~| Order the Adobe Coldfusion Anthology now!

Re: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
You don't find the CC installer to be a heck of a lot simpler? Excuse my ignorance, but what is CC? ~| Order the Adobe Coldfusion Anthology now!

Re: CFML tags was: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
Give it's unlike any other language one might already know, Come on, can you imagine a CF developper who wouldn't know at least HTML? how is it being tag-oriented a dev-friendly thing? Just because the code and the HTML it is intended to produced are integrated within the same syntax. That

Re: CFML tags was: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
But the bulk of your *code* should be separate from your views. Well, if you really like masochistic constraints like MVC just to make things more accademic, you can, but you will still use CF to code the views and the data, and working with the same language in the SGML family simply makes

Re: CFML tags was: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
I completely agree with you, on all points. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: CFML tags was: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
If the Railo Company would do some marketing If they would above all produce some documentation! I wanted to give it a try a couple of years ago, but the documentation was just an arrid desert, so I gave up. Is it any better now ?

Allow Extra Attributes in AttributeCollection

2014-03-18 Thread Claude Schnéegans
Hi, In the administrator, there is a check bor that makes possible to Specify whether ColdFusion tags can pass non-standard attributes in the attributecollection structure. But apparently it does not make posssible to pass non-standard attributes in an ordinary tag in the code. For instance,

Re: Allow Extra Attributes in AttributeCollection

2014-03-18 Thread Claude Schnéegans
No. Too bad :-( ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358038

Re: CFML tags was: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
The docs about functions and tags are the same as the CF docs I could work using the CF docs, but if there is the slightest difference, plus or minus, I need to be easily aware of it. It is so important in my mind that I finaly prefered to buy the CF 9 server.

Re: Allow Extra Attributes in AttributeCollection

2014-03-18 Thread Claude Schnéegans
However, this will work: CFPARAM NAME=attributes.MyAttribute TYPE=string --- REQUIRED=no --- Ugly, but it works. ~| Order the Adobe Coldfusion Anthology now!

Re: CFML tags was: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
Better than nothing, but still not very developer friendly. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: Allow Extra Attributes in AttributeCollection

2014-03-18 Thread Claude Schnéegans
like cfcomponent and cffunction (cfargument too I think). cfmodule as well. Yes, but not cfparam unfortunately. ~| Order the Adobe Coldfusion Anthology now!

Re: CFML tags was: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
I'd *much* rather have CF complain than silently ignore a bad argument. I must admit I agree with you ;-) ~| Order the Adobe Coldfusion Anthology now!

Re: CFML tags was: The long tail of ColdFusion fail

2014-03-18 Thread Claude Schnéegans
Www.railodocs.org Much better than the last time I tried indeed. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: Patch/update 9.0 help

2014-03-21 Thread Claude Schnéegans
9.0.2 is not and update it is a separate version without verity which is no longer supported. Exact, and since I've never been able to get Solr to work under 9.0.1, no chance I ugrade to 9.0.2 ! ~| Order the Adobe Coldfusion

Re: The long tail of ColdFusion fail

2014-03-26 Thread Claude Schnéegans
And why is it such a pain in the rear to keep CF up to date/patched? What I mean is that Adobe recommands that CFIDE should be moved to a safer place, but, after several versions, CFIDE is still installed the same way. ~|

Re: The long tail of ColdFusion fail

2014-03-26 Thread Claude Schnéegans
It's up to you to understand how web servers and web applications work, and set it up My point is that I'm pretty sure everything I've done by hand to move CFIDE/administrator and declare a virtual directory to some special web site could be done by the installer.

Re: The long tail of ColdFusion fail

2014-03-26 Thread Claude Schnéegans
It's daft to facilitate the [potentially dangerous thing] And I don't know if everyone knows why is was insecure to have the Administrator in a conventional place. I got my server hacked like many of us, and I checked in the logs how the guy had access to the administrator. I discovered that

Re: The long tail of ColdFusion fail

2014-03-26 Thread Claude Schnéegans
ignore a public facing server, you are asking for trouble We all have public facing applications, including banks, CIA, FBI, etc, simply protected by a password, but we usually do not have undocumented backdoors ;-) If the CF administrator dindn't have this undocumented function allowing to

Re: The long tail of ColdFusion fail

2014-03-26 Thread Claude Schnéegans
I like this analogy... You buy a new Ford Fusion. Ford tells you about how closing the doors and locking it is a security feature. Then, you go park in a high crime area with the car running, keys in the ignition and the doors wide open. Except that in your analogy, it is obvious that one

Re: The long tail of ColdFusion fail

2014-03-27 Thread Claude Schnéegans
Development servers don't need a secure setup if they're not exposed to untrusted networks. Obviously we are was not talking about development servers in this thread ;-) ~| Order the Adobe Coldfusion Anthology now!

Re: The long tail of ColdFusion fail

2014-03-28 Thread Claude Schnéegans
Application servers are inherently complex, and it takes a certain level of expertise to set them up. There's no getting around that. You're right. However, there are two approches that can be taken in installation procedures. One year ago I had to move from a W2003 to a W2008 server and to a

Re: The long tail of ColdFusion fail

2014-03-28 Thread Claude Schnéegans
1. out of the box install, not secure, but your site works just fine.. This is the Adobe's approach 2. out of the box, locked down and secure, but site may break, so you have And this is Microsoft's You're quite right.

Re: The long tail of ColdFusion fail

2014-03-28 Thread Claude Schnéegans
Imagine a family buys a car, and by default the airbags and anti-lock breaks are not enabled. Indeed, they are in the trunk, under the spare tire, but it's up to you to go to the manufacturer's site and download instructions to install them ;-)

Re: The long tail of ColdFusion fail

2014-03-28 Thread Claude Schnéegans
but for CF to have a backdoor entry point as standard in the install is plainly stupid and it has not helped sell CF as an option. This is exactly the point. ~| Order the Adobe Coldfusion Anthology now!

Re: The long tail of ColdFusion fail

2014-03-28 Thread Claude Schnéegans
It's Microsoft's approach ... now. But it took them a long time to get there. You're probably right. The point here is that it is taking even a longer time to Adobe. ~| Order the Adobe Coldfusion Anthology now!

MSIE 11 HTTP_USER_AGENT

2014-03-30 Thread Claude Schnéegans
Hi, I discoverd today that MSIE 11 is putting Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko Until now, i thouht HTTP_USER_AGENT could be used in cfml to identify the browser, but apparently this does not work any more.

Re: MSIE 11 HTTP_USER_AGENT

2014-03-30 Thread Claude Schnéegans
According to this page: http://msdn.microsoft.com/en-us/library/ie/hh869301(v=vs.85).aspx The like Gecko token has been added (for consistency with other browsers). C'mon, how can they talk about consistency with other browsers about a string which is intended to be a signature for all browser?

Re: MSIE 11 HTTP_USER_AGENT

2014-03-31 Thread Claude Schnéegans
Problem is that signature can be faked. Of course, I don't use it to maintain security on my sites, but to insure that pages are displayed correctly. If a visitor using Firefox fakes his signature to look like MSIE, it's his problem. Now if MSIE looks pretends to be Mozilla, it's a problem

Re: Spam management for forms handling

2014-04-17 Thread Claude Schnéegans
+1 for the honeypot. + another one. You can also use an onclick on the submit button to fill a hidden field with some key text also hidden in your javascript. If the field is not set properly, dont process. ~| Order the

Re: Spam management for forms handling

2014-04-17 Thread Claude Schnéegans
Image captchas are undetectable by screen reading packages Exact, and anyway, do spamers really care about character recognition? Do these characters really have to look su ugly? These captchas really look ridiculous. ~|

Re: Spam management for forms handling

2014-04-20 Thread Claude Schnéegans
Thought this was interesting in the context of the thread. I'm pretty sure Google has the resources to develop such algorithms, would it be juste for the fun of it, but spammers in general have neither the ressources neither the time and probably no interest at all to develop character

Re: Spam management for forms handling

2014-04-23 Thread Claude Schnéegans
One alternative would be to create a random number, say between 0 and 9, then add 20 to it and store the result in a session variable. Personnaly, I consider such methods that require the visitor to do something quite unfriendly, especially for blind people, even insulting. It is much

Re: ColdFusion 10 does not allow Access datasource

2014-04-28 Thread Claude Schnéegans
This also means you will have hosting problems, as Windows is 64bit only since Server 2008, so you wont be able to setup a CF DSN unless the host is willing to also do this workaround for you or unless they are still running Windows 2003. Actually, I do have Access databases on my Window Web

Re: ColdFusion 10 does not allow Access datasource

2014-04-28 Thread Claude Schnéegans
then you must have set them up manually using the workaround. Yes, I think so, it was a long time ago. ~| Order the Adobe Coldfusion Anthology now!

Re: ColdFusion 10 does not allow Access datasource

2014-04-29 Thread Claude Schnéegans
Here is what solved it for me: I'm glad you could work it out. The more we go and the more we are having issues harder and harder to solve :-( ~| Order the Adobe Coldfusion Anthology now!

Re: More CFBuilder 3 frustration

2014-04-30 Thread Claude Schnéegans
Does anyone actually use CF Builder for multiple projects? Nothing beats good old CF Studio ! ;-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion

Re: Run or spawn a desktop program

2014-05-02 Thread Claude Schnéegans
but how to do this on the users desktop? If it was possible, any one could reformat you disk from a web page, can you imagine? ;-) I doubt Internet would be so much popular ;-) ~| Order the Adobe Coldfusion Anthology now!

Re: Run or spawn a desktop program

2014-05-02 Thread Claude Schnéegans
but I suppose we could offer to build it for them into the CF app we are possibly installing. That's your best option, provided all the data is on the server, not on client side. ~| Order the Adobe Coldfusion Anthology now!

Re: Dynamic Query Name in Custom Tag?

2014-05-27 Thread Claude Schnéegans
I'm attempting to create a dynamic query name inside a Custom Tag. If you create anything in the scope variables, from inside a custom tag, it will be created in the custom tag scope only. You must use the caller scope, ie: cfquery name=caller.ConvertedFields_#attributes.QueryName#

Re: Dynamic Query Name in Custom Tag?

2014-05-27 Thread Claude Schnéegans
Sorry, I was too fast reading your message. If you cfdump var=ConvertedFields_#attributes.QueryName#, I suppose the CFDUMP is still inside the custom tag, so the query should be defined. But if it says Variable CONVERTEDFIELDS_ is undefined it looks like attributes.QueryName is empty. Are you

Re: CF 11

2014-06-27 Thread Claude Schnéegans
CF 10 introduces a updater in the CFAdmin, and an auto update function God ! ... And it works? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion

Re: Locks on Access files in CF 9

2014-07-03 Thread Claude Schnéegans
But transfer the data to an actual database I was expecting this clever answer! ;-) Access has a bad reputation in a LAN multiuser APPLICATION. But it is only when the application is also an Access application. All requests cause many accesses to the disk, both for code and for data, which

Re: Locks on Access files in CF 9

2014-07-04 Thread Claude Schnéegans
there are potentially many connections, like in any database system. so the fact that it's only one user is irrelevant - It is, because the principal argument of Access detractor is that it is not good in a multiuser environment. you still have concurrency issues. like with any database

Re: Regex help maybe

2014-07-21 Thread Claude Schnéegans
I need one to test true for: I doubt you can do this with only one test, but using 3 tests is easy: 10 to 20 Characters in length 3 numeric characters in any order 1 special character from basic list ~!@#$%^*()_+ This should do it: CFSET stringOK = (len(form.text) GTE 20 AND len(form.text)

Re: Having trouble with cfcI have removed all references to site_theartoflovingcatsanddogs_com and deleted the template cache. No luck. Any help?

2014-07-22 Thread Claude Schnéegans
maybe he's a bot? If he is, sure he didn't programed it himself. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: Invalid Data for Parameter but which one?

2014-07-29 Thread Claude Schnéegans
More than likely, you are trying to send a true/false value to a char(1) field. ... or even more likely to a boolean field. ~| Order the Adobe Coldfusion Anthology now!

Re: Invalid Data for Parameter but which one?

2014-07-29 Thread Claude Schnéegans
CF only transmit what the database driver reports. Many drivers will report an error, but not which field caused the error, which is quite frustrating. Sometimes, one can have more details by copying the SQL statement and execute it in the database itself.

Re: Query columns shifting

2014-07-29 Thread Claude Schnéegans
Got at bit of a weird thing going on in my code... Pretty hard to tell without seing that code... If you transfer the query result into a list and if there is one empty column, you might shift all the values after the empty valu indeed.

Handling 404 errors by Coldfusion

2014-07-30 Thread Claude Schnéegans
Hi, I'm havin someting weird hapening on mt CF 9 / Windows Web Server 2008 / IIS 7.5 My site is returning an error 404 status when some requested page does'nt exists. For instance http://myDomain.com/index.cfm?p=pageid=21 return normaly page 21 which exists, but

Re: Handling 404 errors by Coldfusion

2014-07-30 Thread Claude Schnéegans
IIS Manager [Site] Error Pages 404 - Uncheck “Insert content from static file in to the error response” and/or reconfigure as fits your need. Ok, I've seen that, but the problem is that I still have to give a URL to be executed or Respond with 302 redirect. In fact I just need IIS to do

Re: Sort by file extension in CFDIRECTORY

2014-07-30 Thread Claude Schnéegans
I finally solved the problem this way: 1. if the page nb. does not exists: cfheader statuscode=404 statustext=Page not found CFABORT 2. in IIS I defined a URL to be called in case of error 404, this page displays a friendly message, then it also has to declare cfheader statuscode=404

Re: Sort by file extension in CFDIRECTORY

2014-07-30 Thread Claude Schnéegans
I think you replied to the wrong thread there Ooops... sorry ;-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: Emails MIA

2014-08-12 Thread Claude Schnéegans
Multi-recipient email will not generate a bounce or undeliverable message in CF if the CF spooler can deliver to at least one recipient. I think the failto address is not used by CF to bounce messages, only to provide a Return-Path: address in the message header, and the bounce is generated

OT, but stil...

2014-09-02 Thread Claude Schnéegans
This is not really CF related, but since this list is mainly read by Web developers, I thought it could be interesting anyway. First, let me say that my system logs CF executions error in a database with many details that help a lot to clean my code. However it does not trap Javascript errors

Re: OT, but stil...

2014-09-03 Thread Claude Schnéegans
against your will as it were. Indeed, so I'm considering adding some tests in my bad bot detector based on some strings seen in javascript errors. May be also there is a way to get the list of all scripts in a page, I'll dig into that. I think your idea is excellent though - a way to trap

Re: OT, but stil...

2014-09-03 Thread Claude Schnéegans
so it becomes a part of the client side page request against your will as it were. Yes, but this rises a question: If my window.onerror can get events from some plugin code, this means that this code is embeded and is treated as if it belonged to my window. Thus, it has access to everything in

Re: OT, but stil...

2014-09-03 Thread Claude Schnéegans
They don't call it Malware for nothing Ok, but if a malware does mal to a moron client side, in a pinch, this is not our problem, but if it can get pass words so easily, it can also do mal to any server any time. I just got one tonite that allows itself to define cookies under MY domain! If

Re: OT, but stil...

2014-09-04 Thread Claude Schnéegans
close up shop and move to a cabin in Montana That's the best suggestion I got on that matter ;-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion

Re: OT, but stil...

2014-09-04 Thread Claude Schnéegans
There's nothing magically sacrosanct in HTTP or HTML to prevent this sort of thing. You're right, but as a developper, I have to modify my code every day, because every day comes up a new version in which something has been cancelled or disabled, like accessing the clipboard by Javascript, or

Re: OT, but stil...

2014-09-04 Thread Claude Schnéegans
If you do find a way to detect all scripts running on a page I would be very interested in seeing how it works. At least you could then inform the user that there are unwanted processes running in the browser. I'm working on that, may be not for all visitors, but at least for administrators

Re: CF10 creating extra CFID/CFTOKEN cookies at the domain level

2014-09-11 Thread Claude Schnéegans
I notice that your site is reachable both through www.whitevalegolfclub.com and whitevalegolfclub.com. I had the same problem with one of my sites. It looks like two different cookies are created, one for www.whitevalegolfclub.com and the otheone for whitevalegolfclub.com and this this goofs

How can I force clients to refresh JavaScript files?

2014-09-12 Thread Claude Schnéegans
I wonder why browsers caching Javascript and CSS files at least do not check if the date of the file on the server is still the same as the one in their cache. Since I implemented a Javascript errors log, I catch many errors showing that the old file in the cache was used days after the error

Re: How can I force clients to refresh JavaScript files?

2014-09-12 Thread Claude Schnéegans
Try CF Static (http://cfstatic.riaforge.org/), it appends a unique string to the end of the file requests, Ok, good technique. But instead of downloading 262 files, I developped this simple CF_script custom tag: CFSETTING ENABLECFOUTPUTONLY=Yes CFSET scriptFile = expandPath(attributes.src)

Re: How can I force clients to refresh JavaScript files?

2014-09-12 Thread Claude Schnéegans
The easiest way is to simply expire the page using cfheader. The problem with this technique is that you will force a reload even if the file was not changed. ~| Order the Adobe Coldfusion Anthology now!

Getting memory amount used

2014-10-01 Thread Claude Schnéegans
Hi, Would any one know some trick to get the amount of memory occupied by a structure like query, etc.? Thanks ~| Order the Adobe Coldfusion Anthology now!

Why this regex takes so long?

2014-10-02 Thread Claude Schnéegans
Hi, I'm having a problem with a scheduled task that chokes my server. Its role is to analyse bounced messages. I have been able to identify where it blocks, when analysing a line like this one with the regex below: Message-id: 26823262.22036.1411993378646.JavaMail.NS4007563$@127.0.0.1 CFSET

Re: Getting memory amount used

2014-10-02 Thread Claude Schnéegans
Might be able to get this using Java. Thanks, I'll dig into this. I thought that my server chokes because of lack of memory, but I finally found that it was because of an infinite time taken in a regExp analysis. I just dropped a post about this.

<    1   2   3   4   5   6   >