Re: would you consider this a bug, CF8

2009-04-02 Thread James Holmes

What about the start of the month? What about the second Wednesday of
each month?

This is just something for which you need to write your own code.

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



2009/4/3 Ras Tafari :
>
> but the end of months is a KNOWN thing, calculated out forever, look
> at rainmain.
> with that known constant of dates, it would be easy to code it such
> that anything
> end of month that asks for a incrementer of "m" would be easy to assume that.
>
> so, with that, id say a new incrementer of precise calendar month would be 
> best.
>
> tw
>
> On Thu, Apr 2, 2009 at 2:50 PM, Jason Fisher  wrote:
>>
>> Definitely not odd, when you think through all the possible use cases. If I 
>> build an auto-incrementer that takes in any start date, then I may have a 
>> July 28 start, which would indicate that 1 month out must be August 28 and 
>> one month back must be June 28.  Given that scenario, how would the 
>> underlying code ever be expected to jump from that to assume that one month 
>> forward from February 28 would need to be March 31?  Yes, they're both the 
>> end of month, but 3/31 is not really one month out from 2/28, while 6/28 is 
>> always precisely one month back from 7/28.  If what you always want is "give 
>> me the end of the next month", then that needs to be a special case, as 
>> indicated in several of the solutions presented on this thread to date.
>>
>> My 2c
>>
>>
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321266
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Ras Tafari

but the end of months is a KNOWN thing, calculated out forever, look
at rainmain.
with that known constant of dates, it would be easy to code it such
that anything
end of month that asks for a incrementer of "m" would be easy to assume that.

so, with that, id say a new incrementer of precise calendar month would be best.

tw

On Thu, Apr 2, 2009 at 2:50 PM, Jason Fisher  wrote:
>
> Definitely not odd, when you think through all the possible use cases. If I 
> build an auto-incrementer that takes in any start date, then I may have a 
> July 28 start, which would indicate that 1 month out must be August 28 and 
> one month back must be June 28.  Given that scenario, how would the 
> underlying code ever be expected to jump from that to assume that one month 
> forward from February 28 would need to be March 31?  Yes, they're both the 
> end of month, but 3/31 is not really one month out from 2/28, while 6/28 is 
> always precisely one month back from 7/28.  If what you always want is "give 
> me the end of the next month", then that needs to be a special case, as 
> indicated in several of the solutions presented on this thread to date.
>
> My 2c
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321265
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Button to support both IE and Firefox

2009-04-02 Thread Don L

Peter,

Amongst trying out your code I realized the target site no longer available.  I 
appreciate it very much though.

Don
> >two things I can see  ...
> >Should   width=   not be   width:   ?
> 
> Yes, since inside the style="..." attribute you are using CSS, and CSS 
> does not use = to delimit properties and values.
> 
> 
> 
> >Does onclick need the semicolon  ;   ?
> 
> Makes no difference. Again, inside onclick you are using JS, which 
> generally accepts the command terminator (semi-colon) to be skipped 
> when it is not necessary.
> 
> 
> 
> > Try adding a 'return false' to the onclick.
> 
> The purpose of 'return false' is to cancel whatever default event was 
> occurring:
 
> - if a link was clicked then the browser will not follow the href
 
> - if a form was submitted this action will be cancelled
 
> - if an input value was changed, the value will be reverted
> etc.
> 
> Since this is a generic button, it has no default event, so returning 
> false has nothing to prevent from occuring. 


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321264
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Dynamic Renaming of uploaded file

2009-04-02 Thread Fawzi Amadu

Hello,
I am trying to dynamically rename files that I am loading to my server. I have 
found this piece of instructional code by Christian Cantrell, but it only works 
for gif files. Is there a way to make it work for any type of file? And if not 
what is my alternative?

Here is his code:




TIA



~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321263
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: PDF generation 4x slower in CF8?

2009-04-02 Thread Jordan Roher

No one else encountered this? Really?

The solution I came up with was to send PDF processing to another server 
running CF7. That server processes the CFDocument tag and sends back the file. 
Here's the custom tag I came up with to hand off and receive the data.




// Constants
null = "";  dot = ".";  
slash = "/";
backslash = "\";semicolon = ";";
dash = "-";
star = "*"; space = " ";
all = "all";
one = "one";comma = ",";
tab = chr(9);
newline = chr(13);  newline2 = chr(10); 
amp = "&";

// Parameter collection and processing
universalParameters = "
document
,   timeout
,   tempFolder
,   server
";

// Remove newlines, spaces and tab characters
universalParameters = REReplace(universalParameters, 
"[\s]", null, all);

// Populate variables with null
for(i = 1; i LTE ListLen(universalParameters); i = i + 
1) {
if(NOT StructKeyExists(attributes, 
ListGetAt(universalParameters, i))) {
StructInsert(attributes, 
ListGetAt(universalParameters, i), null);
}
}

// General error checking
errorMessage = null;

if(attributes.document IS null) {
errorMessage = "Document to generate not 
specified";
}

if(attributes.timeout IS null OR NOT 
IsNumeric(attributes.timeout)) {
attributes.timeout = 60;
}

if(attributes.tempFolder IS null AND 
IsDefined("caller.email_attach_path")) {
attributes.tempFolder = 
caller.email_attach_path;
}
if(NOT DirectoryExists(attributes.tempFolder)) {
errorMessage = "Temporary folder not 
accessible";
}

if(attributes.server IS null) {
errorMessage = "Other server not specified";
}





















































 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321262
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Simple text to image?

2009-04-02 Thread Raymond Camden

You also want to check out imageUtils over at RIAForge. While CF8
makes it easy to draw text on a image, this CFC makes it easy to
position and wrap text on an image.


On Thu, Apr 2, 2009 at 10:42 AM, Paul Kukiel  wrote:
>
> Here is a demo that writes text onto images.  Start with a base image
> ( or create new empty one ) and you can write text to it.
>
> http://tutorial4.learncf.com/
>
> Paul.
>
-- 
===
Raymond Camden, ColdFusion Jedi Master

Email: r...@camdenfamily.com
Blog  : www.coldfusionjedi.com
AOL IM : cfjedimaster

Keep up to date with the community: http://www.coldfusionbloggers.or

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321261
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Query Retries

2009-04-02 Thread brad

Just speaking for myself here-- I never retry a query.  Most errors I
tend to get with a database call is due to something like a column not
existing or some data truncation error that is going to happen no matter
how many times I try it.

The only times I have ever really seen SQL Server throw an error that is
recoverable is when it is trying to to connect to some remote linked
server via ODBC and the connection has timed out.  In those specific
instances, the query always works the second time.

Why don't you tell us what kind of errors you usually have thrown from
the database.

~Brad

 Original Message 
Subject: Query Retries
From: Byte Me 
Date: Thu, April 02, 2009 3:46 pm
To: cf-talk 


Is there a rule of thumb on how many times a query should be retried?
I'm using nested cftry/catch and will retry a maximum of 4 times. Each
retry is delayed by a random number of milliseconds. Thanks for any
insight. 



~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321260
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Looking for a Fusebox 4+ or 5+ eCommerce solution

2009-04-02 Thread Mary Jo Sminkey

> I am on the hunt for a CF Fusebox 4+ or 5+  eCommerce solution, and 
> can't find any -- other than the demos at Fusebox.org.  
> 
> Has no one developed such a thing?  I would build one myself, but I 
> just don't know how I would find the time to do so.


