View (HTML) code should be separate to Control and Model code (CFML).
Absolutely. I never understood the need for a view module in editors.
First, it is so easy to have IE, Mozilla or both open on the page, save
the page form the editor
and just refresh it form the browser.
Secondly, what's
A base program, such as CFEclipse
But CFEclipse is not a base program, it is a plugin for Eclipse.
This is one of the reasons I don't like it: Eclipse is much more
general, much too general, it aims at development
of any application, possibly in any language.
The other thing I don't like is its
Eclipse's 'view module' uses the same rendering engine as FireFox
Then why not using Firefox directly?
And what's about Explorer?
Who develops CF applications without checking what it looks like under
Explorer?
I have several sites using my CMS, and NO administrator uses anything
else than
/
The SeatonCorp companies
staff management * peoplescout * studentscout
/*-Original Message-
/*From: Claude Schneegans [mailto:[EMAIL PROTECTED]
/*Sent: Tuesday, January 08, 2008 11:40 AM
/*To: CF-Talk
/*Subject: Re: Adobe ColdFusion IDE survey
/*
/* Eclipse's 'view module' uses the same
I am not sure why they would build an IDE on eclipse when we already
have one.
Good point.
If everybody is happy with CFeclipse, let everybody use CFeclipse.
If it is not the case, let Adobe develop something else, but not the
same thing.
by the way, if Adobe is to develop something
I don't quite get what you mean by it looks an alien (sic) in the
Windows environment.
Sorry, it has been a while since I tested it, and I think I was thinking
of some other system.
I re-opened Eclipse, and it does not look too alien after all ;-)
--
___
Why don't they simply continue to support and develop CF Studio ?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
They would need to port it to non-Windows systems to appease the
majority of the developers.
Then let'm do it!
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL
and keeping a team of Delphi
It was developped in Delphi? Yurk! Now I understand.
But still, its conversion to C, or even Java, would be worth
Plus, the reality is that we've done nothing
with that product in about 8 years
... and stil many people use it and prefer it.
that a CF IDE
It would be smart for them to make it
cross-platform, but it wouldn't affect that many people if it was Windows
only.
Exact, there may be quite a few production servers under Unix, but their
developers are under Windows.
--
___
REUSE CODE! Use custom tags;
and many people don't :)
Ok, some don't hate them, and even fewer love them ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
Please,
please, please, Adobe, don't take away the best darned tool I've ever owned
for programming new CF apps!
How about starting a union? ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any
Sorry... Can you post the link to the survey again...
How about a survey about a good message reader that can save and
retrieve previous messages? ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please
Obviously a job for CF_REextract!
Ha ha! Touché ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
Do you have the component set to suppress whitespace?
The problem is not about white space not suppressed.
Some white space is actually *added*.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any
Silly indeed!
And it is as silly under CF6
Note that if you
cfoutput=#len(Silly())#=/cfoutput
you get = 5=, thus the extra space is not actually returned by the
function call, but
is inherent to any function call inside cfoutput
However cfoutput=#len(Silly)#=/cfoutput
outputs =5= correctly.
And
Can't believe that's been around for so long and not fixed in CF8!
Must be in the same agenda as correcting the empty list element bug ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam
I've argued many times myself (as author of ImageCFC) that DPI is
not a function of the image itself, but the meta-data of the image, as
the DPI is *ONLY* used for print.
or scanning, I couldn't agree more.
The resolution is a quality of instruments, images have no resolution.
and DPI
Visually DPI represents dots per inch - it's a measure of density in
printing. The higher the DPI the better the quality of printing - right?
Exact. It's a density. The definition of a resolution is the size of
the smallest element the instrument can measure,
-- if the instrument sees or
I think Claude's usage of the term density is an excellent choice.
Humbly, it's not really my choice, this is the way I learned it when I
was student in physics.
I just hope the translation is correct, in French, we call it densité ;-)
--
___
REUSE CODE!
Ok So compression is the best measure of quality?
except that it is a reverse measure: the higher the compression is,
the lower the quality.
Some softwares use % compression, some others % in quality.
A 10% compressed image is equivalent to a 90% quality, etc.
--
If enough people do so, I can almost guarantee that the Adobe dev
staff will take notice, and look at including that or a similar
function in the next version of cf.
Based on experience with dealing with empty list elements in list
functions, it may take a long time ;-)
--
I think it is obvious that
/script is not a safe string under certain JavaScript conditions.
The problem is not with Javascript here, it is with the HTML parser.
The HTML parser considers that the JS code is only
alert('
and passes it to the JS engine. The engine does what it can with what it
If I enter the End of /script and it gets butchered when it goes
somewhere else, that's a bug.
If it's a bug, it is only in the CMS that did not make sure the HTML
code it produces was right.
Not in the HTML parser.
The HTML parser does not parse the Javascript code, so obviously,
the parser
This
has nothing to do with the safety of JavaScript string literals at all,
and everything to do with HTML.
Absolutely.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address:
Therefore, jsstringformat should format strings the way
SerializeJSON does.
I don't agree:
The purpose of jsstringformat is to make a string safe as a Javascript
string in a Javascript context, no more.
JSON is a text format that is completely language independent, not only
Javascript, but
I don't think it's a good idea for one of these functions to
guess that I want to remove something that isn't a metacharacter when in
fact I may not.
Exact.
Another good example is the MSHTML editor which absolutizes relative
link addresses
accordingly to the directory in which the editor is
Then the context of jsstringformat should be widened.
Ok, then call it JSstringInHTMLformat. ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
i have some html files which i need to be able to read and find
all referenced files in it. Like all jpg, gif, css, js files etc that
are being used inside the html tags.
This is a job for CF_REExtract!
See: http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm
--
yeah, didn't see that coming
LOL... always ready to help people
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
any other ideas
Don't ask me ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
I need to insert the new li menu reference before the closing /ul.
Ok, with this approach, you would edit directly the source code.
Personally I'm using an opposite approach:
- use a table in the database to store all menu items;
- build the whole menu from the table;
- for editing, I use a
If your query is cached I wouldn't be surprised if the difference
between both won't show until you are getting dozens of requests per second.
The problem is that it does not require ONE query, it is rather a
recursive process,
on every sub-panel in the menu.
So rather than caching several
However, I would be confident in saying that the server will have to
work a lot harder to query a database,
Apparently yes, and I was also planning to use the query to build a
static html template for the menu,
instead of rebuilding it for every request. Because yes, the menu is not
updated
Let me first measure the time it takes, and see if it is worth.
I've measured my process, and it takes an average of 300 ms for a menu
with about 50 items in it.
Not really a problem on my sites, although I'm considering building an
HTML version every time the menu is updated.
--
But still, it's hard to believe that dynamically generating
a menu 2,500 times is even close to as good as simply cfincluding
a page with the menu code 2,500 times.
In my case, this would represent about 12 min processing time per day,
I suppose the 2500 pages will not be requested the same
Got any computations on processing a cfinclude an equivalent
amount of times?
Exactly, I measure the time BEFORE and AFTER the build menu template is
called, and display the result in a comment line.
The average is about 350 ms.
I guess this would be too much for a million pages per day site,
We should forget about small efficiencies, say about 97% of the time:
premature optimization is the root of all evil.
In other words, one should always optimize the optimization ;-)
--
___
REUSE CODE! Use custom tags;
See
Actually, DBML was used in Cold Fusion 1.x only.
and I remember the docs. T'was just an MSWord document! ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL
you click on it, the menu expands.
If you're dealing with visitors with not too much skills and accustomed
to Windows applications,
you should take in account that the way
http://www.tutorials-db.com/articles/Coding_a_Smooth_CSS_Expanding_Navigation/
works is against nature.
What I mean is
wow, sure you have a memory recorder
He deserves no credit, I'm pretty sure he got this from a book ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
where redirectTo simply redirects the page over to some place and sends
the encoded value over with it.
How can this be accomplished in PHP (using mcrypt library for instance)?
Something is not clear: why does it has to be done in PHP since
apparently it is not done yet,
and you seem to do
If someone has a better idea for a unique ID, I'm open to suggestions.
Well, if the id is for records in a table, how about using an auto
counter field?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please
The database does support autonumber,
What database is it?
there are many times where autonumber isn't useful because when you
delete a record, the database re-numbers everything
Really? I've never seen such a database that re-numbers auto numbers.
--
___
I am cfhttp-ing a page and searching for the first image tag.
This is a job for CF_REextract :
http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm
You can even test it on line :
1) set INPUTMODE = to http
2) go to
Claude, that brings back the javascript script tag
Ah ok, then you have to include the img tag in the RE1 expression.
I just want the RegEx though.
I wrote this tag because it is sometimes much easier to find what's
between two very simple expressions
than to describe what you want in only
Question, are there any online RegEx tools out there
Sure: you can design and test your regExp online here:
http://www.contentbox.com/claude/REwizard/index.cfm (IExplorer only)
and you can test a parse on your page address here:
FuseTalk is *not* written with Fusebox
This is con*fuse*ing ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
cflock name=#session.st#ProcessLock
Here is your problem: if your using any session value in the lock name,
you're having one lock per user.
You're actually protecting your code from multiple use by the same user,
not by all users.
--
___
REUSE CODE! Use
that particular value is the same across all users for a particular
client and each client draws from its own seed value.
Well, then I would look for some breach in the process of setting this
session value.
--
___
REUSE CODE! Use custom tags;
See
When a checkbox is checked, its value needs to be passed to a hidden
form field (it
will become a comma seperated list). When it is unchecked, it needs to be
removed from the list.
Well, you don't actually need any Javascript to do that. Just give the
same name to all your checkboxes,
and the
Normally I would just use boundaries (\b) for this, but since the
current platform is running CF5
How about (non tested)
reReplaceNoCase(attributes.replacedString,
([^a-zA-Z])#wordKey#([^a-zA-Z]), \1**CENSORED**\2, all)
but be aware that any one really will to use badwords will just have
the above regex seems to be checking for any alpha characters either
before or
after the bad word
It's the opposite: it is checking for one character which is NOT alpha,
before AND after.
The only thing I'm not sure is if it will match in the case of the
beginning and the end of the string.
Any suggestions on how to debug this ?
This what?
all I get is a Internal Server 500..
Doing what?
Has been working for years until today
What has been working for years? ;-)
--
___
REUSE CODE! Use custom tags;
See
I was wondering if anyone has a demo of a Ajax based multiple file
upload that works with ColdFusion.
ColdFusion or not, it is impossible to have a full multiple file upload
with only Ajax client side.
Ajax is actually Javascript, and there is no possibility of multiple
file handling with
This is one of a couple of things which was much easier to do in
primitive databases like dBase or Clipper.
But I would use an equivalent technique here, just looping in both
queries in the same time.
(not tested)
CFQUERY NAME=q1 DATASOURCE=DS1
SELECT field
ORDER BY field
/CFQUERY
CFQUERY
Are there any performance issues with using ValueList() on say 500+
records?
For valuList, I would say not that much, but for the
WHERE myID IN (#searchCriteria.tmpIDList#) query,
I would say maybe.
--
___
REUSE CODE! Use custom tags;
See
Hi,
I have this piece of code that works fine under CF5, but fails with
connection failure
and status code = 200 bothe under CF 6 and CF 7, on the same server.
CFHTTP METHOD=GET
RESOLVEURL=Yes
I have a hint:
I'm having the problem with only 2 pages.
Each page is declared ?xml version=1.0...
One is in XML indeed, the other one is just plain HTML.
I suppose CF is trying to decode the XML, although I don't want to get
any structure, I'm parsing the page myself.
Is there a way to ask CFMX
you might try setting RESOLVEURL=NO.
Makes no difference :-(
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
Something I don't understand is that in the dump of the cfhttp structure
I can see this header below, thus the page is retrieved indeed, so how
comes CF reports a connection failure?
The only explanation is that CF is trying to do something with the
content, (something I didn't asked) with the
CFHTTP METHOD=GET
URL=http://www.cyberpresse.ca/apps/pbcs.dll/section?Category=CPRSSprofile=5046mime=xml;
TIMEOUT=60 /
CFDUMP var=#cfhttp#
And tell me if you get something else than connexion failure in the
filecontent variable.
Thanks.
--
___
REUSE
unfortunately the thread originator is one of those people who do not
like others to know how they managed to solve the problem...
Yes, this is too often what happens. I found hundreds of threads on that
issue, none had a conclusion.
--
___
REUSE CODE! Use
i have never seen anything like this before
Same with us, especially if you don't show any code ;-)
Are you sure the form is submitted with METHOD=post
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please
its always the little things that take the longest!
also known as Pareto's law ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
I've noticed that since a certain amount of time, it takes quite a long
time to process messages in the list.
According to the headers, I sent this message at 12:31, but I got it
back from mail.houseoffusion.com at 16:22:06,
thus 4 hours later.
This is not that I'm so anxious about receiving
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
~|
ColdFusion is
I refuse attachments and transform from rich text to plain text. The
AV was
an extra precaution but it didn't help much.
Well, I doubt indeed that any virus can be found in a text only message.
--
___
REUSE CODE! Use custom tags;
See
The CA anti-virus on the mail server
Is it really necessary to scan messages for viruses on the list. Can't
you just refuse any attachment anyway?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send
Can anyone tell me or point me to a Macro or coldfusion code to
convert letters to numbers on phone keypad.
You will ashamed how simple it is ;-)
CFSET letters = A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
CFSET numbers = 2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9
CFSET
Would one need to create some logic to handle older phone layouts that
did not have two letters, the 'Q' and the 'Z' I believe?
Yeah, and what about crank telephones ;-)
--
___
REUSE CODE! Use custom tags;
See
Yes, I saw the un-rendered menu before the real menu-bar loads.
Me too.
I don't know about using CFMENU, but I have my own menu designed far
before CFMENU existed
and I have the whole DIV embeding the menu with style invisible.
The style is set to visible only when the whole menu is set up.
--
when i try to use that text in javascript it produces an error saying
unterminated string literal.
Use the CF function JSStringFormat(string) to create your JS string.
It will escape characters that need to be escaped, likes CR and quotes.
--
___
REUSE
Ok... How do you get Access to use the join syntax?
Where joining two columns between two tables, click on the line.
I must admit the line is not thick, and sometimes hard to click, but
everything is here.
--
___
REUSE CODE! Use custom tags;
See
For example, if you use Access to create JOIN query you will not get JOIN
syntax. Instead you will get what I usually refer to as the Access join
syntax.
Although I agree that the Access query builder has its limit, it does
support INNER, LEFT anf RIGHT joins.
I have written my own advanced
Your button is of type image. Even if you call it submit, it
won't submit the form.
You could use an onClick event to submit the form, but most eMail
readers won't execute Javascript,
so better use a standard submit button.
--
___
REUSE CODE! Use custom
What are the benefits on using a CHAR field versus VARCHAR?
The basic idea, back to the first database systems, is that all records
have the same length
and use the same amount of space in the database. Thus finding a record
is just a matter of multiplying this
record length by the record
How about this?
SORT BY val(left(serial, 4)), val(substring(serial, 3))
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
I can't imagine being a developer, especially a developer of products
for sale, and not being on this list.
Good point ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address:
What's going on?!?
either in your code or some system code
IMHO it is more like in the system code ;-/
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Now that *is* strange... great way to show off a product you want
people to spend money on.
Not like those great tags shown at
http://www.contentbox.com/claude/customtags/tagstore.cfm
;-)
--
___
REUSE CODE! Use custom tags;
See
Are these tags CF8 compatible?
Actually, I didn' test, but I see no reason they shouldn't be.
Especially for the CFX.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address:
I cant get CF2/RICK out of my mind.
Yeah, it's about time HE gives examples, instead of asking ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
cfheader name=Content-Disposition
value=attachment;filename=FILENAME
Shouldn't be filename=#FILENAME# ?
Surprising it works with Firefox and IE 7.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send
Coldfusion 8...
And if NOT CF*, see CFX_ODBCinfo:
http://www.contentbox.com/claude/customtags/ODBCInfo/E/TestODBCInfo.cfm
Works with any ODBC database.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please
Do spambots use javascript?
Not as I know so far.
I'm implementing a system to spot bad robots, not only spam bots.
So far, I've seen a couple which read Javascript files, but no one
executed it.
--
___
REUSE CODE! Use custom tags;
See
What sound does a cow make? with answers meow, quack and moo
What if it is a cow with mad cow desease?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Aren't spambots faking that these days ?
They are able to fake about anything, except may be the IP address and
script execution.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this
#dateformat(FORM.start_date, MM/DD/)#
Several things here:
1) dateFormat needs a date in its first argument, so CF will first
convert FORM.start_date,
which is a string, to a date value.
2) thus CF will suppose that FORM.start_date is in american format.
But then dateformat is useless since
1.) Install CF Developer Edition
2.) Install Eclipse
3.) Install CFEclipse
4.) DB of some kind.
5.) ???
6.) Profit!
You forgot 1.1: RTFM!
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam
it appears my addcomments.cfm page has become indexed in google.
usually this page is only accessed when a user goes clicks a link from
the articles.cfm page.
Then, if the address of this page is in a A tag, any robot will follow it.
If it is accessed through a form, normally Google should not
What am I doing wrong?
You are actually replacing quotes in the string 'form.description'
instead of variable form.description.
Just try #Replace(form.description,'',',ALL)#
--
___
REUSE CODE! Use custom tags;
See
Hi,
I have an application which sets some server variables, enclosed in a
lock on server scope:
CFLOCK TIMEOUT=2 THROWONTIMEOUT=No TYPE=EXCLUSIVE SCOPE=SERVER
Since I added this code, apparently, many times, sessions variables are
lost in any application and admin users have to relogin.
What I
myString.charCodeAt(i) // this gives me the asci value for the
character so i can test if it is an unwanted character
is there any similar function in coldfusion?
try asc(mid(myString, i, 1))
But in CF like in JS, there might be a more efficient way to accomplish
what you are trying to do.
Depends on what the image represents.
Ah ah, it's funny how much time you can spend just finding details to
contradict me ;-)
Of course, IF you're working with Binary information in Well Known
Binary (WKB) format, AND you have a database capable of reading details
in that format,
then you
My gut reaction is that this would add overhead, a
dependency on the database, network traffic, etc. What are your thoughts?
This sbject has been brought many times.
You're right
The purpose of a database is to store information in such a way that it
can be sorted and searched
more easily. An
all your data is stored in one
location. This means if you move your app to your server, all the files go
with it.
1. you can also store all your images in one location, in some images
directory.
if this directory is inside your site -- which is better if you want
your images to be
So, I'm assuming, again, that there really should be little difference
in performance regardless of how the file data is accessed.
Basically correct;
however, images can make a huge amount of data, and the bigger the database
is, the less it's performance is. You're right that you're reading the
want to return the characters in the name of a photo preceding the
period.
ListFirst() man, listFirst! ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL
Listlast(filename, '.') to get the extenstion
or to get the file name if no extension...
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
501 - 600 of 2701 matches
Mail list logo