I'm about to do some tests on application.cfc as it deals with the
onApplicationStart and onSessionStart. The question is, if the
application/session does not exist, does the method 'lock' and single thread
the request to it or can multiple requests cause the start methods to run if
they
From the LiveDocs
(http://livedocs.macromedia.com/coldfusion/7/htmldocs/0696.htm)
Use this method for application initialization code; for example, use
it to set Application scope variables, to determine whether a required
data source or other resource is available, or to log the application
Billy Jamme said:
The problem occurs when I attempt to use cfqueryparam to fetch a
2100+ item list of records.
cfquery name=selectList datasource=database
SELECT id
FROM tempTable
WHERE id IN (cfqueryparam value=#list# list=true
cfsqltype=cf_sql_integer)
/cfquery
To
Michael Dinowitz said:
I'm about to do some tests on application.cfc as it deals with the
onApplicationStart and onSessionStart. The question is, if the
application/session does not exist, does the method 'lock' and
single thread the request to it or can multiple requests cause the
start
And the answer is that the onApplicationStart method singlethreads the
application until it's done. My test was to have 2 different directories
with application.cfc of the same name in them. The first had a wait function
set to a minute. The second had nothing. I ran the first and then the
Always a good idea to test the docs, especially when you have an article on
it in the upcoming print edition of the Fusion Authority Quarterly Update.
From the LiveDocs
(http://livedocs.macromedia.com/coldfusion/7/htmldocs/0696.htm)
Use this method for application initialization code;
I'll have to test that as it sounds logical but doesn't 'feel' right. Your
probably totally correct, but
Sessions and applications are entirely different beasts here. For both
the starting point is the part of the manual James referred to. But
for sessions there is an additional
Hi Mike - check this post out:
http://succor.co.uk/index.cfm/2006/2/13/Google-analytics---urchin
On 22/05/06, Mike Klostermeyer [EMAIL PROTECTED] wrote:
Since it appears many here use Google Analytics, I have a question. Does
anyone use it over an SSL connection (during the checkout process of
As OnApplicationstart only executes once at the start of an application
this does means you couldn't use it to reset your application variables,
which is a pain IMHO.
russ
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: 23 May 2006 08:25
To: CF-Talk
Subject:
It does make sense - if the cookies aren't set in the browser, you get
a new session with new cookies.
It occurs to me the same is true regardless of which method you are
using - Application.cfc or a CFAPPLICATION tag. Is that right Jochem?
On 5/23/06, Michael Dinowitz [EMAIL PROTECTED] wrote:
Snake said:
As OnApplicationstart only executes once at the start of an
application this does means you couldn't use it to reset your
application variables, which is a pain IMHO.
Just call OnApplicationstart from somewhere else in application.cfc.
Jochem
James Holmes said:
It does make sense - if the cookies aren't set in the browser, you
get a new session with new cookies.
It occurs to me the same is true regardless of which method you are
using - Application.cfc or a CFAPPLICATION tag. Is that right
Jochem?
Yes.
Jochem
This is why I never use frames.
On 5/23/06, Jochem van Dieten [EMAIL PROTECTED] wrote:
James Holmes said:
It does make sense - if the cookies aren't set in the browser, you
get a new session with new cookies.
It occurs to me the same is true regardless of which method you are
using -
Thanks Nick!
Al
-Original Message-
From: Nick Tong - TalkWebSolutions.co.uk [mailto:[EMAIL PROTECTED]
Sent: Monday, May 22, 2006 4:36 PM
To: CF-Talk
Subject: Re: Google Analytics?
Mike, Did you check out my post?
Aldon, . it can be slower but be sure to put the script at the end of
you
hmm, it's almost as if you are looking over my shoulder, blogging about what
I'm doing incorrectly! Thanks a lot.
Mike
-Original Message-
From: Nick Tong - TalkWebSolutions.co.uk [mailto:[EMAIL PROTECTED]
Sent: Monday, May 22, 2006 8:37 AM
To: CF-Talk
Subject: Re: Google Analytics?
Hi
On Monday 22 May 2006 19:40, Jon Block wrote:
When the apparent connection with the web server breaks, Firefox prompts
me to download my index.cfm file.
What's in it ?
Apache 1.3.33
Can you try a more recent apache and/or mod_rewrite rather than the MacroMedia
connectors ?
--
Tom
I have use the cfdocument tag to produce a print friendly document. I am
using an image link to call the document. The issue is the pdf is out of
alignment. What do I need to do to correct the output.
The CF Code:
cfif isDefined(cgi.HTTP_REFERER) and isDefined(url.print)
cfhttp
Is there anything outside of that code that might be affecting the print?
Such as margins or padding on your body tag? Or a parent container element?
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
My main content is controlled by CSS
..bodytext {
color: #333;
font-size: 11px;
font-family: Verdana, Helvetica, Arial, san-serif;
line-height: 16px;
font-weight: normal;
padding-left: 11px;
padding-right: 5px;
text-align:justify;
}
Steve LaBadie
Raven Technology
http://www.ravenpcs.com
I'm building a store which constantly adds and removes designers as
product availability dictates.
My navigation page contains two dB calls - one for designers and one for
product categories.
(If there are no items in a particular product category then the
category does not appear.)
I'm
Yep, exactly. However, note that CF only single-threads onApplicationStart()
automatically when IT runs it. If YOU manually re-run onApplicationStart(),
you must lock that method call if you want to prevent race conditions.
On 5/23/06, Jochem van Dieten [EMAIL PROTECTED] wrote:
Snake said:
As
Hello.
Our company has CFMX 71 Enterprise and I want to move it to sit on a
Java server so that we can take advantages of multiple instances and at
the same time allow for development of J2EE applications.
I am looking for an open source (read free) server what I have looked at
is Jboss
Hi. I have some really persistent and stubborn code in CF that just won't budge.
I am using CFSchedule action=delete to delete a certain scheduled
task. But it keeps running even after being deleted. I checked
scheduler.log file, and it was still running. Click on Scheduled Tasks
List (in CF
Like I said, logical but just doesn't 'feel' right. :)
It does make sense - if the cookies aren't set in the browser, you get
a new session with new cookies.
It occurs to me the same is true regardless of which method you are
using - Application.cfc or a CFAPPLICATION tag. Is that right Jochem?
Sounds like this bug:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18361
but I thought that was only a 6.1 issue???
--Ferg
Ken wrote:
Hi. I have some really persistent and stubborn code in CF that just won't
budge.
I am using CFSchedule action=delete to delete a certain
I realize that the list is a list of integers, but, being a list,
wouldn't the datatype be something akin to a string? How is that handled
within cfqueryparam?
Cutter
Jochem van Dieten wrote:
Billy Jamme said:
The problem occurs when I attempt to use cfqueryparam to fetch a
2100+ item list
Why not use Jrun? You paid for it when you bought CFMX7 Enterprise.
-Original Message-
From: Martin Thorpe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 9:59 AM
To: CF-Talk
Subject: CFMX Java server recommendation
Hello.
Our company has CFMX 71 Enterprise and I want to
ugh, you have JRun already available and paid for. Sure, you could
use JBoss, not Tomact.
DK
On 5/23/06, Martin Thorpe [EMAIL PROTECTED] wrote:
Hello.
Our company has CFMX 71 Enterprise and I want to move it to sit on a
Java server so that we can take advantages of multiple instances and
Hi,
I'm trying to understand the functional difference between the two
extensions that are mapped from IIS to CFMX7 (on Windows 2003 Server).
By default, these two are mapped (in this order):
cfroot\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll
cfroot\runtime\lib\wsconfig\jrun_iis6.dll
My
Gilbert,
You can always use a manual caching system. If your application controls all
aspects of the site (both user interface and administration) then you
programmatically know when the cache needs to be modified.
How you implement really depends on the size of data you're dealing with and
the
About 99% of the code I've seen out there just set a bunch of
Application constansts and components, so this is fine. Don't forget
it, of course, but most folks won't be impacted by it. I typically add
this to onRequestStart:
cfif structKeyExists(url, reinit)
cfset onApplicationStart()
/cfif
On
Mart,
You can execute your Java/JSP right where you are now. I wouldn't really
bother mucking about with anything else for what you need right now.
N
On 5/23/06, Douglas Knudsen [EMAIL PROTECTED] wrote:
ugh, you have JRun already available and paid for. Sure, you could
use JBoss, not
Ray, Have you given any thought of moving the reinit out of the
application.cfc and into an admin section or the like? I'm never happy about
allowing 'just anybody' who visits my site the ability to reinitialize it.
About 99% of the code I've seen out there just set a bunch of
Application
On Tuesday 23 May 2006 16:05, Michael Dinowitz wrote:
about allowing 'just anybody' who visits my site the ability to
reinitialize it.
cfif structKeyExists(url, reinit)
cfset onApplicationStart()
/cfif
I tend to use
cfif structKeyExists(url, reinit) and
i usually limit the reinit to the small list of dedicated ip's that i
have available
to me (office, home, parents house, in-laws house, etc)
then no matter where i am, i can do it.
tw
On 5/23/06, Tom Chiverton [EMAIL PROTECTED] wrote:
On Tuesday 23 May 2006 16:05, Michael Dinowitz wrote:
See both Tony and Tom's response. In the past, where I have cared, I'd
done Tom's thing of just using a unique value. Like,
reinit=letmedoitorelse.
On 5/23/06, Michael Dinowitz [EMAIL PROTECTED] wrote:
Ray, Have you given any thought of moving the reinit out of the
application.cfc and into an
Ray, Have you given any thought of moving the reinit out of
the application.cfc and into an admin section or the like?
I'm never happy about allowing 'just anybody' who visits my
site the ability to reinitialize it.
I don't think you can move the reinitialization itself out of
I realize that the list is a list of integers, but, being a
list, wouldn't the datatype be something akin to a string?
How is that handled within cfqueryparam?
The CFQUERYPARAM tag tells the database that it's a series of integers, and
that's all that matters. Each integer value is replaced
Right.
While Tomcat should run CFMX Enterprise (i've not tested it), it's not a
J2EE server, it's a servlet container, which is one of the key components to
J2EE, but if you're planning on deploying other J2EE apps, you'll want a
real J2EE server.
As pretty much everyone has said on this thread
Dave, thanks for the clarification.
Cutter
Dave Watts wrote:
I realize that the list is a list of integers, but, being a
list, wouldn't the datatype be something akin to a string?
How is that handled within cfqueryparam?
The CFQUERYPARAM tag tells the database that it's a series of
ray, et al.
im having a STRANGE Application.cfc issue.
im setting a request var in the onRequest() method
and the value isnt available a page on the first load after
restarting the cfmx server. 2nd, 3rd, 4th load of page
works fine.
but the first one out of the gate, isnt working.
any ideas?
Ok cool, sounds good. Alrhough I was trying to boost my CV with knowledge of a
well known server, here in Belgium, it is Weblogic/Jboss.. but I guess going
with what is there is the best bet.
Although I now have another question. Looking at the server install there is
no JRun service
Can you show us the code? Also, why not use onRequestStart? onRequest
has side effects that can come back to haunt you. If you are just
setting request vars, I'd recommend onRequestStart.
On 5/23/06, Tony [EMAIL PROTECTED] wrote:
ray, et al.
im having a STRANGE Application.cfc issue.
im
Hello,
I was wondering if and how I could query multiple datasources,
essentially a simple join on two different datasources? I have tables
in Oracle and MySQL databases and I want to query info from both for
a return set.
Thanks,
- Charles
probably not the sort of solution you're looking for, but i think
you're going to have to use a Query of Queries to accomplish that.
On 5/23/06, Charles E. Heizer [EMAIL PROTECTED] wrote:
Hello,
I was wondering if and how I could query multiple datasources,
essentially a simple join on two
Jon Block wrote:
SYMPTOM
-
Web browser seems to lose connection with the web server when making CFM
requests that take a long time (over 10 seconds) to process.
FIREFOX SIDE EFFECT
When the apparent connection with the web server breaks, Firefox prompts
me
You can query multiple databases as long as you have permissions on both. In
mySQL you prepend the table name with the database name like so:
SELECT d1_t1.listing_id, d1_t1.listing_mlsnumber,d1_t1.listing_type,
d2_t4.pLisPric
FROM databasename_01.table_01 d1_t1
INNER JOIN databasename_02.table_04
ill try tonight, and let you know.
the code is on a template at home... ill eff with it tonight, and hit
ya'up if it still is making me crazy :)
tw
On 5/23/06, Raymond Camden [EMAIL PROTECTED] wrote:
Can you show us the code? Also, why not use onRequestStart? onRequest
has side effects that
You can query multiple databases as long as you have permissions on both. In
mySQL you prepend the table name with the database name like so:
SELECT d1_t1.listing_id, d1_t1.listing_mlsnumber,d1_t1.listing_type,
d2_t4.pLisPric
FROM databasename_01.table_01 d1_t1
INNER JOIN
But, Charles wants to query multiple DATASOURCES, not just multiple
databases. I think the best way for you to get this done Charles is with
a QofQ, as Charlie G. suggested. You'll need to make each of your
queries and then use a query to join the recordsets.
--Ferg
Andy Matthews wrote:
You
It is just a matter of setting up a dblink in Oracle or if it is just
schemas in the same database then it can be as simple as just user
permissions. I seem to recall reading once a way to select data out of
another type of database from within MySQL but I might be remembering
something
Thanks,
I was afraid that I was going to have to do a QofQ. I guess I'll
start work on that solution.
Thanks again,
- Charles
On May 23, 2006, at 10:47 AM, Ken Ferguson wrote:
But, Charles wants to query multiple DATASOURCES, not just multiple
databases. I think the best way for you to
I was wondering if and how I could query multiple
datasources, essentially a simple join on two different
datasources? I have tables in Oracle and MySQL databases and
I want to query info from both for a return set.
The easiest way to do this is to use CF's query-of-query functionality,
hello. from what i can figure, i think that this bit of code i've posted below,
excluding the extended part about invalid email, could be entirely duplicated
by looping through an array... right?
cfif isdefined(FORM.op) !--- FORM HAS BEEN SUBMITTED ---
cfset variables.emptymsg = /h1ul
Possibly. With my limited interpretation of what you're doing
cfset FriendlyFormFieldNames = First Name,Last
Name,Password,Email...
cfset variables.resub = 0
cfset fieldCount = 0
cfloop collection=#form# item=field
cfset fieldCount = fieldCount + 1
cfif form[field] eq
cfset
Can anybody point out avenues of investigation on why a simple query to an
access database located on a network fileserver takes 1/10 of a second to run
on one CF server and ~20 seconds to run on a second?
Query:
cfquery datasource=ISINV_TEST name=Testing debug=yes result=metrics
SELECT
I have used the cfdocument tag to produce a print friendly document. I am
using an image link to call the document. The issue is the pdf is not only out
of alignment, but the text an images are all over the place. What do I need to
do to correct the output.
The CF Code:
cfif
Possibly. With my limited interpretation of what you're doing
cfset FriendlyFormFieldNames = First Name,Last
Name,Password,Email... cfset variables.resub = 0 cfset fieldCount =
0
cfloop collection=#form# item=field
cfset fieldCount = fieldCount + 1
cfif form[field] eq
cfset
Hello All,
I'm trying to do a simple upload of a text file but I'm getting:
The MIME type of the uploaded file message/rfc822 was not accepted by
the server.
Only files of type *.txt can be uploaded.
Verify that you are uploading a file of the appropriate type.
plz help :)
here is
Try changing the DSN definition to use the IP address of the database
machine instead of the UNC name.
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241251
Archives:
Make sure you have: enctype=multipart/form-data in your HTML form.
M!ke
-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 2:33 PM
To: CF-Talk
Subject: Upload txt file
Hello All,
I'm trying to do a simple upload of a text file but I'm getting:
Looks like you've got your accept attribute's value set incorrectly.
http://www.techfeed.net/cfQuickDocs/?cffileh
Instead of *.txt, it should be text/plain.
!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530
I've tried both..same result
accept = text/plain,text/richtext
And I have
enctype=multipart/form-data
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 12:45 PM
To: CF-Talk
Subject: RE: Upload txt file
Looks like you've got your accept
Ian,
One possibility is name resolution. The server is nasserver-01. The
question is, how does the web server find this server? Are you using AD
or Wins or host, or DNS or what? A lengthy but predictable delay probably
means that it is trying one method of finding the server (like checking
Well, you could add the MIME type that the server is telling you that it
sees:
accept = message/rfc822
Steve The Boss Brownlee
http://www.orbwave.com/cfjboss
-Original Message-
From: Tim Do [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 4:02 PM
To: CF-Talk
Subject: RE: Upload
how about accept=.txt
no *
tw
On 5/23/06, Tim Do [EMAIL PROTECTED] wrote:
I've tried both..same result
accept = text/plain,text/richtext
And I have
enctype=multipart/form-data
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 12:45
Mime types are totally not standard. I would avoid using mime types for
validation. Some could be correct, some could be octet streams. It's just
not standardized.
Instead, do not use a mime type during upload. Upload the file and then
check the server extension of the uploaded file. Might not
i cant get my mask to work right
the value i pull in is say 5:00 PM
but it flags it as an error, though i want it to be ok...
i have tried
mask=h:mm aa
mask=h:mm AA
mask=h:mm tt
cfinput type=text
name=fStartTime
label=Start Time
message=Enter time as h:mm AM/PM mask=h:mm
validate=time
Ian,
One possibility is name resolution. The server is nasserver-01. The question
is, how does the web server find this server? Are you using AD or Wins or
host, or DNS or what? A lengthy but predictable delay probably means that it
is trying one method of finding the server (like checking
What version of CF are you running?
I was thinking I remembered there being some buginess in the older
versions of flash form masks... but that may have only applied to
cfgrids in flash forms.
~Brad
-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23,
cf 7
On 5/23/06, Brad Wood [EMAIL PROTECTED] wrote:
What version of CF are you running?
I was thinking I remembered there being some buginess in the older
versions of flash form masks... but that may have only applied to
cfgrids in flash forms.
~Brad
-Original Message-
From:
With flash cfgrids, the mask stuff didn't work right if you didn't have
the coldfusion 7.01 updater installed.
I don't know if it affected cfinputs.
~Brad
-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 3:38 PM
To: CF-Talk
Subject: Re: cfinput
Hi guys,
Is it possible to update the cfloginuser name=#variable#, while still
logged in?
Eg. I permit the user to update their username/password, but when they
proceed to the forum (ray's forum) an error is generated because of a
wrong username. Basically the username required for the forum is
Is it possible to update the cfloginuser name=#variable#,
while still logged in?
No, I don't believe that this is possible. Running the CFLOGINUSER tag is
the action that logs someone in, and there is no direct way to access the
values created by CFLOGINUSER.
However, you should be able to
i can't get it to work. i have amended my function as follows...
cffunction access=public name=changePassword output=false
displayname=Insert Security Data hint=This method edits existing user
cfargument required=true name=profileID type=numeric/
cfargument required=true
i can't get it to work. i have amended my function as follows...
...
cflogin
cfloginuser name=#arguments.username#
password=#arguments.password# roles=#variables.roles#
/cflogin
The CFLOGIN tag will only run for users that haven't already logged in. If
you want
aha - cflogout was what i was missing. thanks dave.
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241268
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription:
All,
I've got a Web based admin tool that publishes articles. Regardless
of the length of the story, I'm trying to cut the story off the text at a
certain length and display the next page hyperlink. The code below does
this ok.
However, I want to detect the end of the paragraph so the reader
Do a Find() or REFind() for the next occurrence of p after character
1900 (or whatever length) and go from there.
On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
All,
I've got a Web based admin tool that publishes articles. Regardless
of the length of the story, I'm trying to cut the
Google A. Breakdown:
Yeah it's great if your looking for savings against going the route of
Omniture or Webtrends but it's not as intuitive, well it is in some sence,
it can tell me the version of flash someon it running, Nice!!!. More setup
work on your campaigns ahead of time is the worst part
I'm not sure all the syntax is perfect, but something like...
!--- Desired amount of story to show ---
CFSET first_length = 1900
!--- Next paragraph after this point ---
CFSET NextParagraph = Find(CHR(13),pressrel_story.pre_mainpress)
!--- Show the story up to this point ---
IIS is a webserver. JRun is a J2EE server to which the webserver
connects - the J2EE server is responsible for running CF. You have
done a standalone install of CF, which is actually using JRun in a
hidden fashion.
To move up to the full-blown JRun, you need to reinstall. However, you
can already
thanks!
I will definately check it out
~Dave the disruptor~
From: Nick Tong - TalkWebSolutions.co.uk [EMAIL PROTECTED]
Sent: Monday, May 22, 2006 4:53 AM
To: CF-Talk cf-talk@houseoffusion.com
Subject: Re: model-glue on shared servers
I have a 'MGR'
83 matches
Mail list logo