CFWebstore is a somewhat modified FB3 app, so it's closer than most of what is 
out there. I'd been looking at migrating it over to FB 5.5 which should at 
least be considerably easier than converting it would have been on the earlier 
4/5 releases, just have a lot of other more important things to work on at the 
moment (the vast majority of my users really couldn't care less about the FB 
version...and many would prefer I don't change the code at all. ;-) If moving 
it to FB 5.5 might be something you would consider assisting with, we could 
probably work some kind of trade out. It certainly would be a lot less work 
than writing something from scratch, depending on the level of functionality 
you needed. 

---
Mary Jo Sminkey
Author of CFWebstore, ColdFusion Ecommerce
http://www.cfwebstore.com



~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321259
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: .net cookies transfer to CF Session Values?

2009-04-02 Thread James Holmes

So, basically, the username and password is written out in plain text
in the cookie for anyone to steal. Great security.

Anyway, don't just trust the existence of the cookie - you need to log
the user in to your site with the username and password. Otherwise, I
can just manipulate my browser to set a cookie called
"mysite_loggedin" and get logged in to your site.

Read the value of the cookie from the COOKIE scope and send the
user|pass|pin to your code to log them in. Then, hope that no-one
executes a successful XSS attack on your users. Then, fire the .NET
developer.

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

2009/4/2 Les Mizzell :
>
> I've got a client that's decided to try and use a .net login system
> written for one of their sites for *all* their sites, including the huge
> CF site I maintain for them.
>
> Looking at the .net code for this thing *really* reminds me why I like
> Coldfusion so much - sheesh, 15 or so files and a couple thousand lines
> of code to log somebody in?
>
> Anyway, it all comes down to the below if the login is successful:
> 
> Response.Cookies["mysite_loggedin"].Value = user+"|"+pass+"|"+pin;
> Response.Cookies["mysite_loggedin"].Expires = DateTime.Now.AddDays(14);
>
> HttpCookie aCookie = new HttpCookie("mysite_loggedin");
> aCookie.Value = user+"|"+pass+"|"+pin;
> aCookie.Expires = DateTime.Now.AddDays(14);
>
> Response.Cookies.Add(aCookie);
> 
>
> I'd like to be able to transfer those cookie values over to CF Session
> values, which thusly would have them counted as "logged in" on the CF
> Admin section of the CF site.
>
> I'm not .net literate - but could somebody point me in the right
> direction to be able to swap the .net cookes/values for CF session
> values? 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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321258
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Query Retries

2009-04-02 Thread Alan Rother

I wouldn't say there is a rule of thumb for this, if your Query is failing
more than 4 times, and it happens often enough for you to need to think
about this, then I think you need to stop look at how to deal with and look
for ways to fix it.
Why is it that your running into this problem? I can't imagine a production
system where it would be acceptable to have that level of query failure.

=]

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321257
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Query Retries

2009-04-02 Thread Ben Nadel

Why are your queries failing?

On Thu, Apr 2, 2009 at 4:46 PM, Byte Me  wrote:

>
> Is there a rule of thumb on how many times a query should be retried? I'm
> using nested cftry/catch and will retry a maximum of 4 times. Each retry is
> delayed by a random number of milliseconds. Thanks for any insight.
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321256
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Jason Fisher

Actually, I had forgotten that my local dev is probably still IIS 5, where 
this works perfectly.  Reproducing the Custom 404 on IIS 6, however, works 
splendidly *except* that it doesn't pick up the FORM scope at all.  Now, 
that's odd.
 


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321255
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Query Retries

2009-04-02 Thread Byte Me

Is there a rule of thumb on how many times a query should be retried? I'm using 
nested cftry/catch and will retry a maximum of 4 times. Each retry is delayed 
by a random number of milliseconds. Thanks for any insight. 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321254
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan

Are you on IIS 7 perchance?

On Thu, Apr 2, 2009 at 12:34 PM, Jason Fisher  wrote:

>
> Dunno about the raw Java handler, but it appears that a custom CF 404
> handler does have full access to URL, FORM, CGI, etc.
>
> I threw together a CF template with this body and called it dsp.404.cfm:
>
> I am a 404 handler
>
> 
>
>
>
> 
> 
> 
>
> 
>
> 
>
> Then in IIS, I set the custom Error for 404 to Message Type: URL, URL:
> /dsp.404.cfm and then when you post that little form, the form vars show in
> the first dump on the custom 404 page.
>
>
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321253
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan

Yup. Thanks Ben. My basic goal is to keep every URL that the user sees
totally concise and beautiful. But I actually explored that. Good
suggestion.

On Thu, Apr 2, 2009 at 12:29 PM, Ben Nadel  wrote:

>
> Crazy suggestion, but if you convert the form method from POST to GET, the
> 404 handler in IIS will pass the old query string in the new query string:
>
> CGI.query_string ---> 404;http.?old_query_string
>
>
> On Thu, Apr 2, 2009 at 2:27 PM, David McGuigan  >wrote:
>
> >
> > Thanks for the suggestion. I do realize that ISAPI rewriting is an
> > alternative, but my entire application controller is just a CF-based,
> > dynamic translation and coordination of URLs to content, so I want to
> > handle
> > that with CFML logic, and not have to maintain it extraneously.
> > Any Java fiends out there that can give me some Java methods to try to
> > output the raw HTTP signature handed down to ColdFusion?
> >
> >
> > On Thu, Apr 2, 2009 at 12:22 PM, Ben Nadel  wrote:
> >
> > >
> > > Ooooh, you're using 404 handling. Gotcha. Yeah, I use that on my site a
> > > lot.
> > > I am not sure that I have ever submitted a FORM to it.
> > >
> > > You might want to look into something like ISAPI_REWRITE which I think
> > > changes the URL in a more natural way.
> > >
> > >
> > > On Thu, Apr 2, 2009 at 2:14 PM, David McGuigan <
> davidmcgui...@gmail.com
> > > >wrote:
> > >
> > > >
> > > > NP Ben, I was just confused. So you actually don't have to configure
> > any
> > > > URL
> > > > rewriting with IIS 6+. You just grab the site, update the 404 custom
> > > error
> > > > handler to use a URL ( Like "/index.cfm" ), and then change the
> feature
> > > > settings mode to "custom errors". It'll then pass everything through
> to
> > > the
> > > > CF template you specify. From there on I'm just dumping things on
> that
> > > > template, and neither FORM, or the result of GetHTTPRequestData are
> > > > populated,
> > > > which is the real issue.
> > > >
> > > > I'm guessing it's just that CF isn't parsing the (potentially new)
> IIS
> > 7
> > > > format of custom error passthrough correctly, similar to how PHP
> > > struggles
> > > > with it as described here: http://bugs.php.net/bug.php?id=38094
> > > > I've just filed the bug with Adobe. We'll see what they say, maybe
> > > there's
> > > > some workaround.
> > > >
> > > >
> > > >
> > > > 2009/4/2 Jason Fisher 
> > > >
> > > > >
> > > > > At its most basic, GET will populate the URL scope, POST will
> > populate
> > > > the
> > > > > FORM scope.  Is there a reason you can't look to the FORM scope
> > during
> > > > > processing?
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321252
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan

Sweet!

HttpServlet's HttpServletRequest object has a ton of methods I can dump!

I've never actually called servlet methods from within CFML. Anyone got a
snippet I can borrow?



On Thu, Apr 2, 2009 at 12:27 PM, David McGuigan wrote:

> Thanks for the suggestion. I do realize that ISAPI rewriting is an
> alternative, but my entire application controller is just a CF-based,
> dynamic translation and coordination of URLs to content, so I want to handle
> that with CFML logic, and not have to maintain it extraneously.
> Any Java fiends out there that can give me some Java methods to try to
> output the raw HTTP signature handed down to ColdFusion?
>
>
>
> On Thu, Apr 2, 2009 at 12:22 PM, Ben Nadel  wrote:
>
>>
>> Ooooh, you're using 404 handling. Gotcha. Yeah, I use that on my site a
>> lot.
>> I am not sure that I have ever submitted a FORM to it.
>>
>> You might want to look into something like ISAPI_REWRITE which I think
>> changes the URL in a more natural way.
>>
>>
>> On Thu, Apr 2, 2009 at 2:14 PM, David McGuigan > >wrote:
>>
>> >
>> > NP Ben, I was just confused. So you actually don't have to configure any
>> > URL
>> > rewriting with IIS 6+. You just grab the site, update the 404 custom
>> error
>> > handler to use a URL ( Like "/index.cfm" ), and then change the feature
>> > settings mode to "custom errors". It'll then pass everything through to
>> the
>> > CF template you specify. From there on I'm just dumping things on that
>> > template, and neither FORM, or the result of GetHTTPRequestData are
>> > populated,
>> > which is the real issue.
>> >
>> > I'm guessing it's just that CF isn't parsing the (potentially new) IIS 7
>> > format of custom error passthrough correctly, similar to how PHP
>> struggles
>> > with it as described here: http://bugs.php.net/bug.php?id=38094
>> > I've just filed the bug with Adobe. We'll see what they say, maybe
>> there's
>> > some workaround.
>> >
>> >
>> >
>> > 2009/4/2 Jason Fisher 
>> >
>> > >
>> > > At its most basic, GET will populate the URL scope, POST will populate
>> > the
>> > > FORM scope.  Is there a reason you can't look to the FORM scope during
>> > > processing?
>> > >
>> > >
>> >
>> >
>>
>> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321251
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Jason Fisher

