Sean,
I am going to ask in a different way, and I would hope that you can provide a
code example to explain you reasoning in more detail. When learning design
patterns in Java, the book Head First Design Patterns gives a good example on
the duck, with interfaces and implementation.
I would
This has already been done, I think by Dave Shuck - Search Google for
SimUDuck + ColdFusion - that should give you what you need.
This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in
Well so far all seems ok so for future reference for anyone this problem
happens to, removing update 2 seems to solve it.
-Original Message-
From: James Smith [mailto:[EMAIL PROTECTED]
Sent: 02 July 2007 11:20
To: CF-Talk
Subject: RE: Mail error
In this case I had only just installed CF
On Wednesday 11 Jul 2007, Jaime Metcher wrote:
there is no enforceable contract, so cfinterface turns into an elaborate
commenting mechanism with a runtime performance penalty.
Did you try the CF8 beta yet :-) ?
--
Tom Chiverton
Helping to synergistically accelerate sexy e-business
on:
For example, if converting code from typed to untyped for performance
reasons,
Anyone know of an article that explains this (I'm blissfully unaware of this
issue)...
I like your thinking. I once wrote a CFC Documentor, for inhouse use, that
documents the component in either HTML or Word XML
I started having this problem as well recently. Is it a bug, and if so, has
adobe addressed it?
I'm running 7,0,2,142559
The Update Level in my cf admin is hf702-64335.jar
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401239sliceId=2
It seems in my case (from exception.log)
I was looking for a Cold Fusion based xml-rpc client. I'm currently
using a php version and would like to convert over to Cold Fusion. Any
recommendations for a xml-rpc client?
Thanks,
Dave Bosky | Information Services | HTC | direct: 843-369-8613 | fax:
843-369-7178 | [EMAIL PROTECTED]
Dave,
Are you looking for weblog software that is xml-rpc compitable? If so
BlogCFC is a great choice www.blogcfc.com. If you are looking for clients
to create posts in using xml-rpc I have some good examples on my website and
can be found at the link below.
http://www.danvega.org/blog/
On
All,
Any one of a way to validate the mime type of a file before it's uploaded using
Ajax or
Spry?
Thanks
D
~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade see new features.
Resolved ..
I have seen the error of my way ... ;) found a single variable nested inside a
collapsed if statement that was spelled differently.
Bob
~|
ColdFusion MX7 and Flex 2
Build sales marketing dashboard RIAâs for
input type=file name=myFile accept=text/html,image/jpeg,audio/mpeg
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 9:06 AM
To: CF-Talk
Subject: Spry - File Upload - validate mime type
All,
Any one of a way to validate the mime type
Any one of a way to validate the mime type of a file before it's uploaded
using Ajax or
Spry?
If you need to validate images this could work (fails silently on FF, see
the notes):
http://www.massimocorner.com/validator/samples/image_upload.htm
Massimo Foti,
Very interesting. I'm curious how maxrows=1 in the cfquery tag would
have behaved.
~Brad
-Original Message-
From: Mike Little [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 10, 2007 6:52 PM
To: CF-Talk
Subject: Re: Selecting top row in access db
how about that - adding an additional
This is nice, but it's really just using a regexp or pattern to define file
extensions... Not detecting mime type within the browser client on upload.
People could just rename the file extension of the file that they are
uploading, and the validator would fail. I'm pretty sure that javascript
I work at a university on a web development team that works a lot in
Coldfusion. I'm still somewhat fresh to Coldfusion, and I want to learn
more. I want to be able to experiment and work on things to teach myself
colfusion, both at work and at home. I would like to be able to install the
Excellent! That exposed the true error, authentication denied.
Now we can move forward, thanks for your help, Dave!
Len,
were you able to solve the problem? how??
Mike.
~|
CF 8 â Scorpio beta now available,
easily build
This is nice, but it's really just using a regexp or pattern to define
file
extensions...
That script does much more than just using a RegExp. Have you checked it? It
detect file dimensions (kb) and image dimensions (px). Do you think it would
be possible just using a RegExp?
Again, it's
I found a great article that uses the cffile tag and checks the mime type
on the server side but shows the error in a formatable way instead of the
CFfile tag error message.
http://tutorial260.easycfm.com/
This is nice, but it's really just using a regexp or pattern to define file
extensions...
On Wednesday 11 Jul 2007, Douglas Waite wrote:
CF Server on a portable hard drive
It's a server - it needs installing before it works.
Therefore you're best just installing it at both sites and copying your files
back and forth somehow.
--
Tom Chiverton
Helping to conveniently leverage
Douglas,
Check out Microsoft Virtual PC. If you have a few gig mem stick, put
your entire virtual server right on there as an image file, then fire it
up from wherever you want to use it. =)
Chris Peterson
Gainey IT
Adobe Certified Advanced Coldfusion Developer
-Original Message-
Hi All, We have developed a large new website and used a number of
javascript libraries along the way for some effects and some ajax stuff.
I have a feeling that we are only using a tiny proportion of these
libraries, but they are being downloaded in full.
My question is how to find out what
I doubt it would be that easy to run the server off a removable drive.
It runs as a service, and I don't think that it would be easy toset it
all up properly on the second machine manually. I may be wrong about
that, but it's not something I would tackle willingly.
However, using the portable
Or VMWare?
This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540. It contains information which is
confidential and may also be privileged. It is for the exclusive use
I work at a university on a web development team that works a
lot in Coldfusion. I'm still somewhat fresh to Coldfusion,
and I want to learn more. I want to be able to experiment and
work on things to teach myself colfusion, both at work and at
home. I would like to be able to install the
On Wednesday 11 Jul 2007, Dave Watts wrote:
you'd have to install on each workstation is the VMware Player,
If you have to install something, why not install ColdFusion :-)
--
Tom Chiverton
Helping to revolutionarily fashion guinine services
on: http://thefalken.livejournal.com
For my 2 cent plug, I can tell you that the new jQuery library is only
20k compressed... So, even if you are not using it all, it's a really
tight library with a simple API.
..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
Need ColdFusion Help?
As long as you've got reasonable caching directives in place and you
have a fair number of repeat visitors, I wouldn't worry about it much.
Once the files are downloaded, they'll not be downloaded again, so
their size is only relevant on the first access.
What would probably be a better use of
No need to get defensive.
The original poster's request was for mime type validation, not for finding
image dimemsions and such. I was speaking specifically about how TMT
validates file types. I didn't even look at how TMT deals with file sizes,
dimensions, etc... The way that TMT validates file
I like mootools' approach... They have a downloader that allows you to
download only what you need:
http://www.mootools.net/download
Jim Rising
Sr. Cold Fusion Developer
ICGLink Inc.
www.icglink.com
-Original Message-
From: Michael Traher [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
Surely if you are not using it all it would be 0k compressed or otherwise?
This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540. It contains information which
On 7/10/07, Andrew Scott [EMAIL PROTECTED] wrote:
When learning design patterns in Java, the book Head First Design Patterns
gives a good example on the duck, with interfaces and implementation.
Right, in *JAVA*. If you look at the classic Design Patterns book -
the so-called Gang of Four book
+1 for jQuery. Even though I've not seen your site, I'd almost be
willing to bet that it will do everything you want.
Chris
Ben Nadel wrote:
For my 2 cent plug, I can tell you that the new jQuery library is only
20k compressed... So, even if you are not using it all, it's a really
tight
You can try Railix (Live Version)
http://railo.ch/en/index.cfm?treeID=186
-Original Message-
From: Douglas Waite [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 11:08 AM
To: CF-Talk
Subject: Developer Edition on Portable Hard Drive
I work at a university on a web
you'd have to install on each workstation is the VMware Player,
If you have to install something, why not install ColdFusion :-)
Because you can install everything you need in one or more VMs - ColdFusion,
databases, web servers, even development tools - and only install one thing
on each
On 7/11/07, Robertson-Ravo, Neil (RX) [EMAIL PROTECTED]
wrote:
Surely if you are not using it all it would be 0k compressed or otherwise?
Just waite till you use some of the cfajax tags in CF8... talk about js
files!!!
Casey
He's talking about downloading the code in production to the client computer.
You're talking about a build for the developer Jim.
-Original Message-
From: Jim Rising [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 11:06 AM
To: CF-Talk
Subject: RE: too many js libraries
I like
-Original Message-
From: Michael Traher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 11:26 AM
To: CF-Talk
Subject: too many js libraries
Hi All, We have developed a large new website and used a number of
javascript libraries along the way for some effects and some ajax
Because installing vmware player is similar to installing flash player,
while installing coldfusion requires a lot of configuration.
Russ
-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 11:49 AM
To: CF-Talk
Subject: Re: Developer
No need to get defensive.
People tend to get defensive whenever you post ill-informed comments about
their work. It's kind of human nature.
The original poster's request was for mime type validation, not for
finding
image dimemsions and such.
That's why I wrote If you need to validate
Add another vote for jQuery from me. It really does encompass most of
the functionality that I've needed for my apps.
Rey
Christopher Jordan wrote:
+1 for jQuery. Even though I've not seen your site, I'd almost be
willing to bet that it will do everything you want.
Chris
Ben Nadel
Can anyone give me some pointers on how to do this?
I have copied the following files into the \CFusionMX\wwwroot\WEB-INF\lib\
folder:
jaybird-full-2.0.2.jar
jaybird-pool-2.0.1.jar
libjaybird2.so
jaybird2.dll
jaybird-2.0.1.jar
jaybird-2.0.1.rar
There is a directory in the
See, you are all talking about compressed downloaded file size, and
features (which are all important). I have found myself wondering the
same question of whether we have too many js libraries all overlapping,
but I am more concerned about memory usage and overhead that my
browser/client OS has
hey guys, in my apps a while back, if there was a fiel uploading function that
had a file size limit, I would allow the user to post the file first, then have
coldfusion check the file size, and if it's too big, tell the user that they
can't upload it (even tho it already is!) and then the file
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 12:49 PM
To: CF-Talk
Subject: RE: too many js libraries
He's talking about downloading the code in production to the client
computer. You're talking about a build for the developer Jim.
Just an FYI, at CFUnited one of the Adobe engineers confirmed that the JS
files in the final version of CF8 will be greatly compressed over what they
are now. There will still be lots of files, but they'll be much smaller.
-Original Message-
From: Casey Dougall [mailto:[EMAIL PROTECTED]
Yeah I know... But I still like how mootools allows the developer to
download only those portions of the library that they need for the parts
that they are actually using into a tidy little compressed package. :) the
core is under 3k. The core + all elements needed for a javascript accordian
~20k.
Yep, using them now, gotta love YUI.
This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540. It contains information which is
confidential and may also be privileged.
I have copied the following files into the
\CFusionMX\wwwroot\WEB-INF\lib\ folder ...
Have you restarted CF?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC,
This will be (somewhat) resolved in the final build.
Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com
Casey Dougall wrote:
On 7/11/07, Robertson-Ravo, Neil (RX) [EMAIL PROTECTED]
wrote:
Without getting into how the survey was unfair or whatever, I answered based
on what I read at wikipedia:
http://en.wikipedia.org/wiki/Object-oriented_programming
The fundamental parts of an OOPL are classes, objects, methods, passing
messages, inheritance, encapsulation, abstraction and
If I was to try and solve the problem on the other end (after
the site was developed), I would first identify all the
javascript objects that were in use, and where they were
being used within the application. No idea on the best
approach for this... Seems like a manual search. Once I had
Right...
You create a build that contains ONLY the library items you're going to use,
all in a single JS file. That's the file that then gets downloaded by the
end user. It doesn't dynamically build the file for the user at runtime
though.
andy
-Original Message-
From: Jim Davis
It's not necessarily terrible if you use proper expiration headers.
But I agree, better (and easier) to smash all the JS into a single
static file and just use that.
On 7/11/07, Dave Watts [EMAIL PROTECTED] wrote:
If I was to try and solve the problem on the other end (after
the site was
Would probably be better to include javascript.cfm, which then writes each
individual script tag to the page. Otherwise the browser is only going to try
and cache javascript.cfm.
-Original Message-
From: Jim Rising [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 1:16 PM
To:
That would be sweet!
Jim Rising
Sr. Cold Fusion Developer
ICGLink Inc.
www.icglink.com
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 1:45 PM
To: CF-Talk
Subject: RE: too many js libraries
Right...
You create a build that contains
Just because it gracefully handles an error if the object you're creating is
not actually an image() does not make it mime type validation, that would be
handling onError... It could possibly be considered a form of passive image
validation ... but really only for a handful of image types, and
I figured it would be an issue with browser caching... Hence the 'of course
I don't know how well this deals with browser caching issues'. :)
though I suspect that you could 'expire content immediately' on the web
server to remedy this.
If bandwidth is your issue, seems like a huge waste of
Yeah... That was the first approach I thought of, but didn't think it was as
elegant. ;)
The other thing that I was thinking about is that the number of potential
I/O accesses involved in that as the browser rips through all of the
included javascript src.
Why not just append a UUID or random
You wouldn't want to expire that content though. You WANT to cache it.
-Original Message-
From: Jim Rising [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 2:06 PM
To: CF-Talk
Subject: RE: too many js libraries
I figured it would be an issue with browser caching... Hence the
For instance, if I dump (www.netgrow.com.au/files) a JavaScript
array while using the prototype library, there are a crap load of
extra functions tacked on to each array and that kind of stuff
has to add up.
Why does it have to add up? They're not passed by value when you create a
new
So maybe:
script type=text/javascript src=javascript.cfm?#viewName#/script
Then it should only cache it for the view that it is on. The max overall
script downloads for any given application would be based on the number of
views you had.
Jim Rising
Sr. Cold Fusion Developer
ICGLink Inc.
See my previous email. You don't want the browser to load a new JS file each
time. That would be silly if they've already got it.
-Original Message-
From: Jim Rising [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 11, 2007 2:31 PM
To: CF-Talk
Subject: RE: too many js libraries
Yeah...
I figured it would be an issue with browser caching... Hence
the 'of course I don't know how well this deals with browser
caching issues'. :)
though I suspect that you could 'expire content immediately'
on the web server to remedy this.
That gets a distinctly suboptimal result. If
the maxrows worked too. wasn't sure i could have a cfif in the cfquery tag
though.
Very interesting. I'm curious how maxrows=1 in the cfquery tag would
have behaved.
~Brad
-Original Message-
From: Mike Little [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 10, 2007 6:52 PM
To: CF-Talk
this is really bugging me. i have a named anchor at the bottom of the article...
a name=comments/a
and at the top of the article a link a href=##commentsView Comment/a
why would this not be working? it doesn't even seem to work when there are no
URL params.
mike
came across this thread in
and at the top of the article a link a
href=##commentsView Comment/a
Is this within a CFOUTPUT? If not, you don't need two hashes.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers
That is exactly what I was saying... 'unless no two pages use the same code
at all'
If you have a view within an application that uses an ajax enabled datagrid
but does not need autocomplete, form validation, and an accordian... Why
would you load your entire toolbox into the back of the
If you have a view within an application that uses an ajax
enabled datagrid but does not need autocomplete, form
validation, and an accordian... Why would you load your
entire toolbox into the back of the truck when all you need
is a box of nails and a hammer? So maybe you don't expire
ok what i have done is remove it out of the cfoutput tag and just used the one
hash. works now. i was using the double hash to escape it?
thanks dave.
mike
and at the top of the article a link a
href=##commentsView Comment/a
Is this within a CFOUTPUT? If not, you don't need two hashes.
Thanks for all the suggestions and interesting chat!
I think an easy win would be to create one combined js file to start with,
but I guess there is no other way than to look for and properly document
what is actually being used. I was hoping you guys had a nice eclipse or
browser plugin that
I am pretty new to using ColdFusion components but I am trying to start doing
all my inserts and queries with them.
In the past I would always submit my forms to another .cfm page (usually called
action). On that page I would do my SQL inserts or whatever and then put a
cflocation at the
-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 11 July 2007 7:59 PM
To: CF-Talk
Subject: Re: Metadata for code documentation (was RE: SURVEY RESULTS: Is
ColdFusion OO?)
On Wednesday 11 Jul 2007, Jaime Metcher wrote:
there is no enforceable
Usually, you only interact with CFM pages from the browser. Those CFM
pages then delegate processing to your CFCs. If you take your current
model, the first step would be to move your queries into CFCs, and
then invoke the CFC methods from your action page, before doing the
CFLOCATION.
The
I wouldn't submit directly to the cfc... I would submit to another template
that invokes the CFC, passing arguments to it from the form or attributes
scope.
cfobject component=myCfc name=myCfcObject
cfinvoke component=#myCfcObject# method=setMyMethod
returnvariable=myReturn
not sure of the right way myself... but you could always make the
action page a normal .cfm page and call the CFC's method from that
action page (passing the entire form struct as an argument)... and
your cflocation in that same page.
On 7/11/07, Steve Sequenzia [EMAIL PROTECTED] wrote:
I am
Not many people like doing it this way, but the CFC supports the
concept. You just finish up the same way you used to. After the cfc
function has done what it is doing - relocate the user to the desired
page with a cflocation..., most likely with some kind of logic to
provide different end
Thanks for the help everyone. It all makes sense. I was actually doing it that
way but then I read somewhere about submitting directly to the cfc.
I am pretty new to using ColdFusion components but I am trying to
start doing all my inserts and queries with them.
In the past I would always
On 7/11/07, Nathan Strutz [EMAIL PROTECTED] wrote:
I think the reason why people would vote no to the main question is that
we know in an OOPL we create an object and call methods on it. new struct(),
struct.keyList(), but in CF we do structNew(), structKeyList(myStruct). It
doesn't feel OO,
On 7/10/07, Tom Chiverton [EMAIL PROTECTED] wrote:
I *think* CF8's IsInstanceOf() will still throw an error if you've broken the
contract.
Based on my testing... It will return NO, because it tests - at
runtime - that the contract still holds. However, type=ISomething on
an argument does not
-Original Message-
From: Sean Corfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 July 2007 2:21 AM
To: CF-Talk
Subject: Re: SURVEY RESULTS: Is ColdFusion OO?
2) simply use type=any and allow any strategy object to be pass in -
if it doesn't implement the right methods, you'll
Most of the time when someone refers to submitting to a CFC, they're
talking about a remoting or web services method invocation, not a form
POST. Which isn't to say that POSTing to a CFC is bad, just that's
not really the use case they're best suited for.
cheers,
barneyb
On 7/11/07, Steve
Is it possible to cache search results? For example, if someone puts a keyword
Tokyo in our search input box and clicks go, it retrieves tons of entries. If
I add cfcache action=cache to the action page for the query, it returns no
entries. I should think it would simply retrieve the page
Is it possible to cache search results? For example, if
someone puts a keyword Tokyo in our search input box and
clicks go, it retrieves tons of entries. If I add cfcache
action=cache to the action page for the query, it returns
no entries. I should think it would simply retrieve the
That was it! Thank you so much!
Is it possible to cache search results? For example, if
someone puts a keyword Tokyo in our search input box and
clicks go, it retrieves tons of entries. If I add cfcache
action=cache to the action page for the query, it returns
no entries. I should
84 matches
Mail list logo