I am currently on a performance crusade and have been rewriting lots of my
current projects. One of the biggest changes as a result has been the way I
architect my applications. I have started to use the application scope to cache
commonly used components. For example...
Sorry it was not clear about how I was catching. The CFCs are indeed created
inside the onApplicationStart function (application.cfc)
Also re traffic: it's not a large amount I would agree, but for a small
ecommerce store it does handle £50,000 of orders per month so for them that
traffic is
@ Jason: thanks for the links I will check them out. I have been learning
ColdBox over the last few months. It was cool until I found out half way into
my project I could not call the layout without the handler. I don't that
defeats the point of MVC but I needed it to brake the rules just once
Hi again Isaac, you just hit the nail on the head, the query given is just 1 of
hundreds in that CFC but the problem of the user deleting a category happen
sometime back. Halloween products after the season had ended and a customer
placed an order they should not. I put it down to a catching
i think this is more of a IIS issue than CF. yes you can use CGI to redirect
the user but why do it at this level.
if each domain is on the same server you can just setup one ColdFusion
datasource then each domain can access the same database and its content.
if you want to keep it secure
yes thats where query in the add to cart comes into play, from now on when they
add an item I check to see if it is active AND active = 'on' lol
anyhow again thank for the help :)
~|
Adobe® ColdFusion® 8 software 8 is the most
I figured that was the case, but that still doesn't eliminate the race
condition. The cart lives for the duration of their session, which is
like 20 minutes or so. So the item that was active when they added it to
their cart could become inactive at any time after it's added and before
they check
this question depends on what part the the UK you are. we had someone on a
contract on £35 per hour but that was a short contract only 3 months and we
really needed them. we advertised for someone with 2 years CF experience last
year to work fully time at our offices, we found it VERY hard to
I think a struct in a session is so much easier first you dont have to worry
about cleaning up the database after the uses has finished or if the user drops
out you dont have to create tasks to find redundancy data. you can have just as
much hassle storing temp data in a database as in a
can I create a form inside a cfpresentationslide? As it does not work for my,
nothing is clickable!
cfpresentationslide title=Signup
h1Signup/h1
form name=test
input type=submit
/form
/cfpresentationslide
many thanks
~|
Hi all,
Having some problems with trying to catch an error when my http post times out.
I have followed the livedocs and included a try and catch statement however
when it times out I get an white page with error 500 tag exceeded etc I
assumed that a try statement would overrule any error
I put it to a high 200 seconds on a url I knew would time out, however I get
the error after around 30 seconds so its just ignoring the timeout on the
CFHTTP call. does requesttimeout come before? which takes precedence?
~|
Hi a quick question, what tools do you guys/girls used for UML Modeling, am I
looking for a good software package to help speed me up a little.
thanks
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic
Hi everyone,
I have a CSV file I need to take the values out of and update a database with
them. Any suggestion or best ways to do this?
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
I want to load a html page into my editor exmaple below but it just will not
work, anyone have any better ideas?
What I need is a system where the file can be edited and update saved
cfset urlAddress=http://www.mydomain.co.uk/afile.html;
cfhttp url=#urladdress# method=GET resolveurl=Yes
A quick question re scheduled tasks and performance/load on the server. My
server is NOT running slow however what worries me is how many scheduled tasks
I can see in the administrator (25 of them). At what point does this become a
problem or am I fussing over nothing?
Many Thanks
:)
Thanks for all your answers. The main ones are all created by Sava CMS set to
run every 15 mins I have no idea what they do. the rest are my own and is just
simple code to run or refresh my email marketing system in the middle of the
night.
I have a very strange problem which only affects mac users. In my datefield, on
macs its shows as 2000 not 2009. after looking around it seems to be a bug
maybe with CF, is this true?
for example the following code on a pc shows the date as 01 April 09 on a mac
it shows 2000
cfinput
any ideas?
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
Yes client side of the same application same URL online
You meant that the error occurs on client Mac users of the same application,
not of installations of your application on Mac CF servers, right ?
Then, since the CF language doesn't know nor it cares for the type of
browser,
the error may
Ho every one, bit of a simple question,
my website shows a snippet of text using the 'left(myvar,30)' function in
ColdFusion. however this some times cuts off words mid flow, is there a
function in CF that shows x words and not x characters?
thanks in advance
There should be a UDF for that @ cflib.org I would search for word count
or some such.
G!
On Wed, Apr 15, 2009 at 12:01 PM, Glyn Jackson
glyn.jack...@newebia.co.ukwrote:
thanks
~|
Adobe® ColdFusion® 8 software 8
Can this be done?
I am using cfdiv so all my links are like so...
ColdFusion.navigate('paymenterror.cfm','productlistDiv');
This makes sure all content is submitted back to the cfdiv named
'productlistDiv'
Now my problem is...
I have form which I enter a URL to which an external API posts
Thanks Ray. You were right but I did find a very messy way of doing without
have to make a http post. I used the coldfusion.navigate to post the form and
display the results at the same time.
javaScript:ColdFusion.navigate('#Response.ACSURL#','mydiv',null,null,'post','myform');return
false;
I am trying to get my head around ColdBox and ColdSpring (manly ColdSpring) so
please be kind and any example code with comments would be much appreciate.
My question
I have a CFC called model/common.cfc
This CFC contains all my SQL code that interacts with the database. However in
Hi Sean, thanks for the reply.
Quote: Common.cfc has to be managed by ColdSpring for the dependency injection
to take place
So the dependency injection would be...
bean id=common class=model.Common
property name=dsnBean
ref bean=dsnBean /
/property
property name=ConfigBean
ref
PS would i also not have to change my User Service as all i want to do is call
my User Service and have common available otherwise I dont see the point i can
set this in init method. i.e would it be something like so only the user
service is called...
User Service
cfcomponent name=User
sorry, so do i go back to how I was before...
bean id=Common class=model.Common
property name=dsnBean
ref bean=dsnBean /
/property
/bean
bean id=UserService class=model.UserService /
but then how does UserService know what common?
how about below would this allow me to call any method from common.cfc using
the user service bean.
beans
bean id=coldboxFactory class=coldbox.system.extras.ColdboxFactory
/
bean id=ConfigBean factory-bean=ColdboxFactory
factory-method=getConfigBean /
bean id=dsnBean
I think I have it now in my handler...
variables.oUserService =
getPlugin(ioc).getBean(UserService).getUserGateway();
and i now see all common.cfc methods is this right?
~|
Want to reach the ColdFusion community with
Thanks Mr Corfield, perfect.
last question I promise (fingers crossed). I am just playing with ColdSpring,
however maybe I am missing the point with what I have done in the example so
far. this could have been all done in the init() method or I could have
extended the CFC or I could have
I see, thanks for taking the time to explain, you have been very helpful.
Glyn.
On Fri, Jul 24, 2009 at 1:36 AM, Glyn Jacksonglyn.jack...@newebia.co.
uk wrote:
what are the benefits of working this way, am just ignorant having
never used it or AOP before in CF. Any docs online you can
Hi, I have my DNS bean injected into my CFC, I have used a setter. how do I now
use the dns details now 'within' my CFC. do I create it in my init method? I
want to do something like the following...
cfquery name=test datasource=#instance.dsn.getName()# etc.
Hi,
I did try that with...
cffunction name=init access=public returntype=any hint=constructor
cfargument name=dsnBean type=any /
cfset variables.instance['dsnBean'] = arguments.dsnBean /
cfreturn this /
/cffunction
however I just get the error Element DSNBEAN is
the parameter to the init function was not passed in for some reason?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
I like this example (below) but for some reasons its not being passed...
cffunction name=init access=public returntype=any hint=constructor
cfargument name=dsnBean type=any required=yes /
cfset variables.instance['dsnBean'] = arguments.dsnBean /
cfreturn this /
Hi Dominic,
I have tried...
bean id=dsnBean factory-bean=ColdboxFactory factory-method=getDatasource
constructor-arg name=alias
valueDBDetails/value
/constructor-arg
/bean
bean id=userService class=model.UserService /
bean id=userGateway
I know it exsits as if I go back to the setter version i can dump the bean in
the CFC
cffunction name=setdsnBean access=public returntype=void output=false
_wireme=ioc
cfargument name=dsnBean type=any required=true hint=Set DNS Beand /
cfset variables.instance['dsnBean'] =
Still not sure why I am getting this error since it should have been passed.
any more ideas? thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Restarted and used the dump as suggested and I get...
struct [empty]
strange! If I was to go back the to setdnsBean i can dump in that function and
its there however I want to inject using the init
It should work again just in cause I will post the full code below, if you have
any more ideas
do you or anyone else have any more ideas on this? Thanks :)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Hm, time to try the ColdSpring list I'd say.
Maybe its a ColdBox issue!
?And while you wait for an answer from there, use the property method and move
on ;)
Will do, thanks for your help :)
Dominic
2009/7/26 Glyn Jackson glyn.jack...@newebia.co.uk
do you or anyone else have any more
I have another question regarding ColdSpring and ColdBox. I will be using it to
create a bean on the init() method of my handler, I will not create the object
again after that. This bean contains all my SQL and database interactions
(example below). My question is, singletons. is this ok, I
So is my common.cfc classed as a singleton?
ColdSpring should generally only be used to create and manage
singletons, if that answers the question.
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
Sorry it makes more sense now I have read this...
http://www.coldspringframework.org/coldspring/examples/quickstart/index.cfm?page=factory
~|
Want to reach the ColdFusion community with something they want? Let them know
on
The more I venture into OO type of design the more I have to get my head around
todays its getters and setters. I think I am 'getting' in to the swing of
this but I could do with some advice please! any advice and help is welcome!
I have no idea if I am just making this up as I go along
@Matt Quackenbush
thanks so much for taking the time to help me out :) that makes sense. kinda
starting to get it. I think its going to be one of those things I need to do
real world things with before I see the benefits. at the moment all I seem to
be doing is adding extra overhead lol.
is
leading on from my last example which would be the best way to the following...
1) get the username from the database to store in a session
2) log them in
I was thinking about added the following in my handler after the validation
checks..
variables.adminUsersService.doLogin(userBean);//Login
Thanks Kevan
quote: user object would be stored in the session rather than just the username.
Interesting idea, thanks makes way more sense.
PS, thank you for the link, just what I was looking for.
Glyn.
if I should be do this all in my service, or should I come out again with
the username
Hi,
Thank you to everyone on house of fusion who has been very helpful so far with
my stupid questions. I have another ;)
I was looking at some code I generated for a gateway by Illudium PU36. The read
and update functions do not make any sense in that it does not have any return
for me to
quote: Because CF passes CFCs by reference, your adminusers object will
magically have all of the updated info in it wherever you called
readAdminUsers() from.
really, no way? so my admin object will have the data populated using the
getters and setters! thats cool!
so let me see if I
This really works! Look at me I am starting to get this (is it really sad
this is making me smile with joy lol)
I love this object stuff! So here is what I am doing,
I have just checked my user exist, got their details and set there session in 4
lines of code in my handler! Now that's
Glad its not just me. Thanks again for you help, I am sure I will have more
questions but I have a bit to be going on with now for a while at least.
Glyn
~|
Want to reach the ColdFusion community with something they want? Let
Confused about how I would go about returning all records from a table from my
DAO?
this is how I would return a record with an ID (see below), however when
returning all records needed for a cfloop i am not sure.
handler
variables.adminUsersService.getUserByID(userBean); -- access service
Thanks for the reply. reading my question back it did not make much sense, so
you did well to work out what I was on about lol!
I'd go with a query unless you have a particular reason not to.
no reason, that would be the way I would normally do it, however if I wanted to
try and keep this
@ Judah McAuley
thanks very detailed response. its just a simple record set to display. So what
your saying makes sense.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of
I want to submit the data in all tabs as one big form post. this does not seem
possible I had tried below and put my cfform tag around the whole cflayout but
all i get now is he tag must be nested inside a cfform tag. which is not the
case lol
cfoutputh1#Event.getValue('pageTitle','Please
someone must have done this before? using tab layout in CF8 had tabs with just
one form post submitting all data in all tabs at once?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the
yes that would work but not with using includes with the tabs or source. the
issue is that when you do it with an include it does not work due to CF
thinking you dont have a completed form
Sorry I meant wrapping the whole set of tabs in 'form tags' ... I
didn't mean to confuse you :)
I see, never mind back to the drawing board. thanks.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
I am using CF8 and want to use cfinput type=datefield but without cfinput
does that make sense? ok I want to use ext popup calender for a input box but
not via cfinput tag
i.e.
input type=datefield
can I still use the library without cfinput? if so can soneone give me an
example?
Thanks
I did try that but because I am using cflayout on the same page it all goes
wrong coldfusion gets confused to which ext its using or should I sat the JS
does. wondering it we can just yap into the ext1 JS bot use the paths or URL's
that CF uses.
Thanks Think I will try the jquery
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
_
http://blog.cutterscrossing.com
On 8/28/2009 7:57 AM, Glyn Jackson wrote:
I see, never mind back to the drawing board. thanks.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House
could someone cut and paste the the code below and tell me if you see the
message
submenu collapsed. click to expand submenu
under products items.
I dont remember CFMENU having this message before and I cannot get rid of it!
running CF 8.01
cfmenu bgColor=##c0c0c0
cfmenuitem
very strange. it is def 100% being generated by CFMENU tag for me!
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
you can see it happening here
http://demo.salesmaxx.co.uk/test.cfm
only code on the page is
cfmenu bgColor=##c0c0c0
cfmenuitem display=Adobe href=http://www.adobe.com; /
cfmenuitem display=Products
cfmenuitem display=ColdFusion
href=http://www.adobe.com/go/coldfusion; /
Hi All,
Is there a CF tag I don't know about which will allow me to dump my server
specs like memory, processor speed etc
Thanks
:)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the
Thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326062
Subscription:
After installing the new hotfix chf8010002.jar
in my libs/update folder I have the following...
chf8010002.jar
hf801-1875.jar
hf801-1878.jar
hf801-71634.jar
now it states in cfadmin the update level is hf801-1875.jar (is this the case?
what about the chf8010002 I just installed?) in the tech
thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326081
Subscription:
Hi Tom how are you?
That makes sense, its a mess! anyhow spent the time doing a bit of research
this is what I have installed...
chf8010003.jar - latest hotfix
hf801-71634.jar- a fix for CFLAYOUT which came with new CSS so cannot be
deleted
hf801-1875.jar - JRun Security Hotfixes
Going a bit mad! I should know how to do this but my brain is not working
today
when the form below is submitted if the checkbox is checked I want to update
the option on the valueId (which is a hidden field) and keep looping all the
results only updating option have is ticked. however
I am trying to work with objects and better understand how to use them. So far
it has been straight forward when updating/creating/deleting one record at a
time. But I now need to update many records at once is getting a bit tricky.
I simplified version of what I am doing so far is below...
Thanks you, yes thats the way I was thinking, makes sense.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Hi,
cfscript (ColdFusion 8) can I do the following entirety in script?
cfloop index=i list=#listToUpdate# DELIMITERS=,
value = #i#
/cfloop
Thanks
~|
Want to reach the ColdFusion community with something they want? Let
I am using CFIMAGE do resize images and use write to browser to view them I
have noticed that when I view the image the path is something like this...
/CFFileServlet/_cf_image/_cfimg-x
how long does it say in this directory for? does it delete them when its done?
I can still navigate to
Interceptors make requests in specific execution points in which it can
process, pre-process, post-process and redirect requests, perfect for security!
Think of interceptors as listeners to any request in your application.
Are you sure it deletes it afterwards I.E
http://www.safe4sure.co.uk/CFFileServlet/_cf_image/_cfimg-7294859208909333435.PNG
its still there?
do you set how CF treats these files in CFadmin?
~|
Want to reach the ColdFusion
barneyb thats interesting thanks
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
O went back 5 mins later to that URL and got...
404
Not Found
so there must be some sort of time frame before its deleted, anyone know what
this is?
~|
Want to reach the ColdFusion community with something they want? Let
LOL, set myself up for that one :)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Any reason why below does now work? no errors it just does not do what it
states.
it should look at all valueId's in the database and if its not in the list
delete it, simple, right, so why does it not work?
DELETE FROM options
WHERE valueId NOT IN
cfqueryparam value=#arguments.list#
PS the list looks like...
1,2,3,4,5,6 etc
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
simple when you know how. Thank you!
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
We have recently moved to a new virtual server, since the move we have been
having issues with ColdFusion almost everyday. What seems random, ColdFusion
slows down and then stops responding all together. I then try and restart the
service and it errors stating CF cannot be stopped as it's busy
Old server has gone, what figures should we be looking at?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
I am just going over some old code, I found the following...
productPageName = Replace(#FORM.pageName#, ,-,All);
productPageName = REReplace(#productPageName#,[.*+?^${}()|[\]/\\],,All);
its seems like its create a page name but removed spaces and special characters
i.e. this page! becomes
Makes sense, thanks you.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327452
Can anyone spot what is wrong here?
my AJAX grid IS working but when I try and sort the columns (by clicking in the
grid) I get the following error...
Error Executing Database Query.
:http: Invoking CFC: /admin/coldboxproxy.cfc , function: getAllproducts ,
arguments:
Found the issues on this line...
ORDER BY cfqueryparam cfsqltype=cf_sql_varchar
value=#ARGUMENTS.gridsortcolumn# cfqueryparam cfsqltype=cf_sql_varchar
value=#ARGUMENTS.gridsortdir#
it seems to work without the cfqueryparam. can anyone tell me why this is the
case?
Thanks Ray, seems strange, I did not know that.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Hi I have an old fusebox app i am working on. it outputs a csv file with data
however the html (layout) is also getting added to the csv? anyone know why.
cfsetting enablecfoutputonly=yes
cfscript
function cleanField(sField){
sField = (replace(sField,,,;,All));
Hi all,
could someone convert this cfscript back to tag?
for(i=1;i lte listlen(#form.whatToUpdate#,,);i++){
tempVal = #listgetat(form.whatToUpdate,i,,)#;
form.ID = #tempVal#; //Option ID
form.newRank = form[rank_ #tempVal#];
}
thanks
I have a loop which counts, I need to detect multiples of 6 i.e
loop count
is it a multiple of 6? true
else do nothing
is there a tag that does this?
~|
Want to reach the ColdFusion community with something they want? Let
I have always had problem with the way ColdFusion reports errors in stored
procedures and I was wondering how other CFâers go about debugging the same
sort of errors (without costly software).
For example, the following ColdFusion error is generated on a stored
procedure...
Application
I need to know where I start for the following I have been given a Web
Service SSO URL test against, I need to open a new window and send login
details accross. all i have is the xml.
my question is in CF how to i go about this? CFHTTP, xml etc? below is what I
hev been given
Envelope
I have been asked to looked as some code within this page is below. I have no
idea what its doing however I was told its needed but keeps giving me errors.
is your opinion why does this exists?
cfparam name=referer_itemID default=0
cfparam name=referer_popupID default=0
cfif
yep the error was because of a users firewall not sending the http_referer so
the value was - which mid function does not like.
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of
Hi could someone take a look at the following domain...
http://www.she-says.net/
In Firefox, Chrome etc the cfdiv works however in IE 8 when you click submit,
read answer then it brakes coming back i.e. does not display.
any reason why this happens in IE8?
code below
cfajaximport
1 - 100 of 134 matches
Mail list logo