Dunno about the raw Java handler, but it appears that a custom CF 404 
handler does have full access to URL, FORM, CGI, etc.

I threw together a CF template with this body and called it dsp.404.cfm:

I am a 404 handler













Then in IIS, I set the custom Error for 404 to Message Type: URL, URL: 
/dsp.404.cfm and then when you post that little form, the form vars show in 
the first dump on the custom 404 page. 
 


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321250
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Ben Nadel

Crazy suggestion, but if you convert the form method from POST to GET, the
404 handler in IIS will pass the old query string in the new query string:

CGI.query_string ---> 404;http.?old_query_string


On Thu, Apr 2, 2009 at 2:27 PM, David McGuigan wrote:

>
> Thanks for the suggestion. I do realize that ISAPI rewriting is an
> alternative, but my entire application controller is just a CF-based,
> dynamic translation and coordination of URLs to content, so I want to
> handle
> that with CFML logic, and not have to maintain it extraneously.
> Any Java fiends out there that can give me some Java methods to try to
> output the raw HTTP signature handed down to ColdFusion?
>
>
> On Thu, Apr 2, 2009 at 12:22 PM, Ben Nadel  wrote:
>
> >
> > Ooooh, you're using 404 handling. Gotcha. Yeah, I use that on my site a
> > lot.
> > I am not sure that I have ever submitted a FORM to it.
> >
> > You might want to look into something like ISAPI_REWRITE which I think
> > changes the URL in a more natural way.
> >
> >
> > On Thu, Apr 2, 2009 at 2:14 PM, David McGuigan  > >wrote:
> >
> > >
> > > NP Ben, I was just confused. So you actually don't have to configure
> any
> > > URL
> > > rewriting with IIS 6+. You just grab the site, update the 404 custom
> > error
> > > handler to use a URL ( Like "/index.cfm" ), and then change the feature
> > > settings mode to "custom errors". It'll then pass everything through to
> > the
> > > CF template you specify. From there on I'm just dumping things on that
> > > template, and neither FORM, or the result of GetHTTPRequestData are
> > > populated,
> > > which is the real issue.
> > >
> > > I'm guessing it's just that CF isn't parsing the (potentially new) IIS
> 7
> > > format of custom error passthrough correctly, similar to how PHP
> > struggles
> > > with it as described here: http://bugs.php.net/bug.php?id=38094
> > > I've just filed the bug with Adobe. We'll see what they say, maybe
> > there's
> > > some workaround.
> > >
> > >
> > >
> > > 2009/4/2 Jason Fisher 
> > >
> > > >
> > > > At its most basic, GET will populate the URL scope, POST will
> populate
> > > the
> > > > FORM scope.  Is there a reason you can't look to the FORM scope
> during
> > > > processing?
> > > >
> > > >
> > >
> > >
> >
> >
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321249
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan

Thanks for the suggestion. I do realize that ISAPI rewriting is an
alternative, but my entire application controller is just a CF-based,
dynamic translation and coordination of URLs to content, so I want to handle
that with CFML logic, and not have to maintain it extraneously.
Any Java fiends out there that can give me some Java methods to try to
output the raw HTTP signature handed down to ColdFusion?


On Thu, Apr 2, 2009 at 12:22 PM, Ben Nadel  wrote:

>
> Ooooh, you're using 404 handling. Gotcha. Yeah, I use that on my site a
> lot.
> I am not sure that I have ever submitted a FORM to it.
>
> You might want to look into something like ISAPI_REWRITE which I think
> changes the URL in a more natural way.
>
>
> On Thu, Apr 2, 2009 at 2:14 PM, David McGuigan  >wrote:
>
> >
> > NP Ben, I was just confused. So you actually don't have to configure any
> > URL
> > rewriting with IIS 6+. You just grab the site, update the 404 custom
> error
> > handler to use a URL ( Like "/index.cfm" ), and then change the feature
> > settings mode to "custom errors". It'll then pass everything through to
> the
> > CF template you specify. From there on I'm just dumping things on that
> > template, and neither FORM, or the result of GetHTTPRequestData are
> > populated,
> > which is the real issue.
> >
> > I'm guessing it's just that CF isn't parsing the (potentially new) IIS 7
> > format of custom error passthrough correctly, similar to how PHP
> struggles
> > with it as described here: http://bugs.php.net/bug.php?id=38094
> > I've just filed the bug with Adobe. We'll see what they say, maybe
> there's
> > some workaround.
> >
> >
> >
> > 2009/4/2 Jason Fisher 
> >
> > >
> > > At its most basic, GET will populate the URL scope, POST will populate
> > the
> > > FORM scope.  Is there a reason you can't look to the FORM scope during
> > > processing?
> > >
> > >
> >
> >
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321248
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Ben Nadel

Ooooh, you're using 404 handling. Gotcha. Yeah, I use that on my site a lot.
I am not sure that I have ever submitted a FORM to it.

You might want to look into something like ISAPI_REWRITE which I think
changes the URL in a more natural way.


On Thu, Apr 2, 2009 at 2:14 PM, David McGuigan wrote:

>
> NP Ben, I was just confused. So you actually don't have to configure any
> URL
> rewriting with IIS 6+. You just grab the site, update the 404 custom error
> handler to use a URL ( Like "/index.cfm" ), and then change the feature
> settings mode to "custom errors". It'll then pass everything through to the
> CF template you specify. From there on I'm just dumping things on that
> template, and neither FORM, or the result of GetHTTPRequestData are
> populated,
> which is the real issue.
>
> I'm guessing it's just that CF isn't parsing the (potentially new) IIS 7
> format of custom error passthrough correctly, similar to how PHP struggles
> with it as described here: http://bugs.php.net/bug.php?id=38094
> I've just filed the bug with Adobe. We'll see what they say, maybe there's
> some workaround.
>
>
>
> 2009/4/2 Jason Fisher 
>
> >
> > At its most basic, GET will populate the URL scope, POST will populate
> the
> > FORM scope.  Is there a reason you can't look to the FORM scope during
> > processing?
> >
> >
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321247
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan

NP Ben, I was just confused. So you actually don't have to configure any URL
rewriting with IIS 6+. You just grab the site, update the 404 custom error
handler to use a URL ( Like "/index.cfm" ), and then change the feature
settings mode to "custom errors". It'll then pass everything through to the
CF template you specify. From there on I'm just dumping things on that
template, and neither FORM, or the result of GetHTTPRequestData are populated,
which is the real issue.

I'm guessing it's just that CF isn't parsing the (potentially new) IIS 7
format of custom error passthrough correctly, similar to how PHP struggles
with it as described here: http://bugs.php.net/bug.php?id=38094
I've just filed the bug with Adobe. We'll see what they say, maybe there's
some workaround.



2009/4/2 Jason Fisher 

>
> At its most basic, GET will populate the URL scope, POST will populate the
> FORM scope.  Is there a reason you can't look to the FORM scope during
> processing?
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321246
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Jason Fisher

At its most basic, GET will populate the URL scope, POST will populate the FORM 
scope.  Is there a reason you can't look to the FORM scope during processing? 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321245
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan

But that method is exactly what I was looking for. And it seems like it's a
bug, because the content key provided by that method is empty. Dangit.
I guess the current limitation is you have to post to literal files with CF
8 and IIS 7.


