it won't if you code it properly.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
BobSharp wrote:
Thanks for the tip about Grouping
Sadly, it would remove the eName column, when I just want it blank.
( ie. output shifts left one column )
Thanks guys, some useful tips that led me to this ...
http://ttcfm.open.ac.uk/~bs3578/test1/abEmpAssets.cfm
CFquery name=qEmpAssets datasource=bs3578
SELECT concat(e.firstname, ' ', e.lastname) AS eName,
LEFT(a.assetdescription,30) AS aTitle,
Thanks for the tip about Grouping
Sadly, it would remove the eName column, when I just want it blank.
( ie. output shifts left one column )
- Original Message -
From: Adrian Lynch cont...@adrianlynch.co.uk
To: cf-talk cf-talk@houseoffusion.com
Sent: Wednesday, March 18, 2009 11:26
Is this on a flash form or HTML? The the enabled attribute is only
for flash forms.
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/3/19 Nupur Gupta nupurgupta0...@gmail.com:
According to Coldfusion 7 documentation, there are now tags on cfinput for
your current code, if you have posted it correctly, creates malformed
html: since you have the opening tr tag outside of your query output
but the closing /tr inside of it, all your table rows after the first
one are missing the opening tr tag (check the generated source of the
page you posted a
On Wednesday 18 Mar 2009, Will Tomlinson wrote:
Will googlebot care? Will I be penalized?
I doubt it, but it's a black box :-)
Your users might be surprised, however, which is normally bad.
--
Tom Chiverton
Helping to proactively transition interactive systems as part of the IT team
of the
.baseball is a non-standard extension and does not fit the 3-4 letter norm
so Google may not like it. some-cool-products.cfm is valid but the name
should be contextual to the content of the file. If your product is
baseballs and footballs, I'd suggest
I am reading the cfcurriculum at
http://www.adobe.com/education/instruction/teach/cfcurriculum.html
and have already picked up a nugget.
I didn't realize that cfquery returned two results, the name= attribute and the
result= attribute.
I've always just returned the query in my functions, but
Two answers...
First:
Make sure the content mime-type is correct (i.e. text/html) and you'll be fine.
If it's not correctly set automatically, you can use cfcontent/cfheader to set
it manually.
Secondly:
Nobody except Google can *accurately* tell you if Googlebot will care.
(Though I
and have already picked up a nugget.
A tasty one at that. Thanx for sharing.
Should I return an array of structures
I would say yes. From what I have been reading, arrays of structures is the
standard way to exchange data between platforms (Think web services). If you
do it that way (arrays of
Thanks for the tip about Grouping
Sadly, it would remove the eName column, when I just want it blank.
( ie. output shifts left one column )
No, it needn't do that, and grouping is really the correct way to
solve this problem. You can find an example here:
Q: What's the best way to return two structures from a function?
Should I return an array of structures or can I return the resultInfo in one
of the arguments
from the calling program?
Well, strictly speaking, if you set the value of something within the
calling program that's not returning
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?
It becomes a
I've written a CFC responsible for returning data to cfgrid format=html
bind=cfc:MyCFC.getStuff({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})
I'm experiencing a strange error and, when I call
http://localhost/.../MyCFC.cfc?method=getStuffreturnFormat=json;... the
actual
Set output=false in both the cfcomponent and cffunction tags. See if that
makes a difference.
Adrian
-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com]
Sent: 19 March 2009 15:22
To: cf-talk
Subject: Suppress whitespace in CFC
I've written a CFC responsible for
Oh and in your Application.cfc too if there's any more whitespace.
Adrian
-Original Message-
From: Adrian Lynch [mailto:cont...@adrianlynch.co.uk]
Sent: 19 March 2009 15:30
To: cf-talk
Subject: RE: Suppress whitespace in CFC
Set output=false in both the cfcomponent and
I owe you a beer. That did it.
On Thu, Mar 19, 2009 at 10:31 AM, Adrian Lynch cont...@adrianlynch.co.ukwrote:
Oh and in your Application.cfc too if there's any more whitespace.
Adrian
-Original Message-
From: Adrian Lynch [mailto:cont...@adrianlynch.co.uk]
Sent: 19 March
Azadi,
I was able to get the one cfwindow calling another. But I can't set height
or width of the child window. The child window is ignoring all my attempts
to set size. Oddly it also seems to be maintaining the same aspect ratio as
the window underneath it.
In othe words in the first window
can you post a sample of your code?
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Rick Mason wrote:
Azadi,
I was able to get the one cfwindow calling another. But I can't set height
or width of the child window. The child window is ignoring all my attempts
to set size. Oddly it
Hi, all.
I've just realized I may have goofed when I named a branch of
development of a site fortstewart_1.2
Now, after importing the site into Eclipse, my local file structure,
is /fortstewart_1.2/components/whatever.cfc
But when I invoke the component method with the path
Hello,
I'm running CF 8.0.1 on Windows 2008 server (32-bit) using a standard instance
install (not multi-instance). I'm having a performance degradation issue when
any of the following happens:
- ASP.NET error occurs
- editing a CF security sandbox entry
This morning, I finally tracked down
Using a seperate application pool for the website that uses coldfusion
only can be also another temporary solution.
Bilgehan
On 3/19/09, Erick Larin ela...@uwf.edu wrote:
Hello,
I'm running CF 8.0.1 on Windows 2008 server (32-bit) using a standard
instance install (not multi-instance). I'm
We had a weird CF-stability problem on one IIS7 server and it turned out
to be related to the IIS app pool... We deleted and recreated the
default pool and the problem cleared up. This didn't make us feel all
that good, but at least the problem went away. Be sure to check the
Event Viewer to
That's how it's configured currently.
- Erick
Using a seperate application pool for the website that uses coldfusion
only can be also another temporary solution.
Bilgehan
~|
Adobe® ColdFusion® 8 software 8 is the most
Azadi,
Decided it was easier to fit my form to the window than the other way
around;). What I am finding is that sometimes the CF Ajax features get you
95% of where you want to go.
You will spend more in time going that last 5% than it was to build it from
scratch in javascript in the first
Disclaimer - I haven't had to do any fancy string manipulation in a while...
I had thought that ANY string can be treated like a list (for example, such
that abcdef can be treated as a list containing six elements and a delimiter
of ). Not so, I recently discovered when I tried to use
On Fri, Jan 16, 2009 at 12:53 AM, Mike Kear afpwebwo...@gmail.com wrote:
[quote]
An exception occured while trying to write the image.
Ensure that the destination directory exists and that Coldfusion has
permission to write to the given path or file. cause :
java.io.FileNotFoundException:
Tried it several ways, yet to get it to work as I want it.
http://ttcfm.open.ac.uk/~bs3578/test1/abEmpAssets_02.cfm
Must be the postion of the CFoutput, in relation to the TD table cells.
CFquery name=qEmpAssets datasource=bs3578
SELECT concat(e.firstname, ' ', e.lastname) AS eName,
Nope. any character can be a delimiter. you can consider the 'c' in
'abcdef' a delimiter between 'ab', and 'def'. But yeah, there has to be a
delimiter.
I don't think there's a way to do it other than what you've come up with...
looping over the string and inserting the desired delimiter.
Of
#REreplace(list,(.)(.),\1,\2,,ALL)#
heh...not technically list manipulation
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
You should be able to do this but I haven't tried it.
table border=1
tr
th width=20% Name /th
th width=30% Asset /th
th width=30% Category /th
/tr
CFoutput query=qEmpAssets group=eName
tr
td #qEmpAssets.eName# /td
td CFoutput
I read that in CF8 evaluate() should no longer be necessary. If so, how
would you cleanly rewrite the code below without it?
I have a table populated with form field corresponding with records in a
table, each idendified by record id. Say I have the record ids in a list.
cfset
Dip into Java first maybe then back to CF?
cfset str = abcdefg
cfset arr = str.split()
cfdump var=#arr#
!--- cfset ArrayDeleteAt(arr, 1) ---
cfset str = ArrayToList(arr, ,)
cfdump var=#str#
Note the the first element in the array is an empty string. I thought
ArrayDeleteAt() would take care
Of course, this is usually where somebody proves me wrong and posts
something really cool
My pleasure... ;)
cffunction name=ListFromChars returntype=String output=false
cfargument name=Text type=String/
cfargument name=Delimiter type=String default=,/
cfreturn
On Thu, Mar 19, 2009 at 17:18, Jim McAtee jmca...@mediaodyssey.com wrote:
I read that in CF8 evaluate() should no longer be necessary. If so, how
would you cleanly rewrite the code below without it?
I have a table populated with form field corresponding with records in a
table, each
Try this (not tested):
input type=text name=#id#_name value=#form[id'_name']#
I've done this in earlier versions of CF as well
Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE 68154
http://www.cfwebtools.com
402-408-3733 x103
Jim McAtee wrote:
I read that in CF8 evaluate()
#evaluate('form.#id#_name')# becomes #form[#id#_name]#
cheers,
barneyb
On Thu, Mar 19, 2009 at 2:18 PM, Jim McAtee jmca...@mediaodyssey.com wrote:
I read that in CF8 evaluate() should no longer be necessary. If so, how
would you cleanly rewrite the code below without it?
I have a table
This is the syntax for doing it with an array of structures:
cfset var result = ArrayNew(1)
cfquery name=qry datasource=myDatasource result=info
SELECT * FROM Tablename
/cfquery
cfset result[1] = qry
cfset result[2] = info
cfreturn result
What would be the syntax for using a structure of
I read that in CF8 evaluate() should no longer be necessary.
This is wrong. What is true is Should not be used if not necessary
Which by the way is your case here.
But there are more complex issues where it can't be avoided.
Dave gave you the answer.
Yep ! That's it.
http://ttcfm.open.ac.uk/~bs3578/test1/abEmpAssets_02.cfm
Thanks
- Original Message -
From: Nick G ngiova...@gmail.com
To: cf-talk cf-talk@houseoffusion.com
Sent: Thursday, March 19, 2009 9:14 PM
Subject: Re: Eliminating repeated data in CFoutput field
You
I must have been thinking about setVariable(). Why Should not be used if
not necessary? What would be an example where it's necessary?
- Original Message -
From: Claude Schneegans schneeg...@internetique.com
To: cf-talk cf-talk@houseoffusion.com
Sent: Thursday, March 19, 2009 3:29
Had to look up what the \B represented.
\B matches at any position between two word characters as well as at any
position between two non-word characters.
holy crap that is really cool :)
On Thu, Mar 19, 2009 at 3:11 PM, Peter Boughton bought...@gmail.com wrote:
Of course, this is usually
Bob, did you try the code I posted earlier?
Using rowspan is the ideal way to do this, and it looks like what I wrote
should work fine...
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
holy crap that is really cool :)
Yep. :)
For a full explanation of the last regex there:
\B|(?!^)\b(?!$)
Summarised as Any char boundary that is not at the start or end of the text.
In detail...
\B # as above, any WordChar-WordChar or NonWordChar-NonWordChar boundary.
| # or (not
This also does it quite nicely:
cfset list = ArrayToList( myString.toCharArray() ) /
Dominic
2009/3/19 Peter Boughton bought...@gmail.com:
holy crap that is really cool :)
Yep. :)
For a full explanation of the last regex there:
\B|(?!^)\b(?!$)
Summarised as Any char boundary that is
I knew there'd be something in Java!
-Original Message-
From: Dominic Watson [mailto:watson.domi...@googlemail.com]
Sent: 19 March 2009 22:03
To: cf-talk
Subject: Re: String to List?
This also does it quite nicely:
cfset list = ArrayToList( myString.toCharArray() ) /
holy crap that is really cool :)
On Thu, Mar 19, 2009 at 3:02 PM, Dominic Watson
watson.domi...@googlemail.com wrote:
This also does it quite nicely:
cfset list = ArrayToList( myString.toCharArray() ) /
Dominic
2009/3/19 Peter Boughton bought...@gmail.com:
holy crap that is really
This also does it quite nicely:
cfset list = ArrayToList( myString.toCharArray() ) /
And far more efficiently too!
You win. :)
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the
So many cool ways and only one cat to skin ;-)
Wil
2009/3/19 Peter Boughton bought...@gmail.com
This also does it quite nicely:
cfset list = ArrayToList( myString.toCharArray() ) /
And far more efficiently too!
You win. :)
Hoorah!
2009/3/19 Peter Boughton bought...@gmail.com:
This also does it quite nicely:
cfset list = ArrayToList( myString.toCharArray() ) /
And far more efficiently too!
You win. :)
~|
Adobe® ColdFusion® 8 software 8 is
Thanks all! Good stuff all around...really must get myself locked onto regex
one of these days :).
I came up with this:
cffunction name=stringToDelimListRE access=public returnType=string
output=false hint=Takes a string argument and inserts the second argument
between each character.
You've gotta love this bit of code:
REreplace(arguments.strInputString,(.)(.),\1#arguments.strDelimiter#\2#ar
guments.strDelimiter#,ALL)
lol
Oh come on, that's funny! :OD
Adrian
-Original Message-
From: Christophe Maso [mailto:zum...@hotmail.com]
Sent: 19 March 2009 23:37
To:
Why Should not be used if not necessary?
Because, if it is not necessary, hen there is an alternative using []
and it is more effiecient,
although the difference may be a couple of miliseconds.
What would be an example where it's necessary?
For instance, I have this in a custom tag:
Suddenly our CF server is doing the same thing - off the charts with 503 errors
from JRun - did you happen to ever figure out any sort of culprit or solution?
Thanks
K.
No, I do not have monitoring turned on in production. As a matter of fact,
until you just mentioned it, I completely forgot
For instance, I have this in a custom tag:
VALUE=#evaluate('caller.getItem.' attributes.type 'EasyFrame')#
There might be a better way, but I got tired trying to figure it out.
value=#Caller.getItem[attributes.type 'EasyFrame']#
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
I must have been thinking about setVariable(). Why Should not be used if
not necessary? What would be an example where it's necessary?
In general, evaluating strings as expressions is computationally
expensive. I can't think of any cases where I've had to use it in
quite a while, but I
In general, evaluating strings as expressions is computationally
expensive. I can't think of any cases where I've had to use it in quite a
while, but I suspect there are some rare cases where you can't get what you
need any other way.
Personally I think that the anti-evaluate slant is a bit of
Opps. I posted an old version of the cfc. The new(er) one is in cfscript
damn... my bad... but the offer still holds to not use evaluate.
G!
Note to self must sleep. Sleep good.
On Thu, Mar 19, 2009 at 10:56 PM, Gerald Guido gerald.gu...@gmail.comwrote:
In general, evaluating
and its sloppy, newbie code
On Thu, Mar 19, 2009 at 9:40 PM, Dan Baughman dan.baugh...@gmail.comwrote:
Dudes... stfu evaluate can be avoided.
(notice the period).
.
thanks
dan
On Thu, Mar 19, 2009 at 9:28 PM, Gerald Guido gerald.gu...@gmail.comwrote:
Opps. I posted an old version
Dudes... stfu evaluate can be avoided.
(notice the period).
.
thanks
dan
On Thu, Mar 19, 2009 at 9:28 PM, Gerald Guido gerald.gu...@gmail.comwrote:
Opps. I posted an old version of the cfc. The new(er) one is in
cfscript
damn... my bad... but the offer still holds to not use
Some times it cannot be avoided with out a boat load of thinking and trial
and error. Case in point, and I will gladly change this bit of code to not
use evaluate if someone can figure out how to do this in CFscript sans the
evaluate function:
OK, I'll bite. It's certainly much more verbose, and
Anyone have a perspective on the issue below?
-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com]
Sent: Thursday, March 19, 2009 1:24 PM
To: cf-talk
Subject: component paths in cfinvoke
Hi, all.
I've just realized I may have goofed when I named a branch of
http://www.foxnews.com/politics/2009/03/19/economy-slumps-firms-line-hire-skilled-foreign-workers/
Aaron Rouse wrote:
Or even themselves for the long run but in the shortrun it will make the
stock holders happy.
On Mon, Mar 16, 2009 at 12:43 PM, Jeffry Houser j...@farcryfly.com wrote:
I do not blame the companies one bit. I think they are getting around the
H1B visa need here via just bringing them stateside briefly for training and
then shipping them back to their home countries to do the job. Perhaps I am
wrong on that though, I do not know much about how all the different
64 matches
Mail list logo