On Thu, Apr 2, 2009 at 11:50 AM, Ben Nadel  wrote:

>
> You can try looking at GetHTTPRequestData().
>
> Not sure if that has what you need (and I think it changes the way it
> functions if FILE data is submitted with FORM). I think you'd be better off
> trying to fix whatever the underlying problem is rather than work around
> it.
> ... I'm sure you're trying to do that already :) I was just saying
>
> -Ben
>
>
> On Thu, Apr 2, 2009 at 1:37 PM, David McGuigan  >wrote:
>
> >
> > Using IIS7 to pass fake URLs throught to ColdFusion for parsing.
> > Ex: http://www.whatev.com/benForta/favoriteFoods/
> >
> > Note: There is no benForta nor favoriteFoods directory.
> >
> > The URL scope works perfectly but when I submit a form using POST the
> scope
> > isn't populated.
> >
> > CGI.CONTENT_TYPE knows it's a application/x-www-form-urlencoded request,
> > but
> > I can't get to those variables.
> >
> > Is there some lower-level way to access the POST data ( I'm assuming URL
> > and
> > FORM just parse from some HTTP handover collection or string )??
> >
> > Thanks!
> >
> >
> >
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321244
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Ben Nadel

David,

Sorry, I didn't mean with your underlying code :) I mean that maybe there is
something wrong with the way the URL rewrite is configured. I don't know
anything about it, but it seems crazy that the product wouldn't be able to
pass off FORM scope variables properly.

I figured someone else would comment on it with a better answer.


On Thu, Apr 2, 2009 at 1:58 PM, David McGuigan wrote:

>
> What do you mean my underlying problem?
> It just seems like ColdFusion isn't set up to correctly interpret posts
> when
> fed from IIS 7's custom error handling mechanism.
>
> There's nothing wrong with my code.
>
>
> On Thu, Apr 2, 2009 at 11:50 AM, Ben Nadel  wrote:
>
> >
> > You can try looking at GetHTTPRequestData().
> >
> > Not sure if that has what you need (and I think it changes the way it
> > functions if FILE data is submitted with FORM). I think you'd be better
> off
> > trying to fix whatever the underlying problem is rather than work around
> > it.
> > ... I'm sure you're trying to do that already :) I was just saying
> >
> > -Ben
> >
> >
> > On Thu, Apr 2, 2009 at 1:37 PM, David McGuigan  > >wrote:
> >
> > >
> > > Using IIS7 to pass fake URLs throught to ColdFusion for parsing.
> > > Ex: http://www.whatev.com/benForta/favoriteFoods/
> > >
> > > Note: There is no benForta nor favoriteFoods directory.
> > >
> > > The URL scope works perfectly but when I submit a form using POST the
> > scope
> > > isn't populated.
> > >
> > > CGI.CONTENT_TYPE knows it's a application/x-www-form-urlencoded
> request,
> > > but
> > > I can't get to those variables.
> > >
> > > Is there some lower-level way to access the POST data ( I'm assuming
> URL
> > > and
> > > FORM just parse from some HTTP handover collection or string )??
> > >
> > > Thanks!
> > >
> > >
> > >
> >
> >
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321243
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan

What do you mean my underlying problem?
It just seems like ColdFusion isn't set up to correctly interpret posts when
fed from IIS 7's custom error handling mechanism.

There's nothing wrong with my code.


On Thu, Apr 2, 2009 at 11:50 AM, Ben Nadel  wrote:

>
> You can try looking at GetHTTPRequestData().
>
> Not sure if that has what you need (and I think it changes the way it
> functions if FILE data is submitted with FORM). I think you'd be better off
> trying to fix whatever the underlying problem is rather than work around
> it.
> ... I'm sure you're trying to do that already :) I was just saying
>
> -Ben
>
>
> On Thu, Apr 2, 2009 at 1:37 PM, David McGuigan  >wrote:
>
> >
> > Using IIS7 to pass fake URLs throught to ColdFusion for parsing.
> > Ex: http://www.whatev.com/benForta/favoriteFoods/
> >
> > Note: There is no benForta nor favoriteFoods directory.
> >
> > The URL scope works perfectly but when I submit a form using POST the
> scope
> > isn't populated.
> >
> > CGI.CONTENT_TYPE knows it's a application/x-www-form-urlencoded request,
> > but
> > I can't get to those variables.
> >
> > Is there some lower-level way to access the POST data ( I'm assuming URL
> > and
> > FORM just parse from some HTTP handover collection or string )??
> >
> > Thanks!
> >
> >
> >
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321242
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Jason Fisher

Definitely not odd, when you think through all the possible use cases. If I 
build an auto-incrementer that takes in any start date, then I may have a July 
28 start, which would indicate that 1 month out must be August 28 and one month 
back must be June 28.  Given that scenario, how would the underlying code ever 
be expected to jump from that to assume that one month forward from February 28 
would need to be March 31?  Yes, they're both the end of month, but 3/31 is not 
really one month out from 2/28, while 6/28 is always precisely one month back 
from 7/28.  If what you always want is "give me the end of the next month", 
then that needs to be a special case, as indicated in several of the solutions 
presented on this thread to date.

My 2c 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321241
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Ben Nadel

You can try looking at GetHTTPRequestData().

Not sure if that has what you need (and I think it changes the way it
functions if FILE data is submitted with FORM). I think you'd be better off
trying to fix whatever the underlying problem is rather than work around it.
... I'm sure you're trying to do that already :) I was just saying

-Ben


On Thu, Apr 2, 2009 at 1:37 PM, David McGuigan wrote:

>
> Using IIS7 to pass fake URLs throught to ColdFusion for parsing.
> Ex: http://www.whatev.com/benForta/favoriteFoods/
>
> Note: There is no benForta nor favoriteFoods directory.
>
> The URL scope works perfectly but when I submit a form using POST the scope
> isn't populated.
>
> CGI.CONTENT_TYPE knows it's a application/x-www-form-urlencoded request,
> but
> I can't get to those variables.
>
> Is there some lower-level way to access the POST data ( I'm assuming URL
> and
> FORM just parse from some HTTP handover collection or string )??
>
> Thanks!
>
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321240
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan

Using IIS7 to pass fake URLs throught to ColdFusion for parsing.
Ex: http://www.whatev.com/benForta/favoriteFoods/

Note: There is no benForta nor favoriteFoods directory.

The URL scope works perfectly but when I submit a form using POST the scope
isn't populated.

CGI.CONTENT_TYPE knows it's a application/x-www-form-urlencoded request, but
I can't get to those variables.

Is there some lower-level way to access the POST data ( I'm assuming URL and
FORM just parse from some HTTP handover collection or string )??

Thanks!


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321239
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Gerald Guido

If you have MSSQL server installed on the C drive the log files get pretty
big. Even under light use the SQL server on my dev box has racked up over
100 megs in log files.

I would also look and see if Disk Cleanup can buy you some space:

>>Accessories >>System Tools >> disk cleanup.

You can also look at having Windows compress old log files (if you need to
keep them) . It took a 20 meg log file down to 3 megs.

HTH,
G


On Thu, Apr 2, 2009 at 11:09 AM, Brian Yager wrote:

>
> I have a government machine that an idiot configured.  It has 11GB of space
> on the C drive and I constantly have to delete things to gain space.  I
> currently have 12MB of free space on C drive with all my apps on E drive.
>  When C drive fills up, you all know what happens to the app.  What in the
> CFusionMX7 can I delete to get more space?  In the db folder, there is a
> folder called slserver54  what is that?
>
> Thanks
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321238
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE:_Simple_text_to_image?

2009-04-02 Thread Chad Gray

This is not CF8, but we love using Efflare's gFont CFX.  Works great for things 
like barcodes if you have the font.

Efflare.com


> -Original Message-
> From: Don L [mailto:do...@yahoo.com]
> Sent: Thursday, April 02, 2009 12:25 PM
> To: cf-talk
> Subject: Simple text to image?
> 
> 
> Sorry I'm not totally keeping up on cf8 stuff... a quick browsing of the
> CFimage tag does not seem to indicate it can convert a simple text
> file/content into an image file.  Any tag/function with cf8 that is able
> to do this job?
> 
> Many thanks as usual.
> 
> Don
> Chunshen Li
> 
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321237
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: .net cookies transfer to CF Session Values?

2009-04-02 Thread Ras Tafari

write them to javascript cookie vars, then yank them outta there into
cf session variables

cfRas

On Thu, Apr 2, 2009 at 11:50 AM, Les Mizzell  wrote:
>
> I've got a client that's decided to try and use a .net login system
> written for one of their sites for *all* their sites, including the huge
> CF site I maintain for them.
>
> Looking at the .net code for this thing *really* reminds me why I like
> Coldfusion so much - sheesh, 15 or so files and a couple thousand lines
> of code to log somebody in?
>
> Anyway, it all comes down to the below if the login is successful:
> 
> Response.Cookies["mysite_loggedin"].Value = user+"|"+pass+"|"+pin;
> Response.Cookies["mysite_loggedin"].Expires = DateTime.Now.AddDays(14);
>
> HttpCookie aCookie = new HttpCookie("mysite_loggedin");
> aCookie.Value = user+"|"+pass+"|"+pin;
> aCookie.Expires = DateTime.Now.AddDays(14);
>
> Response.Cookies.Add(aCookie);
> 
>
> I'd like to be able to transfer those cookie values over to CF Session
> values, which thusly would have them counted as "logged in" on the CF
> Admin section of the CF site.
>
> I'm not .net literate - but could somebody point me in the right
> direction to be able to swap the .net cookes/values for CF session
> values? 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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321236
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Looking for a Fusebox 4+ or 5+ eCommerce solution

2009-04-02 Thread Michael David

Hi Folks!

I am on the hunt for a CF Fusebox 4+ or 5+  eCommerce solution, and can't find 
any -- other than the demos at Fusebox.org.  

Has no one developed such a thing?  I would build one myself, but I just don't 
know how I would find the time to do so.

Surely there must be something out there...

-- 
Cheers!
Michael David   

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321235
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CF8 linux not recognising CF mapping

2009-04-02 Thread Bert Dawson

I'm trying to port from CF7 on windows to CF8 on linux. Everything was going
fine, and was working, and then something happened and it went wierd: things
which were previously working weren't.
The guys configuring the linux box can't remember what they might have done
as this happened a while ago.

When I try to include a file via a CF mapping, it not only fails to find the
file, but it doesn't throw a "file not found exception", and just includes
the index.cfm again, leading to an infinite loop.

Any ideas why it isn't picking up the CF mapping?
(The failure to throw an error, and to re-include the index.cfm is also odd,
but that appears to happen on my mac CF8 when the CF mapping doesn't exist,
so i'm not so concerned about that. I just need to get it to honour the CF
mapping)

Cheers
Bert


Here's my mapping, which points to the webroot:
/testmapping1
 /home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-something-/

The contents of the webroot:
[bdaw...@cfusion-tng -wvr-en-something-]$ pwd
/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-something-
[bdaw...@cfusion-tng -wvr-en-something-]$ ls -l
-rwxrwxrwx 1 bdawson likewise   59 Apr  2 09:53 Application.cfc
-rwxrwxrwx 1 bdawson likewise   59 Apr  2 09:53 include.cfm
-rwxrwxrwx 1 bdawson likewise  301 Apr  2 10:26 index.cfm

Application.cfc and include.cfm both contain the following:
>>>
#getcurrenttemplatepath()#
<<<

index.cfm has:







Aborted in #getcurrenttemplatepath()# to prevent infinite loop



>>>
#getcurrenttemplatepath()#


include #request.counter#: 


<<<



And here's the output i get:

>>>
/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/Application.cfc

<<<

>>>
/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/index.cfm
include 1:
>>>
/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/index.cfm
include 2:
>>>
/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/index.cfm
include 3:
Aborted in
/home/bdawson/trips/trunk/trips2/www_versions/-wvr-en-homeaway-/index.cfm to
prevent infinite loop

It looks like the file is being not found, but in stead of throwing an
exception it is including the index.cfm

If I change the cfinclude to be  then it throws a file not found exception as
expected.


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321234
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Dave Watts

> I have a government machine that an idiot
> configured.  It has 11GB of space on the C drive and
> I constantly have to delete things to gain space.  I
> currently have 12MB of free space on C drive with all
> my apps on E drive.  When C drive fills up, you all
> know what happens to the app.  What in the
> CFusionMX7 can I delete to get more space?  In the
> db folder, there is a folder called slserver54  what is
> that?

The slserver54 directory contains the files used by the ODBC-JDBC
bridge (SequeLink) used by CF. * wouldn't delete anything in the CF
folder other than logs.

I suggest you reinstall CF onto the other drive. If that's not an
option, you might be able to move it without reinstalling it. The
easiest way to do this is:

1. Stop CF and CF-related services.
2. Move the CF folder to the second drive.
3. Use junction.exe, a Sysinternals tool, to create a junction on the
first drive that points to the folder on the second drive.
4. Restart CF and CF-related services.

This requires that both drives be NTFS. It should take about ten minutes.

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, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more inform

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321233
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


.net cookies transfer to CF Session Values?

2009-04-02 Thread Les Mizzell

I've got a client that's decided to try and use a .net login system 
written for one of their sites for *all* their sites, including the huge 
CF site I maintain for them.

Looking at the .net code for this thing *really* reminds me why I like 
Coldfusion so much - sheesh, 15 or so files and a couple thousand lines 
of code to log somebody in?

Anyway, it all comes down to the below if the login is successful:

Response.Cookies["mysite_loggedin"].Value = user+"|"+pass+"|"+pin;
Response.Cookies["mysite_loggedin"].Expires = DateTime.Now.AddDays(14);

HttpCookie aCookie = new HttpCookie("mysite_loggedin");
aCookie.Value = user+"|"+pass+"|"+pin;
aCookie.Expires = DateTime.Now.AddDays(14);

Response.Cookies.Add(aCookie);


I'd like to be able to transfer those cookie values over to CF Session 
values, which thusly would have them counted as "logged in" on the CF 
Admin section of the CF site.

I'm not .net literate - but could somebody point me in the right 
direction to be able to swap the .net cookes/values for CF session 
values? 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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321232
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Tony

i think it would be ok, if it was the END of the month, you know...
since if i put in 11/30
and i say, "ok, cf increment that by a month..." i cant imagine a use
case where anyone
in any industry would want it to not go to the end of December?  but
yeah, a different incrementer
would be the BEST case, i think.

tw

On Thu, Apr 2, 2009 at 11:43 AM, Francois Levesque  wrote:
>
> Still, what if you really wanted it to be the 30th? Do we really want the
> engine to make this kind of assumption?
>
> I guess the best solution would be like you said: add another incrementer.
> That way we would have the option: increment by month and keep the position
> relative to end of month, or increment by month and keep day.
>
> Francois Levesque
> http://blog.critical-web.com/
>
>
> On Thu, Apr 2, 2009 at 11:28 AM, Tony  wrote:
>
>>
>> couple things... 1. its easy as pie to code around,  i was actually
>> doing first of next month, less 1 day... which works as well
>> as your idea... and thanks!
>>
>> second, maybe there needs to be another incrementer, that does it
>> logically based on calendar month, rather than days, since
>> what is a month? its a begin on the 1st and end on a known variable
>> day.  simply incrementing by a set number of days
>> to find the day next month is weird, since not all months have all
>> those days.  maybe the JAVA should be smart enough to notice
>> that the date is an end of a month, and if the incrementer is "m", go
>> by calendar month, not by same day next month... right?
>>
>> tw
>>
>> On Thu, Apr 2, 2009 at 11:15 AM, Francois Levesque 
>> wrote:
>> >
>> > That's odd, but not unexpected. Since you're starting on the 30th, it's
>> > adding a month to that and reduces when the month doesn't have 30 days in
>> > it. It's not taking the initiative of thinking you want the last day of
>> the
>> > month.
>> >
>> > Maybe this would work?
>> >
>> >       
>> >       
>> >               
>> >                       
>> >                       #dateFormat(date2,'mm')#/#daysInMonth( date2
>> > )#/#dateFormat(date2,'')#                
>> >               
>> >       
>> >
>> > Francois Levesque
>> > http://blog.critical-web.com/
>> >
>> >
>> > On Thu, Apr 2, 2009 at 11:05 AM, Tony  wrote:
>> >
>> >>
>> >>        
>> >>        
>> >>                
>> >>                        
>> >>                        #dateFormat(date2,'mm/dd/')#
>>  > >> />
>> >>                
>> >>        
>> >>
>> >> very simple code.  however, its behaving like i dont want it to.
>> >> id rather see it increment by a MONTH, not same day next month.
>> >>
>> >> the output of that code above is:
>> >>
>> >> 12/30/2008
>> >> 01/30/2009
>> >> 02/28/2009
>> >> 03/30/2009
>> >> 04/30/2009
>> >> 05/30/2009
>> >>
>> >> and i would rather it be
>> >>
>> >> 12/31/2008
>> >> 1/31/2009
>> >> 2/28/2009
>> >> 3/31/2009
>> >> 4/30/2009
>> >> 5/31/2009
>> >>
>> >> what should i be using? this is weird... i supply "m" to get month
>> >> increment, but
>> >> no dice...
>> >>
>> >> thanks
>> >> tw
>> >>
>> >>
>> >
>> >
>>
>>
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321231
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Francois Levesque

Still, what if you really wanted it to be the 30th? Do we really want the
engine to make this kind of assumption?

I guess the best solution would be like you said: add another incrementer.
That way we would have the option: increment by month and keep the position
relative to end of month, or increment by month and keep day.

Francois Levesque
http://blog.critical-web.com/


On Thu, Apr 2, 2009 at 11:28 AM, Tony  wrote:

>
> couple things... 1. its easy as pie to code around,  i was actually
> doing first of next month, less 1 day... which works as well
> as your idea... and thanks!
>
> second, maybe there needs to be another incrementer, that does it
> logically based on calendar month, rather than days, since
> what is a month? its a begin on the 1st and end on a known variable
> day.  simply incrementing by a set number of days
> to find the day next month is weird, since not all months have all
> those days.  maybe the JAVA should be smart enough to notice
> that the date is an end of a month, and if the incrementer is "m", go
> by calendar month, not by same day next month... right?
>
> tw
>
> On Thu, Apr 2, 2009 at 11:15 AM, Francois Levesque 
> wrote:
> >
> > That's odd, but not unexpected. Since you're starting on the 30th, it's
> > adding a month to that and reduces when the month doesn't have 30 days in
> > it. It's not taking the initiative of thinking you want the last day of
> the
> > month.
> >
> > Maybe this would work?
> >
> >   
> >   
> >   
> >   
> >   #dateFormat(date2,'mm')#/#daysInMonth( date2
> > )#/#dateFormat(date2,'')#
> >   
> >   
> >
> > Francois Levesque
> > http://blog.critical-web.com/
> >
> >
> > On Thu, Apr 2, 2009 at 11:05 AM, Tony  wrote:
> >
> >>
> >>
> >>
> >>
> >>
> >>#dateFormat(date2,'mm/dd/')#
>   >> />
> >>
> >>
> >>
> >> very simple code.  however, its behaving like i dont want it to.
> >> id rather see it increment by a MONTH, not same day next month.
> >>
> >> the output of that code above is:
> >>
> >> 12/30/2008
> >> 01/30/2009
> >> 02/28/2009
> >> 03/30/2009
> >> 04/30/2009
> >> 05/30/2009
> >>
> >> and i would rather it be
> >>
> >> 12/31/2008
> >> 1/31/2009
> >> 2/28/2009
> >> 3/31/2009
> >> 4/30/2009
> >> 5/31/2009
> >>
> >> what should i be using? this is weird... i supply "m" to get month
> >> increment, but
> >> no dice...
> >>
> >> thanks
> >> tw
> >>
> >>
> >
> >
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321230
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Simple text to image?

2009-04-02 Thread Paul Kukiel

Here is a demo that writes text onto images.  Start with a base image
( or create new empty one ) and you can write text to it.

http://tutorial4.learncf.com/

Paul.

On Thu, Apr 2, 2009 at 12:24 PM, Don L  wrote:
>
> Sorry I'm not totally keeping up on cf8 stuff... a quick browsing of the 
> CFimage tag does not seem to indicate it can convert a simple text 
> file/content into an image file.  Any tag/function with cf8 that is able to 
> do this job?
>
> Many thanks as usual.
>
> Don
> Chunshen Li
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321229
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Phillip Vector

You will need to build into it some kludge then that if the month has
21 days, calculate it that way and so on.

I don't think ColdFusion has a "Last day of the month" function. I may
be incorrect though. I still haven't had my morning coffee.

On Thu, Apr 2, 2009 at 8:30 AM, Bert Dawson  wrote:
>
> Or you could start with the first, add a month, then take away a day:
>
> 
> 
>    
>        
>        #dateFormat(date2, 'mm/dd/')#
>    
> 
>
> Bert
>
>
> On Thu, Apr 2, 2009 at 10:15 AM, Francois Levesque wrote:
>
>>
>> That's odd, but not unexpected. Since you're starting on the 30th, it's
>> adding a month to that and reduces when the month doesn't have 30 days in
>> it. It's not taking the initiative of thinking you want the last day of the
>> month.
>>
>> Maybe this would work?
>>
>>       
>>        
>>               
>>                       
>>                        #dateFormat(date2,'mm')#/#daysInMonth( date2
>> )#/#dateFormat(date2,'')#                
>>               
>>       
>>
>> Francois Levesque
>> http://blog.critical-web.com/
>>
>>
>> On Thu, Apr 2, 2009 at 11:05 AM, Tony  wrote:
>>
>> >
>> >        
>> >        
>> >                
>> >                        
>> >                        #dateFormat(date2,'mm/dd/')#
>>  > > />
>> >                
>> >        
>> >
>> > very simple code.  however, its behaving like i dont want it to.
>> > id rather see it increment by a MONTH, not same day next month.
>> >
>> > the output of that code above is:
>> >
>> > 12/30/2008
>> > 01/30/2009
>> > 02/28/2009
>> > 03/30/2009
>> > 04/30/2009
>> > 05/30/2009
>> >
>> > and i would rather it be
>> >
>> > 12/31/2008
>> > 1/31/2009
>> > 2/28/2009
>> > 3/31/2009
>> > 4/30/2009
>> > 5/31/2009
>> >
>> > what should i be using? this is weird... i supply "m" to get month
>> > increment, but
>> > no dice...
>> >
>> > thanks
>> > tw
>> >
>> >
>>
>>
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321228
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Coldfusion 8 Server Install

2009-04-02 Thread Ming Lu

Hi There,

OK! It's up and running now after I did the following:
[1]. create a .CAR file from CF8 Developer version
[2]. uninstall CF7 enterprise and CF8 dev
[3]. reinstalled CF8 dev as the single server and redeployed the .car
[4]. convert Dev to CF8 Standard.

Note: if you have put anything (CustomTags, and etc.) previously in the 
ColdFusion8 folder, you need to double check whether it's still there after the 
re-installation because you may have installed CF8 in a new folder.

Thank all of you very much!

Ming Lu


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321227
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Bert Dawson

Or you could start with the first, add a month, then take away a day:





#dateFormat(date2, 'mm/dd/')#



Bert


On Thu, Apr 2, 2009 at 10:15 AM, Francois Levesque wrote:

>
> That's odd, but not unexpected. Since you're starting on the 30th, it's
> adding a month to that and reduces when the month doesn't have 30 days in
> it. It's not taking the initiative of thinking you want the last day of the
> month.
>
> Maybe this would work?
>
>   
>
>   
>   
>#dateFormat(date2,'mm')#/#daysInMonth( date2
> )#/#dateFormat(date2,'')#
>   
>   
>
> Francois Levesque
> http://blog.critical-web.com/
>
>
> On Thu, Apr 2, 2009 at 11:05 AM, Tony  wrote:
>
> >
> >
> >
> >
> >
> >#dateFormat(date2,'mm/dd/')#
>   > />
> >
> >
> >
> > very simple code.  however, its behaving like i dont want it to.
> > id rather see it increment by a MONTH, not same day next month.
> >
> > the output of that code above is:
> >
> > 12/30/2008
> > 01/30/2009
> > 02/28/2009
> > 03/30/2009
> > 04/30/2009
> > 05/30/2009
> >
> > and i would rather it be
> >
> > 12/31/2008
> > 1/31/2009
> > 2/28/2009
> > 3/31/2009
> > 4/30/2009
> > 5/31/2009
> >
> > what should i be using? this is weird... i supply "m" to get month
> > increment, but
> > no dice...
> >
> > thanks
> > tw
> >
> >
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321226
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Simple text to image?

2009-04-02 Thread Don L

Sorry I'm not totally keeping up on cf8 stuff... a quick browsing of the 
CFimage tag does not seem to indicate it can convert a simple text file/content 
into an image file.  Any tag/function with cf8 that is able to do this job?

Many thanks as usual.

Don
Chunshen Li 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321225
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Tony

yup, thats what francois said... works, but still odd.

tw

On Thu, Apr 2, 2009 at 11:22 AM, Ryan Stille  wrote:
>
> Look at the DaysInMonth() function.
>
> -Ryan
>
> Tony wrote:
>>       
>>       
>>               
>>                       
>>                       #dateFormat(date2,'mm/dd/')#                
>>               
>>       
>>
>> very simple code.  however, its behaving like i dont want it to.
>> id rather see it increment by a MONTH, not same day next month.
>>
>> the output of that code above is:
>>
>> 12/30/2008
>> 01/30/2009
>> 02/28/2009
>> 03/30/2009
>> 04/30/2009
>> 05/30/2009
>>
>> and i would rather it be
>>
>> 12/31/2008
>> 1/31/2009
>> 2/28/2009
>> 3/31/2009
>> 4/30/2009
>> 5/31/2009
>>
>> what should i be using? this is weird... i supply "m" to get month
>> increment, but
>> no dice...
>>
>> thanks
>> tw
>>
>>
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321224
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Tony

couple things... 1. its easy as pie to code around,  i was actually
doing first of next month, less 1 day... which works as well
as your idea... and thanks!

second, maybe there needs to be another incrementer, that does it
logically based on calendar month, rather than days, since
what is a month? its a begin on the 1st and end on a known variable
day.  simply incrementing by a set number of days
to find the day next month is weird, since not all months have all
those days.  maybe the JAVA should be smart enough to notice
that the date is an end of a month, and if the incrementer is "m", go
by calendar month, not by same day next month... right?

tw

On Thu, Apr 2, 2009 at 11:15 AM, Francois Levesque  wrote:
>
> That's odd, but not unexpected. Since you're starting on the 30th, it's
> adding a month to that and reduces when the month doesn't have 30 days in
> it. It's not taking the initiative of thinking you want the last day of the
> month.
>
> Maybe this would work?
>
>       
>       
>               
>                       
>                       #dateFormat(date2,'mm')#/#daysInMonth( date2
> )#/#dateFormat(date2,'')#                
>               
>       
>
> Francois Levesque
> http://blog.critical-web.com/
>
>
> On Thu, Apr 2, 2009 at 11:05 AM, Tony  wrote:
>
>>
>>        
>>        
>>                
>>                        
>>                        #dateFormat(date2,'mm/dd/')#                > />
>>                
>>        
>>
>> very simple code.  however, its behaving like i dont want it to.
>> id rather see it increment by a MONTH, not same day next month.
>>
>> the output of that code above is:
>>
>> 12/30/2008
>> 01/30/2009
>> 02/28/2009
>> 03/30/2009
>> 04/30/2009
>> 05/30/2009
>>
>> and i would rather it be
>>
>> 12/31/2008
>> 1/31/2009
>> 2/28/2009
>> 3/31/2009
>> 4/30/2009
>> 5/31/2009
>>
>> what should i be using? this is weird... i supply "m" to get month
>> increment, but
>> no dice...
>>
>> thanks
>> tw
>>
>>
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321223
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Button to support both IE and Firefox

2009-04-02 Thread Don L

Thank you, Peter.  I'll try it tonight and update you folks then.

> Don, the following code should work in all major browsers - certainly 
> I've tested in Firefox 3, IE7, Chrome, and Opera 9.
> 
> 
> Here's the HTML:
> 
> http://xyz.
> com/somefile.zip">Download the File
> 
> 
> Note how I've used a class there - instead of inline styles - here is 
> the styling:
> 
> 
>   button.download
>   {
>   background-color: lightgreen;
>   width: 150px;
>   }
> 
> 
> 
> Finally, here is the scripting to use:
> 
> http://ajax.googleapis.
> com/ajax/libs/jquery/1.3.2/jquery.min.js">
> 
>   $j = jQuery.noConflict();
> 
>   $j(document).ready
>   ( function()
>   {
>   $j('.download').click( downloadFile );
>   }
>   );
> 
>   function downloadFile()
>   {
>   location.href = $j(this).attr('data-file');
>   }
> 
> 
> 
> This is all a lot of code, but it is a more reliable/flexible way of 
> doing it, especially for when (not if) you need to extend things.
> 
> Feel free to ask if any of this is unclear. :) 


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321222
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Paul Kukiel

Its not a bug infact its exactly as you specified try this instead:

 #dateFormat(date2,'m/dd/')#

with a single m

here is a good reference for dateFormat:
http://www.cfquickdocs.com/cf8/#DateFormat


Paul.




On Thu, Apr 2, 2009 at 11:05 AM, Tony  wrote:
>
>        
>        
>                
>                        
>                        #dateFormat(date2,'mm/dd/')#                
>                
>        
>
> very simple code.  however, its behaving like i dont want it to.
> id rather see it increment by a MONTH, not same day next month.
>
> the output of that code above is:
>
> 12/30/2008
> 01/30/2009
> 02/28/2009
> 03/30/2009
> 04/30/2009
> 05/30/2009
>
> and i would rather it be
>
> 12/31/2008
> 1/31/2009
> 2/28/2009
> 3/31/2009
> 4/30/2009
> 5/31/2009
>
> what should i be using? this is weird... i supply "m" to get month
> increment, but
> no dice...
>
> thanks
> tw
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321221
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Ryan Stille

Look at the DaysInMonth() function.

-Ryan

Tony wrote:
>   
>   
>
>   
>   #dateFormat(date2,'mm/dd/')#  
>   
>   
>
> very simple code.  however, its behaving like i dont want it to.
> id rather see it increment by a MONTH, not same day next month.
>
> the output of that code above is:
>
> 12/30/2008
> 01/30/2009
> 02/28/2009
> 03/30/2009
> 04/30/2009
> 05/30/2009
>
> and i would rather it be
>
> 12/31/2008
> 1/31/2009
> 2/28/2009
> 3/31/2009
> 4/30/2009
> 5/31/2009
>
> what should i be using? this is weird... i supply "m" to get month
> increment, but
> no dice...
>
> thanks
> tw
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321220
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: would you consider this a bug, CF8

2009-04-02 Thread Francois Levesque

That's odd, but not unexpected. Since you're starting on the 30th, it's
adding a month to that and reduces when the month doesn't have 30 days in
it. It's not taking the initiative of thinking you want the last day of the
month.

Maybe this would work?

   
   
   
   
   #dateFormat(date2,'mm')#/#daysInMonth( date2
)#/#dateFormat(date2,'')#
   
   

Francois Levesque
http://blog.critical-web.com/


On Thu, Apr 2, 2009 at 11:05 AM, Tony  wrote:

>
>
>
>
>
>#dateFormat(date2,'mm/dd/')# />
>
>
>
> very simple code.  however, its behaving like i dont want it to.
> id rather see it increment by a MONTH, not same day next month.
>
> the output of that code above is:
>
> 12/30/2008
> 01/30/2009
> 02/28/2009
> 03/30/2009
> 04/30/2009
> 05/30/2009
>
> and i would rather it be
>
> 12/31/2008
> 1/31/2009
> 2/28/2009
> 3/31/2009
> 4/30/2009
> 5/31/2009
>
> what should i be using? this is weird... i supply "m" to get month
> increment, but
> no dice...
>
> thanks
> tw
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321219
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


would you consider this a bug, CF8

2009-04-02 Thread Tony



 

#dateFormat(date2,'mm/dd/')#  



very simple code.  however, its behaving like i dont want it to.
id rather see it increment by a MONTH, not same day next month.

the output of that code above is:

12/30/2008  
01/30/2009  
02/28/2009  
03/30/2009  
04/30/2009  
05/30/2009  

and i would rather it be

12/31/2008
1/31/2009
2/28/2009
3/31/2009
4/30/2009
5/31/2009

what should i be using? this is weird... i supply "m" to get month
increment, but
no dice...

thanks
tw

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321218
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Wil Genovese

Delete old log files - make sure you roll them on occasion.

If your sending lots of email out via CFMAIL make sure your mail/undelivered
folder is not store large amounts of undeliverable mail.

Do what the others have suggested.

Wil Genovese
Sr. Web Application Developer



On Thu, Apr 2, 2009 at 10:09 AM, Brian Yager wrote:

>
> I have a government machine that an idiot configured.  It has 11GB of space
> on the C drive and I constantly have to delete things to gain space.  I
> currently have 12MB of free space on C drive with all my apps on E drive.
>  When C drive fills up, you all know what happens to the app.  What in the
> CFusionMX7 can I delete to get more space?  In the db folder, there is a
> folder called slserver54  what is that?
>
> Thanks
>
> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321217
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Jacob

Check recycle bin settings? Default reserves 10% of drive space for recycle
bin. I kick mine down to 1%

Look for .dmp files. If the machine had a memory dump in the past, those
files could still be there.

Search for file more the 25MB. What shows up?  Setup files, tmp files, and
log files that could be deleted?

-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Thursday, April 02, 2009 7:22 AM
To: cf-talk
Subject: Re: CF 7 install...What can I delete to get more space?


Brian Yager wrote:
> I have a government machine that an idiot configured.  It has 11GB of
space on the C drive and I constantly have to delete things to gain space.
I currently have 12MB of free space on C drive with all my apps on E drive.
When C drive fills up, you all know what happens to the app.  What in the
CFusionMX7 can I delete to get more space?  In the db folder, there is a
folder called slserver54  what is that?
>
> Thanks

A thinking 'out of the box' suggestion.  But can you reinstall CF to the 
drive with more space.  It does not have to be on the C drive.





~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321216
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: simple RegEx?

2009-04-02 Thread Adrian Lynch

Check the stackoverflow in this result:

http://www.google.co.uk/search?hl=en&q=find+roman+numerals+regex&btnG=Search
&meta=

Adrian

> -Original Message-
> From: CF Developer [mailto:coldfus...@mindkeeper.net]
> Sent: 02 April 2009 13:00
> To: cf-talk
> Subject: simple RegEx?
> 
> 
> This should be simple for all you RegEx Gurus.
> 
> I have a textarea field that may contain list numbers such as : (i)
> (ii).
> What I want to do is convert those to LI statements.
> 
> I know you have to escape the parathesis but it produces:  i)  and
> ii)
> 
> How can I change it just to an LI statement (regardless on the list
> number, since it can be i, ii, iii, iv)
> 
> I tried:
> 
> rereplace(myTextField,'\(*\)','ALL')
> 
> TIA!


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321215
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Ian Skinner

Brian Yager wrote:
> I have a government machine that an idiot configured.  It has 11GB of space 
> on the C drive and I constantly have to delete things to gain space.  I 
> currently have 12MB of free space on C drive with all my apps on E drive.  
> When C drive fills up, you all know what happens to the app.  What in the 
> CFusionMX7 can I delete to get more space?  In the db folder, there is a 
> folder called slserver54  what is that?
>
> Thanks

A thinking 'out of the box' suggestion.  But can you reinstall CF to the 
drive with more space.  It does not have to be on the C drive.



~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321214
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Page Encoding inside CFC?

2009-04-02 Thread Kris Jones

Thanks much -- this is exactly what I needed. I don't know why, but I
had only tried putting it above the cfcomponent tag.

Cheers,
Kris


> We are using encoding declarations in cfcs just after cfcomponent tag and
> everything works fine:
> 
> 
> 
> 
>
> Bilgehan


>> I've got a function that replaces accented characters with
>> english-type characters -- this is for file naming and such. It works
>> fine until I put the function in a component.
>>
>> On a plain ole .cfm page, it works great as long as the
>> cfprocessingdirective for pageencoding="utf-8". Without the directive,
>> it works fine on text typed directly into the template, but text
>> returned from a database call is not replaced correctly.
>>
>> In the .cfc, I'm unsure how to force the encoding. I'm running CF7.
>> Any advice is greatly appreciated.

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321213
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CF 7 install...What can I delete to get more space?

2009-04-02 Thread Brian Yager

I have a government machine that an idiot configured.  It has 11GB of space on 
the C drive and I constantly have to delete things to gain space.  I currently 
have 12MB of free space on C drive with all my apps on E drive.  When C drive 
fills up, you all know what happens to the app.  What in the CFusionMX7 can I 
delete to get more space?  In the db folder, there is a folder called 
slserver54  what is that?

Thanks 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321212
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


simple RegEx?

2009-04-02 Thread CF Developer

This should be simple for all you RegEx Gurus.

I have a textarea field that may contain list numbers such as : (i)  (ii).
What I want to do is convert those to LI statements.

I know you have to escape the parathesis but it produces:  i)  and ii)

How can I change it just to an LI statement (regardless on the list number, 
since it can be i, ii, iii, iv)

I tried:

rereplace(myTextField,'\(*\)','ALL')

TIA!



~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321211
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Cfform upload - Form Field contains no file

2009-04-02 Thread Azadi Saryev

 DOES NOT rename files. it just moves the
uploaded file from the temp upload dir on the server to the dir on the
server you specify in the DESTINATION attribute.
depending on the value of NAMECONFLICT attribute, this action will
either overwrite a file with the same name if it already exists in the
destination folder, or will append a sequential number to the file name.
to rename a file you should use .

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Fawzi Amadu wrote:
> I have re-written the code and it is working, except that the renaming of the 
> files (filefield="#variables.filename#") part is not working. When I dump 
> (see code below) the session variable that I am assigning to filefield, I get 
> the correct result, but the filename is not changed on upload when I check 
> them at where there are stored.
>
>
> 
>
> 
> 
> 
>
> 
>
>
>
> 
> 
>  
>   
>  
>
>  nameconflict="makeunique" filefield="#variables.filename#">
> 
> 
>  
>  
>
>  
>
>
>  
> 
> 
>  
>
>   
>> Fawzi,
>> Are you saying that you removed the nested cf-tags and the problem persists?
>> If that is what you are saying, please post your new code as edited, so we
>> can see what else might be wrong.
>>
>> William
>>
>> 

~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321210
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Cfform upload - Form Field contains no file

2009-04-02 Thread Fawzi Amadu

I have re-written the code and it is working, except that the renaming of the 
files (filefield="#variables.filename#") part is not working. When I dump (see 
code below) the session variable that I am assigning to filefield, I get the 
correct result, but the filename is not changed on upload when I check them at 
where there are stored.



   

  



   




 
  
   
 
  
  
  
   
   

   
 
   
   


 

>Fawzi,
>Are you saying that you removed the nested cf-tags and the problem persists?
>If that is what you are saying, please post your new code as edited, so we
>can see what else might be wrong.
>
>William
>


~|
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: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321209
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4