Re: onRequestStart problem with url variables

2006-03-07 Thread Raymond Camden
What do your image source look like? Like this?

img src=dance-pcitures/2005-Bline.jpg

If so, you just need to change it to:

img src=/dance-pcitures/2005-Bline.jpg


On 3/7/06, Les Mizzell [EMAIL PROTECTED] wrote:
 Head scratcher...

 Ok, doing this:

 cffunction name=onRequestStart returnType=boolean output=true
!--- Display our Site Header at top of every page ---
cfinclude template=SiteHeader.cfm
   cfreturn true
 /cffunction

 If I have a link with variable like

 images.cfm?year=2005

 This works exactly like it should. An image on the page will display
 correctly and the path is correct:

 dance-pictures/2005-BLine.jpg

 However, to help pages get indexed I've changed all my URL variables to
   to look like:

 images.cfm/year/2005

 When I do that, view source looks OK on the page, but the path for the
 same image above is now showing as:

 images.cfm/year/dance-pictures/2005-BLine.jpg

 Which ain't right - it's including the full file name into the folder
 path. In fact, all paths on the page are now screwed and nothing
 displays correctly - so I just get an unstyled page of text and nothing
 else.  If I retype images.cfm/year/2005 as images.cfm?year=2005 in
 the address bar, all is right with the world again...

 Ideas of a fix?? This one is a little beyond my head scratching ability...

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234403
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFFILE excel output/query help needed

2006-03-07 Thread Tim Laureska
This query works fine outside of the CFFILE tag but generates an error
when placed within the cffile (and within cfloop needed to generate the
excel file) -  any assistance would be appreciated

 

QUERY/OUTPUT:

cfquery name=interests2  dbtype=query

SELECT interest_id, interest

FROM member_profile

WHERE member_profile.yp_id=#QueryName.yp_id#

/cfquery

 

cfset str=

cfloop query=interests2

cfset str=str  BR  #interests2.interest#

#interest#br

/cfloop

 

ERROR WHEN WITHIN CFFILE/CFLOOP 

 

Element INTEREST is undefined in INTERESTS2

 

code when using CFFILE:

 

cfquery name=Query76 dbtype=query

SELECT distinct yp_id

FROM member_profile

order by lname

/cfquery

 

cfloop query=Query76

cffile action=APPEND

file=D:\inetpub\wwwroot\chamber\admin\yp\temp_excel\email_report_intere
sts.xls output= tr

td

cfquery name=interests2  dbtype=query

SELECT interest_id, interest

FROM member_profile

WHERE member_profile.yp_id=#QueryName.yp_id#

/cfquery

 

cfset str=

cfloop query=interests2

cfset str=str  BR  #interests2.interest#

#interest#br

/cfloop

/td

 /tr 

addnewline=yes

/cfloop

/cfoutput

 

 

 

 

 

Tim Laureska

1st-String Technologies

 

 

 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234404
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


JRUN Metrics

2006-03-07 Thread Chad McCue
I am trying to figure out what exactly the Sessions refer to on my 
coldfusion-event.log. Does the Sessions refer to how many total session 
variables are set on my application? I am having a problem with that number 
causing my JRUN.exe to take up a lot of memory.

When the number of sessions gets to around 21 my JRUN memory is usually around 
400+k and becomes unresponsive.

Can anyone help me out?

Thanks.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234405
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Rick Faircloth
No!  Don't abandon me (and others) now!

As I'm sure you well know from your experience
with trying to understand all this, that it's the
composite of many attempts to explain / understand
that finally bring you to the point where the light comes on.

I understood parts of what you were saying...didn't
fully comprehend beans (still don't completely...I think that
only comes with experience)...and didn't understand
everything that Isaac had to say.

Trying to grasp something new and complex is like trying
to pick up an ice cube you dropped on the floor...it's slippery...
and sometimes you have to attempt several times to grasp it,
but eventually you do.  Just watch a baby try to pick up an
ice cube...then you get the picture of what we're going through.

None of us will ever know just what part our contributions
play in the understanding of others...so please don't quit on me!

If I didn't have your explanation to shift my thinking correctly,
further explanation by Isaac would have been futile!  But even
now, the job's definitely not finished...I just managed to grasp
one ice cube...but there's still a whole bucket load
all over the floor!  ;o)

Thanks for your help!  Sincerely!

Rick


 -Original Message-
 From: Mike Kear [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 06, 2006 11:57 PM
 To: CF-Talk
 Subject: Re: OOP, why me?


 I thought i had described at some length what I found the
 benefits to be.  I
 took quite a lot of time to write it in terms i thought you'd understand.
   I guess I didnt explain it as well as i thought i had.

 Oh well.   I dont know how to do it any clearer.I guess you
 arent going
 to be getting it from my descriptions.  I suppose I'm just not able to
 communicate it to you.   I'm out of this thread now.

 Good luck.

 Cheers
 Mike Kear
 Windsor, NSW, Australia
 Certified Advanced ColdFusion Developer
 AFP Webworks
 http://afpwebworks.com
 ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month


 On 3/7/06, Rick Faircloth [EMAIL PROTECTED] wrote:
 
  Yes...thanks, Isaac, for taking the time to
  water it down for me...it makes more sense now.
 
  However, the big question for me remains...what is
  the benefit for learning what almost amounts to a whole
  new language?  Just reduced code?  Faster execution?
  I'm sure it's faster, but how much so?
 
  This seems like a whole new programming paradigm
  to adjust to...and like all good business people, I have
  to question the ROI...how much better off will I be for
  investing more dollars and time into learning these
  new techniques?  If I'm not building apps that require
  extreme capabilities and processing tons of data, and
  my apps are simple retrieve, insert, update, and delete queries
  for relatively simple apps...how much difference would
  all this make?
 
  Rick
 
 
   -Original Message-
   From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
   Sent: Monday, March 06, 2006 10:27 PM
   To: CF-Talk
   Subject: RE: OOP, why me?
  
  
Oh, man, Isaac...you just set my head spinning...(I think
I like my simple, single programmer, 4.5.2 world...)
  
I think I'll just become an athiest when it comes to
anything
beyond 4.5.2...(it doesn't exist except on the list...it
doesn't
exist except on the list...)  ;o)
  
I purposefully quoted everything you just said
y!
  
Rick
  
   In retrospect on rereading that last message I sent, I can see why you
   might not have found it particularly helpful. :) I did use a fair
   amount of jargon in there... and I started the whole thing off with
   specifics regarding cfinvoke and CreateObject() that were wholly
   unnecessary to define terms. :)
  
   Let me start over briefly with something a little simpler (and an
   analogy that will probably speak to the experience you already have):
  
   Take your database. It has tables, tables have columns. The table
   itself doesn't represent an object in the real world, although
   individual records in that table might. So you can consider the
   metadata of the table (the number, names and data types of its
   columns) as being very roughly analogous to a class. People
   responsible for creating OO terms were very deliberate about choosing
   that term class for its meaning as a type of object. A class
   therefore simply describes a particular type of object in a manner
   again very roughly analogous to the way your database table describes
   the records contained in it.
  
   Now each object can have instance data, and this is again roughly
   analogous to your database, although in this case it's analogous to
   the data in the table (rather than to the definition or structure of
   the table). Once you have an object, the same as when you have a
   table, you can typically put whatever instance data you want in that
   object, within the restrictions defined by the class, in the same way
   you can put whatever data you want in a record in your database table
   

Re: OT: Popular Open API's

2006-03-07 Thread Ryan Guill
These are great examples of API's, but I was meaning more like the
Flickr API, the Yahoo! and Google maps api's, and the Paypal api's,
the more mainstream API's that you always hear so much about.

But keep them coming, I want to hear about these as well.

On 3/6/06, Paul Hastings [EMAIL PROTECTED] wrote:
 S. Isaac Dealey wrote:
  JSON
  SOAP
  JDOM/Xalan/Xerces -- although you don't see much of these with CF
  java.util.Zip
  java.util.TimeZone

 don't forget the rest of core java. i expect they're darned popular.

  ICU4J (IBM's internationalization (i18n) project)

 well of course icu4j ;-)

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234407
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Rick Faircloth
 It will... I use Win2K Server for development at home

That's good to know, because upgrading two major
pieces of software at once would be a no-go...not just
because of cost, but because I know I'd have to deal
with a lot of issues that have everything to do with only
setting up a stable software and nothing directly to do
with productivity, i.e., making money.

I just purchased a new laptop for client demonstrations
and development on the road.  (Sometimes it's just better
to get out of the studio and go someplace different for
working...)

Haven't installed CF or anything on the laptop yet...it's
running Win XP Pro.  It'll just be used for development
and I won't be tapping into it from the Internet, so I should
just be able to set up CF and avoid IIS...right?  (I used to
work this way when I first started...CF installed on my
Win 2000 Pro workstation, develop and view sites locally,
then upload to the server when complete.  Now, with
everything networked I just develop straight on the production
serverthat lets clients tap into their development site
and view progress (or lack thereof!) and test portions of
sites/apps as I develop them.  They get trained and I get
debugging as we go!

I think the rest of us have learned a new rule. If it aint broke it
must not have done much. :)

I just added that rule to my book!  A CF web-based office app I've
been working on for a month or so is going to have to be re-designed
simply becaue the stupid select displays in my forms are corrupted
when scrolled in my iFrames...I can't ask the client to live with that...so
it's back to the drawing board (for the 3rd time!) with the
layout...aaagh!
It finally did enough to be broke!

Rick


 -Original Message-
 From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 12:22 AM
 To: CF-Talk
 Subject: RE: OOP, why me?


  Don't worry...I'll probably use Win 2000 Server
  until something forces me off that too!  Everytime
  I make a major software upgrade, I end up with
  two weeks of downtime!

  Fortunately, I do have a spare server that's not in
  use right now, so when I have time, I'll probably
  download CF7 and tinker...(Hope it'll work on
  Win 2000 Server!)

 It will... I use Win2K Server for development at home, though lately
 I'm putting more thought into buying a newer WinXP laptop (which I
 can't afford at the moment) and installing CF on it with apache.
 (Getting tired of IIS headaches I guess -- figured I'd try a new
 variety of headache. :) Actually it has a lot to do with the fact that
 I can run multiple virtual hosts on Apache without needing to install
 a server version of Windows. Not that I mind running server at all,
 but it's easier to buy laptops with WinXP preinstalled on them. And
 the little Del they got me at this job that I'm now leaving runs my
 software a lot faster / smoother than my old desktop Win2k server.

  I've been in this business long enough to live by
  the old rule, If it ain't broke...don't fix it!

 I think the rest of us have learned a new rule. If it aint broke it
 must not have done much. :)




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234408
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Rick Faircloth
That makes sense...it's just hard to get out of the
mindset of having queries, etc., attached to the
specific display templates they provide data for.

If a display isn't displaying data correctly, I always
know that query is part of the same page as the
display code.

However, I will say that I have recently attempted
to put all my processing in a template and use
CFSWITCH / CFCASE to process info because
I wanted the user to stay on the same page of
an app (an attempt to emulate desktop software)
for working, even though it required trips back and
forth to the server/database.  Keeping things visually
simple is key for this client and I wanted to avoid
changing pages as often as possible.

So there is a lot of links with ?Action= attached to
them and sent to a main processing template where
processing was done according to the definition
of Action...

While it was simple to know where all the processing
queries were located, that page was beginning to become
a bear to maintain and track what was going on.  I found
thee was something to be said for keeping the processes
attached to their relevant displays when they process only
affected on particular display...

Rick

 -Original Message-
 From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 12:22 AM
 To: CF-Talk
 Subject: RE: OOP, why me?
 
 
  Yes...thanks, Isaac, for taking the time to
  water it down for me...it makes more sense now.
 
  However, the big question for me remains...what is
  the benefit for learning what almost amounts to a whole
  new language?  Just reduced code?  Faster execution?
  I'm sure it's faster, but how much so?
 
 Performance benefits (faster execution) are nebulous and difficult to
 quantify because it often depends a fair amount on how you structure
 your code. It's entirely possible (easy even) to write inefficient OO
 code that would not perform as fast as some equivalent but well
 designed procedural code (using cfmodule tags or includes). There is a
 noticeable performance gain from using objects which are being stored
 in memory, partly because the server doesn't have to continually
 connect to the database to get their information (if they require
 information from the database), and partly because there are processor
 cycles eaten up when the object is created (although something very
 similar happens when a custom tag is called with cfmodule).
 
 For myself, the big benefits are mostly in terms of reduced code,
 easier to read / more legible code (sometimes even
 self-documenting), shorter development cycles (less code means less
 typing and of course, more legible code means less time spent
 scratching my head about why I wrote a particular line). But also
 because there are some things (and I won't get into them because that
 was part of the problem with my first reply :) that would just be
 darned difficult to accomplish without an object (the listeners on my
 SQL Select objects I mentioned in the first post are one salient
 example).
 
  This seems like a whole new programming paradigm
  to adjust to...and like all good business people, I have
  to question the ROI...how much better off will I be for
  investing more dollars and time into learning these
  new techniques?  If I'm not building apps that require
  extreme capabilities and processing tons of data, and
  my apps are simple retrieve, insert, update, and delete
  queries for relatively simple apps...how much difference
  would all this make?
 
 Personally I don't think it requires extreme capabilities or
 processing tons of data to see a benefit from OO. For that matter, I
 don't think OO inherently really does anything for processing tons of
 data -- it may help with wider data, but not with a greater
 abundance of the same narrow data. (Not sure that makes much sense,
 but in essence I'm saying they may help with more complex database
 schemas, but not so much with simpler database schemas that happen to
 be filled with more data.) Anyway... I'm getting off into the
 essoteric again. :) I think it's possible to see some benefit from an
 OO architecture with very little effort. The simple matter of having
 all your database access in one place instead of spread out into lots
 of different unrelated templates is helpful in itself, if for nothing
 other than organizational reasons. It's nice to always know exactly
 where to go if you have a problem with a query, and it's very nice to
 never see an ad-hoc query copied and pasted between 2 templates.
 
 s. isaac dealey 434.293.6201
 new epoch : isn't it time for a change?
 
 add features without fixtures with
 the onTap open source framework
 
 http://www.fusiontap.com
 http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234409
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: 

RE: Ok, I give...how can I do this...

2006-03-07 Thread Rick Faircloth
I did try using LSParseNumber in my error catching,
but that didn't work out completely...don't remember
why at this point...

I need to be able to catch an input problem and return
an appropriate error message.

CFIF Not Len(Trim(Form.Dollar_Amount))

- Good for catching no entry

CFIF Len(Trim(Form.Dollar_Amount)) and Not IsNumeric(Form.Dollar_Amount)

- Good for catching just junk entries like, sadfsdd, but also catches 
1,000

CFIF Len(Trim(Form.Dollar_Amount)) and Not
IsNumeric(LSParseNumber(Form.Dollar_Amount))

- Now why didn't this work? Oh, now I remember...a junk entry like,
asdflkj, can't
  be parsed by LSParseNumber and throws a CF error...

CFIF Len(Trim(Form.Dollar_Amount)) and Not
IsNumeric(LSParseNumber(Val(Form.Dollar_Amount)))

- Worked for entries like 1,000 but didn't work with junk entries, like
sldifjo,
  because I think Val created a value of 0 for the string

So...

I need to trap no entries, entries of junk, and not trap entries with commas
and strictly numeric entries
(without commas)

I just haven't been able to put together a sequence of traps for all entry
possiblities...maybe I've
been working on it too long for now...

Rick


 -Original Message-
 From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 12:35 AM
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...


 Nope, comma's never been part of a number in CF... It uses US
 formatted numbers (as far as I'm aware), but discluding commas. I
 believe this is a pretty standard format for numbers in computing
 languages... But because humans like to format their numbers we have
 LSParseNumber() and LSParseCurrency() to convert user-provided values
 with commas and such into machine numbers with the appropriate format
 for CF to treat them as numeric values. I don't use LSParseNumber() or
 LSParseCurrency() myself as I don't prefer to rely on CF's
 localization features, partly because they don't allow you to override
 the default locale without _setting_ the default locale using
 SetLocale() so I implemented my own localization methods using Java
 which accept the locale as an optional argument with a request-based
 default.

  I have to snicker at the irony of this being a *new*
  bug in CF7...I'm still using 4.5.2!  :o)

  Rick


  -Original Message-
  From: Eric Roberts
  [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 06, 2006 10:30 PM
  To: CF-Talk
  Subject: RE: Ok, I give...how can I do this...
 
 
  I think it should.  I have been having similar probs
  lately with CF7 where
  numbers that have commas in them are viewed as strings.
  I don't ever
  remember having this prob with previous versions...is
  this a new
  bug in 7?
 
  Eric
 
  -Original Message-
  From: Rick Faircloth [mailto:[EMAIL PROTECTED]
  Sent: Monday, 06 March 2006 17:56
  To: CF-Talk
  Subject: Ok, I give...how can I do this...
 
  Should a field entry of 1,000 validate as a numeric?
 
  e.g. IsNumeric(Form.Dollars)
 
  (Where Form.Dollars has a value of 1,000)
 
  Rick
 
 
 
 
 
 
 
 
 

  ~~
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234410
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Query brain teaser

2006-03-07 Thread Robert Everland III
I have come across this a few times and was wondering how some of you would 
attack it.

I have a table that looks like this


uniqueID   q1 q2 q3 ... q50

In reality the table should look like this

uniqueID   studentID  answer   qid


I need it to have multiple records so I can do a join on a table that holds the 
answer which is written as a table with multiple records as opposed to a table 
with multiple columns.I know I can accomplish this in coldfusion. The way I did 
it was to query the big table, then create a structure so each column was in a 
structure. What would you have done?



Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234411
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Query brain teaser

2006-03-07 Thread James Holmes
On 3/7/06, Robert Everland III [EMAIL PROTECTED] wrote:
 I have come across this a few times and was wondering how some of you would 
 attack it.

With an axe. That table design is A Bad Thing(tm) and your target
design is exactly what should have been done in the first place.

 I have a table that looks like this


 uniqueID   q1 q2 q3 ... q50

 In reality the table should look like this

 uniqueID   studentID  answer   qid


 I need it to have multiple records so I can do a join on a table that holds 
 the answer which is written as a table with multiple records as opposed to a 
 table with multiple columns.I know I can accomplish this in coldfusion. The 
 way I did it was to query the big table, then create a structure so each 
 column was in a structure. What would you have done?

I'd have redesigned the DB, so that I never had to worry about it
again, writing a procedure to translate all the existing records into
a sane format.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234412
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread James Holmes
On 3/7/06, Rick Faircloth [EMAIL PROTECTED] wrote:

 However, I will say that I have recently attempted
 to put all my processing in a template and use
 CFSWITCH / CFCASE to process info ...[snip]

You just described the basics of Fusebox.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234413
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Popular Open API's

2006-03-07 Thread Johnny Le
We just used Rome to read and write RSS feeds
https://rome.dev.java.net/

These are great examples of API's, but I was meaning more like the
Flickr API, the Yahoo! and Google maps api's, and the Paypal api's,
the more mainstream API's that you always hear so much about.

But keep them coming, I want to hear about these as well.

On 3/6/06, Paul Hastings [EMAIL PROTECTED] wrote:


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234414
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Query brain teaser

2006-03-07 Thread Robert Everland III
So how did you write the conversion? ColdFusion or stored procedure? Just 
seeing if there is another way to do it besides what I am currently doing.



Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234415
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: anyone used cfx_zip??

2006-03-07 Thread Larry Lyons
 Artur,
 
 No offense meant, but the cfc is not well documented. It would've made 
 me happier if I saw atleast more than one example in each case (add, 
 delete etc.). 
 I understand you cfc is free and it is up to you to make it as user 
 friendly as possible, but the it is not at all well documented. 
 
 I do appreciate your willingness to help. Thanks for your time.

Massimo Foti has also written a zip CFC that works fairly well. You can 
download it at 
http://www.olimpo.ch/tmt/cfc/tmt_zip/

hth,
larry

--
Larry C. Lyons
Web Analyst
BEI Resources
American Type Culture Collection
email: llyons(at)atcc(dot)org
tel: 703.365.2700.2678
--

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234416
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Site-wide redirect?

2006-03-07 Thread Andy Matthews
I recently redesigned my personal website, moving from 10 or so individual
files, to a single main template. Those files have been deleted as I don't
like clutter in my directories.

Problem is that now, search engines are still looking for those files. I'm
wondering if it's somehow possible, using CF, to code a sitewide redirect
back to index.cfm from any missing page.

Anyone?

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234417
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Coldfusion online photo gallery creator?

2006-03-07 Thread Andy Matthews
Does anyone know of a free CF photo gallery creator? I googled for it last
night but didn't see anything.



!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234418
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Object detection

2006-03-07 Thread Martin Thorpe
Hello all.

 

What is the best, recommended/practice, way to detect if an object,
component, exists.  For instance loading an object into the application
scope you only need to load it if it is no longer defined.  So I guess
you could do this but would it be the best approach:

 

cfif NOT isdefined(application.myObj)

   !--- code to create and instantiate the object ---

/cfif

 

thanks for reading.

Cheers

Martin




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234419
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Ok, I give...how can I do this...

2006-03-07 Thread Dawson, Michael
I would use a regular expression to remove *all* non-numeric characters.
Then, check to see if the remainder is numeric.  You could do this both
on the client and the server.

M!ke 

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 7:16 PM
To: CF-Talk
Subject: RE: Ok, I give...how can I do this...

Thanks for the tip, Josh...yet another way I'll have to validate an
entry.  Maybe it's just easier to let them make an illegal entry, then
tell them how I want them to enter the data than try to catch all the
possible violations...

I wonder what will happen if they enter
$1,000 and I run it against
IsNumeric(Replace(Form.Dollars, ,,,all)) ?
What about that dollar sign?

I'll have to see...thanks, Josh...

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234421
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Dan G. Switzer, II
SELECT elements are rendered by the OS, not the browser.  So you can't
draw on top of them.  If you need to have something drawn on top of
the space they occupy, you need to hide the SELECT element (display:
none) manually, and then make it visible again (display: block) when
the content above it goes away.

That's only true for Internet Explorer v6 (or below) on Windows. Microsoft
is changing that behavior in IE7.

Other non-IE browsers are not affected by this issue.

-Dan


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234420
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Query brain teaser

2006-03-07 Thread Jim Wright
you could create a table with a record for each question...1-50, then
do a cross join on the original table and use case statements to get
the answer...the case statement will get kind of ugly, but it should
work...

so you have tblanwers...uniqueID   q1 q2 q3 ... q50
and tblquestions...questionnumber

select tblanswers.uniqueid, tblquestions.questionnumber,
CASE tblquestions.questionnumber
WHEN 1 THEN q1
WHEN 2 THEN q2
WHEN 3 THEN q3
etc etc
END
AS ANSWER
FROM tblanswers CROSS JOIN tblquestions


On 3/7/06, Robert Everland III [EMAIL PROTECTED] wrote:
 I have come across this a few times and was wondering how some of you would 
 attack it.

 I have a table that looks like this


 uniqueID   q1 q2 q3 ... q50

 In reality the table should look like this

 uniqueID   studentID  answer   qid


 I need it to have multiple records so I can do a join on a table that holds 
 the answer which is written as a table with multiple records as opposed to a 
 table with multiple columns.I know I can accomplish this in coldfusion. The 
 way I did it was to query the big table, then create a structure so each 
 column was in a structure. What would you have done?



 Bob

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234422
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Site-wide error trapping

2006-03-07 Thread Andy Matthews
My company has a CF error log that we maintain for all of our sites. I went
through it last night and was shocked at all of the errors that are getting
reported.

Other than manually trapping each individual possibility, is there a way to
catch all errors and display them in a nice pretty page instead of showing
the default CF error page?

Up until now, error handling has not been my strong point, and in most cases
hasn't thought of at all. I'm wondering if there's some code that I can
write (or use from someone else) that could be put maybe in the Application
file that might do what I need.

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234423
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Andy Matthews
Mike...

Care to share one small code example? How are you initializing this User
bean? Do you just pass it an id? How are you storing the values inside the
user bean? Do you really have individual UPDATE queries just to set each
field value?

It sounds really awesome, but I'm not clear one some of those things.

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED]
Sent: Monday, March 06, 2006 5:03 PM
To: CF-Talk
Subject: Re: OOP, why me?


G'day Josh,

I wanted to avoid using the OOP jargon terms that so confused me when I was
learning, but a few sneaked in there.   For all I know I have it confused
myself, but it works for me so let me see if i can try and explain it
without using the OOP jargon, then when you go and read a more knowledgeable
explanation it might make more sense to you  (note to experts - I know
this is simplified, but that's what's sorely lacking to beginners at this
OOP thing)

A bean is a CFC containing a single object.   Think of a query.  It is an
object that might contain a thousand records.   We're all used to creating
the query object at the top of a page, and passing it around the page,
accessing the elements inside it at points down the page.

A bean contains all the data relating to one record. A user bean for
example might be a cfc that has a value for a single user's first name, last
name, email address, username, password  etc.So by passing the User bean
to a page, in one element you pass everything the bean knows about one
person. The only job the bean does is hold the data about one record so
it can be passed around the site.Think of it as a coffee bean.  In the
coffee jar, there is a bean with Kear on it, and another with Josh on it
and thousands of others.   Want to know about kear?  just get the Kear
 bean.(Actually what you do is initialise the User bean with the Kear
data).  Inside the Kear bean is a value #user.getLastName()# and another
value #user.getEmail()#.At any point, values can be changed it your app
requires it by #user.setEmail()#   Now the bean has a different value for
email.

The UsersDAO (Data Access Object) is the cfc that looks after all the
database interaction with the Users table.  It contains the CRUD  (Create,
Read, Update, Delete) methods and some others.   It's where all your queries
are.   So to save the new email value to the database for example,   you
pass the User bean into the update() method of the UserDAO.cfc.  ALL the
values currently in the bean are saved to the User table.   You dont need to
check any more whether you have values for this field or that field, because
ALL the fields always have values in the bean, even if they're Null values.


This is not the only way to think of these things.   But it's what I used in
my CMS app, and it works pretty fine for me.

Multiply this by 15-20 tables and before you know it you have a framework,
whether you call it Model-Glue or MachII or Scaffolding.  What the framework
gives you is a defined, organised way or doing things so that others
following along behind you or working along with you know what's going to be
where.

I'm doing some work right now on an old app that was written some years ago,
and it takes me 40 minutes finding the code i want to change for every 5
minutes actually making changes.   With a framework, that ratio is reversed.

I hope this helps you.

Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month



On 3/7/06, Josh Nathanson [EMAIL PROTECTED] wrote:

 Mike, can you please define two things in your message:

 1. bean - I know this is related to the java style method of OO but can
 you
 please expound?
 2. DAO

 -- Josh






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234424
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Single user, light CF server

2006-03-07 Thread Larry Lyons
CFanywhere:

http://67.124.145.42/CFAnywhereDocs/CFAnywhere.html

unfortunately that page timed out. Are there any other URL's for CFAnywhere?

thx,
larry
--
Larry C. Lyons
Web Analyst
BEI Resources
American Type Culture Collection
email: llyons(at)atcc(dot)org
tel: 703.365.2700.2678
--

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234425
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Rick Faircloth
Yeah...without looking into Fusebox directly,
I figured it worked something like that.  I didn't
want to launch full-scale into Fusebox, but wanted
to test some of what I understood to be the theory
behind it.

I'm approaching this OOP, etc., like designing
with CSS as a layout approach...I'll take a tiny part
and see if I can implement it, then just grow from
there...maybe I'm a FuseHead in the making... ;o)

Rick

 -Original Message-
 From: James Holmes [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 9:07 AM
 To: CF-Talk
 Subject: Re: OOP, why me?
 
 
 On 3/7/06, Rick Faircloth [EMAIL PROTECTED] wrote:
 
  However, I will say that I have recently attempted
  to put all my processing in a template and use
  CFSWITCH / CFCASE to process info ...[snip]
 
 You just described the basics of Fusebox.
 
 --
 CFAJAX docs and other useful articles:
 http://jr-holmes.coldfusionjournal.com/
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234426
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Ok, I give...how can I do this...

2006-03-07 Thread Rick Faircloth
Sounds good...since I can't write RegEx's,
could you whip one up for me without too
much trouble?

Rick


 -Original Message-
 From: Dawson, Michael [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 9:23 AM
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...
 
 
 I would use a regular expression to remove *all* non-numeric characters.
 Then, check to see if the remainder is numeric.  You could do this both
 on the client and the server.
 
 M!ke 
 
 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 06, 2006 7:16 PM
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...
 
 Thanks for the tip, Josh...yet another way I'll have to validate an
 entry.  Maybe it's just easier to let them make an illegal entry, then
 tell them how I want them to enter the data than try to catch all the
 possible violations...
 
 I wonder what will happen if they enter
 $1,000 and I run it against
 IsNumeric(Replace(Form.Dollars, ,,,all)) ?
 What about that dollar sign?
 
 I'll have to see...thanks, Josh...
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234427
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Ok, I give...how can I do this...

2006-03-07 Thread Dawson, Michael
CFLib to the rescue...

http://www.cflib.org/udf.cfm?ID=433

M!ke 

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 07, 2006 8:51 AM
To: CF-Talk
Subject: RE: Ok, I give...how can I do this...

Sounds good...since I can't write RegEx's, could you whip one up for me
without too much trouble?

Rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234428
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Andy Matthews
by that time it'll be CF 9 Rick. Do it...make the leap!

:)

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: Monday, March 06, 2006 7:09 PM
To: CF-Talk
Subject: RE: OOP, why me?


C++?  Sure...I was one of the authors!  Not!

I hear what you're saying and I'll probably jump
the 4.5.2 ship at some point and swim over
to the CF 7 or whatever version is available at
that time, and have some of you pull me out
of the water...just keep a flotation device (or 10)
handy!  :o)

Rick

 -Original Message-
 From: Dave Watts [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 06, 2006 7:41 PM
 To: CF-Talk
 Subject: RE: OOP, why me?


  ... ever since CF became based on java, of which I know nothing ...

 Before CF was written in Java, it was written in C++ I think. Do you know
 anything about that? If you do, do you find that knowledge useful
 in working
 with CF? Personally, I hardly know anything about C++ except how to spell
 it, but that didn't make any difference to my ability to work with CF.

 The only thing about CF being written in Java that's at all important to
 most CF developers, is that they may have to do JVM tuning to ensure
 adequate performance and scalability. Most CF developers using CFMX do not
 have to even worry about that, in my experience. What I'm getting
 at is that
 your lack of Java knowledge shouldn't be an obstacle in using
 CFMX. There's
 a ton of great stuff in there that you don't have now - CFCs are just one
 thing.

 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 information!






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234429
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Rick Faircloth
Wow!  You're right!  I've got IE 7 on my laptop
and the app works great in it!  Well, this client
will be updating to IE 7!

Thanks!  I was already making my way through
the dispare of the thought of a redesign!  Now the
clouds have parted!  Yes!

You have made my day!

Rick

 -Original Message-
 From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 9:27 AM
 To: CF-Talk
 Subject: RE: Why do my selects in an iFrame do this?


 SELECT elements are rendered by the OS, not the browser.  So you can't
 draw on top of them.  If you need to have something drawn on top of
 the space they occupy, you need to hide the SELECT element (display:
 none) manually, and then make it visible again (display: block) when
 the content above it goes away.

 That's only true for Internet Explorer v6 (or below) on Windows. Microsoft
 is changing that behavior in IE7.

 Other non-IE browsers are not affected by this issue.

 -Dan


 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234431
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: JRun High Memory Usage on CFMX 7

2006-03-07 Thread Leon Oosterwijk
Ming Lu, 

If you find jrun running out of memory you have several options.
A) Increase the maximum memory
B) determine what is using so much memory and try to minimize it
C) check if you have a memory leak and try to fix it

The easiest is option A). You just have to edit your jvm.config file in
the bin directory in your jrun install. And change the -Xmx setting. 

For B), you mention you have a log of session variables which could also
be application variables. The application scope is a shared scope, which
means all your sessions could share the same variable. This would cut
down on your memory usage in a big way, but only if the variables are
the same for all users. A Session.userID would not work as
Application.userID because it is unique for each session. 

Leon
 

-Original Message-
From: Ming Lu [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 9:39 AM
To: CF-Talk
Subject: JRun High Memory Usage on CFMX 7

Hi,

Our sites running on Windows Server 2003 with CFMX 7 use session
variables  (Maximum Timeout has been setup as 40 minutes). Recently we
noticed that the high memory usage for JRun is always associated with
high numbers of openned sessions. Metrics logging showed that sometimes
sessions reached more than 40 and at the same time the JRun used about
400 MB memory, which caused the JRun to a halt and the sites couldn't be
displayed. It happens almost once a day recently.

Does anyone know a solution to this problem? Should we replace all the
session variables with application variables? If so what is the best
Maximum Timeout for application variables? 

Thank you very much in advance!

Ming Lu



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234430
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Popular Open API's

2006-03-07 Thread S . Isaac Dealey
Oh external API's ... okay ... That's pretty much where my experience
is gonna taper off... I haven't really needed to or examined any
external api's ... with the exception of eBay (which I noticed you
didn't mention, but I'm guessing is probably on your list :) that I
learned some of for a client project that got canned. Of course you
didn't list Amazon.com either, although I'm guessing that's also
already on your list. WeatherBug ? (Do they have a public web api?)

 These are great examples of API's, but I was meaning more
 like the
 Flickr API, the Yahoo! and Google maps api's, and the
 Paypal api's,
 the more mainstream API's that you always hear so much
 about.

 But keep them coming, I want to hear about these as well.

 On 3/6/06, Paul Hastings [EMAIL PROTECTED] wrote:
 S. Isaac Dealey wrote:
  JSON
  SOAP
  JDOM/Xalan/Xerces -- although you don't see much of
  these with CF
  java.util.Zip
  java.util.TimeZone

 don't forget the rest of core java. i expect they're
 darned popular.

  ICU4J (IBM's internationalization (i18n) project)

 well of course icu4j ;-)

s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234432
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Ok, I give...how can I do this...

2006-03-07 Thread S . Isaac Dealey
 CFIF Len(Trim(Form.Dollar_Amount)) and Not
 IsNumeric(LSParseNumber(Form.Dollar_Amount))

   - Now why didn't this work? Oh, now I remember...a junk
   entry like, asdflkj, can't
 be parsed by LSParseNumber and throws a CF error...

Oh yeah, sorry... I forgot that the behavior of LSParseNumber() is ...
horrific...

It would be _MUCH_ better for it to return an empty string than to
throw an error, but I digress...

cftry
   cfif len(trim(form.dollar_amount)) and
   not isNumeric(LSParseNumber(trim(form.dollar_amount)))
  cfthrow type=validation message=not a number
   /cfif
   cfcatch
... do some stuff with the bad number information ...
   /cfcatch
/cftry

Here's a good reason to upgrade. :) If you were using a more recent
version of CF (specifically MX or later) you could put this try-catch
block into a custom function so that you wouldn't have to repeat it
for each field you wanted to validate.

Note that I trim the form value before executing LSParseNumber() -- I
suspect that white space before or after the number may also cause an
error on an otherwise valid number, so it's probably better to just
trim it to be sure.


 CFIF Len(Trim(Form.Dollar_Amount)) and Not
 IsNumeric(LSParseNumber(Val(Form.Dollar_Amount)))

   - Worked for entries like 1,000 but didn't work with junk
   entries, like
 sldifjo,
 because I think Val created a value of 0 for the string

Yep, it does. Val() in general is probably most useful for performing
math with query data when the column might contain a null.


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234433
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Site-wide error trapping

2006-03-07 Thread Douglas Knudsen
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=part_adm.htm
site-wide error template settings

http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=part_cfm.htm
application level error templates

EIther of these will do.  Note that using these means youor errors are
not logged to the logs.  Look at CFLOG tag for this, or you can roll
your own, or both.

Where I work I set up my own logging of errors to a DB.  I then have
tasks running to email errors that occur in a hourly, daily, and
10-minute emergency report.

DK

On 3/7/06, Andy Matthews [EMAIL PROTECTED] wrote:
 My company has a CF error log that we maintain for all of our sites. I went
 through it last night and was shocked at all of the errors that are getting
 reported.

 Other than manually trapping each individual possibility, is there a way to
 catch all errors and display them in a nice pretty page instead of showing
 the default CF error page?

 Up until now, error handling has not been my strong point, and in most cases
 hasn't thought of at all. I'm wondering if there's some code that I can
 write (or use from someone else) that could be put maybe in the Application
 file that might do what I need.

 !//--
 andy matthews
 web developer
 ICGLink, Inc.
 [EMAIL PROTECTED]
 615.370.1530 x737
 --//-


 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234434
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Query brain teaser

2006-03-07 Thread James Holmes
I think it could be done in either. If it's a DB with a good procedure
language (e.g. Oracle) then my choice would be a stored proc.

On 3/7/06, Robert Everland III [EMAIL PROTECTED] wrote:
 So how did you write the conversion? ColdFusion or stored procedure? Just 
 seeing if there is another way to do it besides what I am currently doing.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234435
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: JRUN Metrics

2006-03-07 Thread Dave Watts
 I am trying to figure out what exactly the Sessions refer 
 to on my coldfusion-event.log. Does the Sessions refer to 
 how many total session variables are set on my application? I 
 am having a problem with that number causing my JRUN.exe to 
 take up a lot of memory.
 
 When the number of sessions gets to around 21 my JRUN memory 
 is usually around 400+k and becomes unresponsive.
 
 Can anyone help me out?

I'm pretty sure this refers to the number of user sessions. Each session may
contain any number of variables within the Session scope, of course.

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 information!


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234436
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: JRUN Metrics

2006-03-07 Thread Douglas Knudsen
http://livedocs.macromedia.com/jrun/4/JRun_Administrators_Guide/netmon2.htm#1096147

sessions is the current number of active sessions.  Note this refers
to JRun sessions.  If you are storing large amounts. really large
amounts, of stuff in session vars, you could use up lots of ram, eh? 
all depends on what you are storing in there.  There is no measurement
of how much RAM sessions are using.

DK

On 3/7/06, Chad McCue [EMAIL PROTECTED] wrote:
 I am trying to figure out what exactly the Sessions refer to on my 
 coldfusion-event.log. Does the Sessions refer to how many total session 
 variables are set on my application? I am having a problem with that number 
 causing my JRUN.exe to take up a lot of memory.

 When the number of sessions gets to around 21 my JRUN memory is usually 
 around 400+k and becomes unresponsive.

 Can anyone help me out?

 Thanks.



 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234437
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Rick Faircloth
But the water's deep!  And it's cold, too!  :o)

Maybe by the time I upgrade, I can just describe
to CF what I want and it'll choose the be methodology,
be it OOP, Flash Remoting, Javascript, etc., to do the
job, then write the code, design the interface and
mail an invoice for me!

Hey...it could work...voice command has come a long way!  :o)

Rick

 -Original Message-
 From: Andy Matthews [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 10:00 AM
 To: CF-Talk
 Subject: RE: OOP, why me?
 
 
 by that time it'll be CF 9 Rick. Do it...make the leap!
 
 :)
 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234438
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Rick Faircloth
Dispare ... what's that?
Is that like when you say things about your
car's spare tire because it's flat?

Excuse me...dispair!

Rick


 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 10:04 AM
 To: CF-Talk
 Subject: RE: Why do my selects in an iFrame do this?
 
 
 Wow!  You're right!  I've got IE 7 on my laptop
 and the app works great in it!  Well, this client
 will be updating to IE 7!
 
 Thanks!  I was already making my way through
 the dispare of the thought of a redesign!  Now the
 clouds have parted!  Yes!
 
 You have made my day!
 
 Rick
 
  -Original Message-
  From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 07, 2006 9:27 AM
  To: CF-Talk
  Subject: RE: Why do my selects in an iFrame do this?
 
 
  SELECT elements are rendered by the OS, not the browser.  So you can't
  draw on top of them.  If you need to have something drawn on top of
  the space they occupy, you need to hide the SELECT element (display:
  none) manually, and then make it visible again (display: block) when
  the content above it goes away.
 
  That's only true for Internet Explorer v6 (or below) on 
 Windows. Microsoft
  is changing that behavior in IE7.
 
  Other non-IE browsers are not affected by this issue.
 
  -Dan
 
 
  
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234439
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OT: Popular Open API's

2006-03-07 Thread Munson, Jacob
Here's a huge list of publicly available web services: 
http://www.xmethods.net/ 

 -Original Message-
 From: Ryan Guill [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 07, 2006 5:42 AM
 To: CF-Talk
 Subject: Re: OT: Popular Open API's
 
 These are great examples of API's, but I was meaning more like the
 Flickr API, the Yahoo! and Google maps api's, and the Paypal api's,
 the more mainstream API's that you always hear so much about.
 
 But keep them coming, I want to hear about these as well.

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234440
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Site-wide error trapping

2006-03-07 Thread Dave Carabetta
On 3/7/06, Andy Matthews [EMAIL PROTECTED] wrote:
 My company has a CF error log that we maintain for all of our sites. I went
 through it last night and was shocked at all of the errors that are getting
 reported.

 Other than manually trapping each individual possibility, is there a way to
 catch all errors and display them in a nice pretty page instead of showing
 the default CF error page?

 Up until now, error handling has not been my strong point, and in most cases
 hasn't thought of at all. I'm wondering if there's some code that I can
 write (or use from someone else) that could be put maybe in the Application
 file that might do what I need.


Andy, your subject almost answers your question... Search the House of
Fusion archives for site-wide error handler and you'll see literally
hundreds of people's approaches to this problem. The Site Wide Error
Handler line in the ColdFusion Administrator is where you need to
define a catch-all template, but doing some research on it first
will go a long way toward fine-tuning exactly what you want.

Regards,
Dave.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234441
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Document Management??

2006-03-07 Thread I Cartanga
I use cffm from cfopen.org

 Anyone know of a basic CF Document Management System? 
 I'm not looking for an Enterprise level tool, but just some basic doc 
 management with security. I've toyed with using Farcry (yes, I know 
 it's a CMS)and it is way over-kill for what I'm looking for.
 I've googled till I'm dizzy, but can't find anything. Open-Source is 
 always good, as I'm sure I'll have to tweak it. The obvious 
 alternative it to write my own, but it seems like there should be 
 something out there.
 
 Thanks,
Terry

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234442
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Munson, Jacob
 From: Ray Champagne
 Sent: Monday, March 06, 2006 11:36 AM
 
 Jacob, mind sharing that blog link?
 
 I am learning to hate FrameWorks.  I am gung-ho for the concepts that 
 you mentioned, but I don't think that FrameWorks are the only answer.
 
 
 Munson, Jacob wrote:
  
  I'm in the same boat you are.  Especially after reading a 
 blog entry by
  a prominent figure in the CF community, where the complaint 
 was given
  that simple changes to a framework based site were /not/ 
 simple.

Well, I took a long time to respond because I was trying to find that
link (in my free time).  I never could find it, but it was Ray Camden's
blog.  Also, I now remember that he was not complaining about
frameworks, but rather dropping a passing comment about a recent site he
worked on, and he also mentioned that the solution to this issue was to
use Reactor (Doug Hughes), which was created to alleviate the problem he
was discussing.


-

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234443
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread Aaron Rouse
What I do is have individual set method/functions for each field then one
method/function that updates the table using all those variables.  So I'd
have something like Variables.Instance[UserName] and a SetUserName() and
then something like UpdateUser() which updates using the Instance structure
of values.  But I really do not see my way of doing things as OOP.

On 3/7/06, Andy Matthews [EMAIL PROTECTED] wrote:

 Mike...

 Care to share one small code example? How are you initializing this User
 bean? Do you just pass it an id? How are you storing the values inside the
 user bean? Do you really have individual UPDATE queries just to set each
 field value?

 It sounds really awesome, but I'm not clear one some of those things.

 !//--
 andy matthews
 web developer
 ICGLink, Inc.
 [EMAIL PROTECTED]
 615.370.1530 x737
 --//-




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:23
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Rick Faircloth
Is there any reason anyone knows of why I shouldn't
just replace IE 6 on my development workstation with IE 7?
Or should I keep both?

Rick


 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 10:04 AM
 To: CF-Talk
 Subject: RE: Why do my selects in an iFrame do this?
 
 
 Wow!  You're right!  I've got IE 7 on my laptop
 and the app works great in it!  Well, this client
 will be updating to IE 7!
 
 Thanks!  I was already making my way through
 the dispare of the thought of a redesign!  Now the
 clouds have parted!  Yes!
 
 You have made my day!
 
 Rick
 
  -Original Message-
  From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 07, 2006 9:27 AM
  To: CF-Talk
  Subject: RE: Why do my selects in an iFrame do this?
 
 
  SELECT elements are rendered by the OS, not the browser.  So you can't
  draw on top of them.  If you need to have something drawn on top of
  the space they occupy, you need to hide the SELECT element (display:
  none) manually, and then make it visible again (display: block) when
  the content above it goes away.
 
  That's only true for Internet Explorer v6 (or below) on 
 Windows. Microsoft
  is changing that behavior in IE7.
 
  Other non-IE browsers are not affected by this issue.
 
  -Dan
 
 
  
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234445
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Ok, I give...how can I do this...

2006-03-07 Thread Rick Faircloth
Oh, bummer, M!ke!

That requires at least CF 5...I'm still on CF 4.5.2...

Ok, everyone chime in...Upgrade, Rick, Upgrade!
Join us in the new millineum!  :o)


 -Original Message-
 From: Dawson, Michael [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 9:53 AM
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...
 
 
 CFLib to the rescue...
 
 http://www.cflib.org/udf.cfm?ID=433
 
 M!ke 
 
 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 07, 2006 8:51 AM
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...
 
 Sounds good...since I can't write RegEx's, could you whip one up for me
 without too much trouble?
 
 Rick
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234446
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Ok, I give...how can I do this...

2006-03-07 Thread Rick Faircloth
So, basically, what you're saying (besides upgrade! :o),
is that it can't be done with any combination of CFIF statements...right?

I'm trying to figure out if I'm just continuing to beat a dead horse...

Rick

 -Original Message-
 From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 10:08 AM
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...
 
 
  CFIF Len(Trim(Form.Dollar_Amount)) and Not
  IsNumeric(LSParseNumber(Form.Dollar_Amount))
 
  - Now why didn't this work? Oh, now I remember...a junk
  entry like, asdflkj, can't
be parsed by LSParseNumber and throws a CF error...
 
 Oh yeah, sorry... I forgot that the behavior of LSParseNumber() is ...
 horrific...
 
 It would be _MUCH_ better for it to return an empty string than to
 throw an error, but I digress...
 
 cftry
cfif len(trim(form.dollar_amount)) and
not isNumeric(LSParseNumber(trim(form.dollar_amount)))
   cfthrow type=validation message=not a number
/cfif
cfcatch
   ... do some stuff with the bad number information ...
/cfcatch
 /cftry
 
 Here's a good reason to upgrade. :) If you were using a more recent
 version of CF (specifically MX or later) you could put this try-catch
 block into a custom function so that you wouldn't have to repeat it
 for each field you wanted to validate.
 
 Note that I trim the form value before executing LSParseNumber() -- I
 suspect that white space before or after the number may also cause an
 error on an otherwise valid number, so it's probably better to just
 trim it to be sure.
 
 
  CFIF Len(Trim(Form.Dollar_Amount)) and Not
  IsNumeric(LSParseNumber(Val(Form.Dollar_Amount)))
 
  - Worked for entries like 1,000 but didn't work with junk
  entries, like
  sldifjo,
because I think Val created a value of 0 for the string
 
 Yep, it does. Val() in general is probably most useful for performing
 math with query data when the column might contain a null.
 
 
 s. isaac dealey 434.293.6201
 new epoch : isn't it time for a change?
 
 add features without fixtures with
 the onTap open source framework
 
 http://www.fusiontap.com
 http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234447
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread S . Isaac Dealey
 However, I will say that I have recently attempted
 to put all my processing in a template and use
 CFSWITCH / CFCASE to process info because
 I wanted the user to stay on the same page of
 an app (an attempt to emulate desktop software)
 for working, even though it required trips back and
 forth to the server/database.  Keeping things visually
 simple is key for this client and I wanted to avoid
 changing pages as often as possible.

 So there is a lot of links with ?Action= attached to
 them and sent to a main processing template where
 processing was done according to the definition
 of Action...

 While it was simple to know where all the processing
 queries were located, that page was beginning to become
 a bear to maintain and track what was going on.  I found
 thee was something to be said for keeping the processes
 attached to their relevant displays when they process only
 affected on particular display...

Here's another alternative for you:

cfif fileExists(ExpandPath(action  .cfm))
cfinclude template=#action#.cfm
/cfif

Then put the contents of each of your case statements into a file with
the same name as your action value -- that would break up your page so
it's not such a bear to work with.

CF7's stack trace is pretty nice for telling you where errors are
happening... I use a lot of nested code where an error frequently
occurs in a CFC method, called from several other CFC methods leading
back up to an included template. With robust exceptions turned on in
the CF Administrator I usually get a nice list of which methods were
being called when the error happened. Usually the problem isn't in the
last template, it's usually somewhere further up the chain where I
provided bad information to one of my CFCs, so I scroll down to the
4th or 5th template in the list and it's pretty easy for me to fix
once I get there.

(Although the display of processing times for templates in debug
output is HUGE. I'd print it out, but I'd need a larger room to put it
in... like... Wyoming.)


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234448
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Why do my selects in an iFrame do this?

2006-03-07 Thread Claude Schneegans
 Is there any reason anyone knows of why I shouldn't
just replace IE 6 on my development workstation with IE 7?
Or should I keep both?

If you develop sites using CSS and/or Javascript, there is an obvious 
reason that you will need
both of them (and at least Firefox also) to make sure your application 
is cross browser
and will work for all users.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234449
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Munson, Jacob
You can use both of them at the same time.  I can't seem to find the
post at the moment, but you can download the exe file (for IE 7),
extract the contents using Winzip, and just run it from the folder you
extract it to.  You have to do a couple of other things that I can't
remember, but you don't have to let it replace your old IE install.  Do
a google search, and you'll find it.  :) 

 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 07, 2006 8:49 AM
 To: CF-Talk
 Subject: RE: Why do my selects in an iFrame do this?
 
 Is there any reason anyone knows of why I shouldn't
 just replace IE 6 on my development workstation with IE 7?
 Or should I keep both?

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234450
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


can one Submit button submit multiple forms in a specific order?

2006-03-07 Thread Jeremy Bunton
I need to be able to hit a submit button have it submit one form (that it is
not in) then after that submit has been processed submit a second form (form
the submit button is in). They have to be in order because processing in the
first form is needed for the second one.  I'm thinking I need a CF solution.
I tried js, but it submits both more or less at the same time.

Jeremy






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234451
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Ok, I give...how can I do this...

2006-03-07 Thread S . Isaac Dealey
 So, basically, what you're saying (besides upgrade! :o),
 is that it can't be done with any combination of CFIF
 statements...right?

 I'm trying to figure out if I'm just continuing to beat a
 dead horse...

Nope. Unfortunately because LSParseNumber() throws an error on any
value it can't parse, no amount of CFIF is going to be a complete
solution. You have to have a try-catch in it somewhere, otherwise your
page is just going to display a CF error to your user if they enter
some value CF doesn't understand.

This is why I really wish LSParseNumber would return an empty string
instead of producing an error -- because if it did, you could
gracefully use just cfif statements to test for valid numbers and
wouldn't need the extra try-catch statements.

:::sigh:::

CF's internationalization features in general seem to be rather
lacking unfortunately. They're certainly a lot better with more recent
versions of the server (and for most of us a bit easier to use than
Java -- I can't compare to PHP or ASP), but still fairly less than
ideal. Granted that throwing an error is what Java's NumberFormat
objects do with unrecognizable strings also, so it's consistent with
Java's behavior -- it's just not very easy/intuitive/useful/helpful
behavior (much like Java at large).


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234452
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Ok, I give...how can I do this...

2006-03-07 Thread Rick Faircloth
I got it!  (I think this is the first time I've ever used
a Regex...sad, huh?)

I couldn't use the UDF M!ke mentioned, but I did
take the Regex from the code and used as follows:

(This code allows an entry of a number in any format,
such as, $1,000, or 1,000 to entered and not cause
an error on either the processing or display side...)

4.5.2 lives!  :o)


Error Trapping Code:

 CFIF Not Len(Trim(Form.Premium))

  CFSET Form_Errors.Premium = Please enter the premium.

 CFELSEIF Len(Trim(Form.Premium)) and Not
IsNumeric(REReplace(Form.Premium, [^0-9\.],'','All'))

  CFSET Form_Errors.Premium = Please enter a valid number for the
premium.

 /CFIF


Display Code for the FormField:

CFIF IsDefined(Form.Issuing_Company) and Not
IsDefined(Form_Errors.Premium)

 INPUT Name=Premium Type=Text
Value=CFOUTPUT#DollarFormat(LSParseCurrency(Form.Premium))#/CFOUTPUT
Size=30 Class=TextInput01

CFELSEIF IsDefined(Form.Issuing_Company) and
IsDefined(Form_Errors.Premium)

 INPUT Name=Premium Type=Text
Value=CFOUTPUT#Form.Premium#/CFOUTPUT Size=30 Class=TextInput01

CFELSEIF Not IsDefined(Form.Issuing_Company)

 INPUT Name=Premium Type=Text Value= Size=30
Class=TextInput01

/CFIF



 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 10:56 AM
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...


 So, basically, what you're saying (besides upgrade! :o),
 is that it can't be done with any combination of CFIF statements...right?

 I'm trying to figure out if I'm just continuing to beat a dead horse...

 Rick

  -Original Message-
  From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 07, 2006 10:08 AM
  To: CF-Talk
  Subject: RE: Ok, I give...how can I do this...
 
 
   CFIF Len(Trim(Form.Dollar_Amount)) and Not
   IsNumeric(LSParseNumber(Form.Dollar_Amount))
 
 - Now why didn't this work? Oh, now I remember...a junk
 entry like, asdflkj, can't
   be parsed by LSParseNumber and throws a CF error...
 
  Oh yeah, sorry... I forgot that the behavior of LSParseNumber() is ...
  horrific...
 
  It would be _MUCH_ better for it to return an empty string than to
  throw an error, but I digress...
 
  cftry
 cfif len(trim(form.dollar_amount)) and
 not isNumeric(LSParseNumber(trim(form.dollar_amount)))
cfthrow type=validation message=not a number
 /cfif
 cfcatch
  ... do some stuff with the bad number information ...
 /cfcatch
  /cftry
 
  Here's a good reason to upgrade. :) If you were using a more recent
  version of CF (specifically MX or later) you could put this try-catch
  block into a custom function so that you wouldn't have to repeat it
  for each field you wanted to validate.
 
  Note that I trim the form value before executing LSParseNumber() -- I
  suspect that white space before or after the number may also cause an
  error on an otherwise valid number, so it's probably better to just
  trim it to be sure.
 
 
   CFIF Len(Trim(Form.Dollar_Amount)) and Not
   IsNumeric(LSParseNumber(Val(Form.Dollar_Amount)))
 
 - Worked for entries like 1,000 but didn't work with junk
 entries, like
   sldifjo,
   because I think Val created a value of 0 for the string
 
  Yep, it does. Val() in general is probably most useful for performing
  math with query data when the column might contain a null.
 
 
  s. isaac dealey 434.293.6201
  new epoch : isn't it time for a change?
 
  add features without fixtures with
  the onTap open source framework
 
  http://www.fusiontap.com
  http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234453
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Dan G. Switzer, II
Rick,

Wow!  You're right!  I've got IE 7 on my laptop
and the app works great in it!  Well, this client
will be updating to IE 7!

Thanks!  I was already making my way through
the dispare of the thought of a redesign!  Now the
clouds have parted!  Yes!

You have made my day!

I will say I've never seen the kind of flickering you're talking about,
unless my CPU is getting pegged out by other tasks. 

Have you tried accessing this page from another computer/browser running
IE6?


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234454
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Rick Faircloth
cfif fileExists(ExpandPath(action  .cfm))
cfinclude template=#action#.cfm
/cfif

Nice idea, Isaac... So the above ExpandPath
function assumes my processing templates
are in the same directory as the display page?

If so, what how would the code change if I put
my processing templates in directory called
processing and my display pages were in the
html directory?

(Showing my ignorance about the ExpandPath
function...haven't used it...familiar with it, but
not in depth...)

Rick


 -Original Message-
 From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 11:02 AM
 To: CF-Talk
 Subject: RE: OOP, why me?
 
 
  However, I will say that I have recently attempted
  to put all my processing in a template and use
  CFSWITCH / CFCASE to process info because
  I wanted the user to stay on the same page of
  an app (an attempt to emulate desktop software)
  for working, even though it required trips back and
  forth to the server/database.  Keeping things visually
  simple is key for this client and I wanted to avoid
  changing pages as often as possible.
 
  So there is a lot of links with ?Action= attached to
  them and sent to a main processing template where
  processing was done according to the definition
  of Action...
 
  While it was simple to know where all the processing
  queries were located, that page was beginning to become
  a bear to maintain and track what was going on.  I found
  thee was something to be said for keeping the processes
  attached to their relevant displays when they process only
  affected on particular display...
 
 Here's another alternative for you:
 
 cfif fileExists(ExpandPath(action  .cfm))
   cfinclude template=#action#.cfm
 /cfif
 
 Then put the contents of each of your case statements into a file with
 the same name as your action value -- that would break up your page so
 it's not such a bear to work with.
 
 CF7's stack trace is pretty nice for telling you where errors are
 happening... I use a lot of nested code where an error frequently
 occurs in a CFC method, called from several other CFC methods leading
 back up to an included template. With robust exceptions turned on in
 the CF Administrator I usually get a nice list of which methods were
 being called when the error happened. Usually the problem isn't in the
 last template, it's usually somewhere further up the chain where I
 provided bad information to one of my CFCs, so I scroll down to the
 4th or 5th template in the list and it's pretty easy for me to fix
 once I get there.
 
 (Although the display of processing times for templates in debug
 output is HUGE. I'd print it out, but I'd need a larger room to put it
 in... like... Wyoming.)
 
 
 s. isaac dealey 434.293.6201
 new epoch : isn't it time for a change?
 
 add features without fixtures with
 the onTap open source framework
 
 http://www.fusiontap.com
 http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234455
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: can one Submit button submit multiple forms in a specific order?

2006-03-07 Thread S . Isaac Dealey
 I need to be able to hit a submit button have it submit
 one form (that it is
 not in) then after that submit has been processed submit a
 second form (form
 the submit button is in). They have to be in order because
 processing in the
 first form is needed for the second one.  I'm thinking I
 need a CF solution.
 I tried js, but it submits both more or less at the same
 time.

 Jeremy

Sounds to me like you need one form.

You can certainly create a solution with JavaScript (that won't work
if the user has a screen-reader or disables javascript) that will
submit the forms in order, and you can even create a delay between
form submissions by using window.setTimeout() to tell the browser to
wait before the 2nd form submission. I would never recommend this
approach, however, because then you've got an added race condition.
You'll be depending on the fact that the first form submission will
always complete in x amount of time, which due to network congestion,
intermittent DNS outages, etc. may not be the case.

If you need to process input from form1 before processing input from
form2 I would definately recommend merging them to create a single
form and processing both sets of input in a single following request.


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234456
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Rick Faircloth
I don't develop using CSS as a tableless design style.
I still use tables, but with CSS to help with style...I use
very little Javascript also, so that's not much of a concern.

But I see your point.  I know you have to do something
besides just install IE 7 to keep IE 6.  Is there some info
somewhere on how to install IE 7 and keep IE 6, as well?

 -Original Message-
 From: Claude Schneegans [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 11:03 AM
 To: CF-Talk
 Subject: Re: Why do my selects in an iFrame do this?
 
 
  Is there any reason anyone knows of why I shouldn't
 just replace IE 6 on my development workstation with IE 7?
 Or should I keep both?
 
 If you develop sites using CSS and/or Javascript, there is an obvious 
 reason that you will need
 both of them (and at least Firefox also) to make sure your application 
 is cross browser
 and will work for all users.
 
 -- 
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234457
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: JRUN and CF7 Enterprise

2006-03-07 Thread Leon Oosterwijk
Chad, 

My response to you would be similar to my response to Ming Lu. What I've
found helpful is graphing my memory usage in mrtg or cacti. This way you
can see when/if it crests and if this causes your jrun to die. If the
session number is accurate that means you're using about 10 meg /
session. That seems exorbitant. You might want to re-evaluate your
application to see if there is some optimizations you can perform. 

Leon


-Original Message-
From: Chad McCue [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 2:45 PM
To: CF-Talk
Subject: JRUN and CF7 Enterprise

I am running ColdFusion 7 enterprise on a windows2003 server. I am
having serious JRUN memory problems. My server guy is viewing the
coldfusion-event.log and sees this line.

03/06 15:38:52 metrics Web Trends (busy/total)
{jrpp.busyTh}/{jrpp.totalTh} Sessions: 21 Total Memory=247616 Free=22786

He is telling me that the Sessions: 21 is causing the JRUN memory to
sky rocket and cause the CF server to be unresponsive.

Is that Sessions: 21 equal to the total number of session variables
set on the server?

And if so, why would 21 sessions cause JRUNs memory to increase to a
point where CF Server is unresponsive?

Thanks very much in advance.





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234458
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread Gareth
I thought this thread had gone quiet until I realised the whole list was 
quiet and being blocked by SpamCop...

Mike and Isaac, sincere thanks for the detailed responses. Mike, I've been a 
CSS convert for a number of years and that analogy was the first thing I've 
heard that really does help me understand the potential benefits of using an 
OOP approach.

I admit I need to read the thread again to get my head around OOP, MVC, 
Framework details but at least now I'm clearer about what I need to start 
understanding :o Even taking into account Claudes comments about the 
difficulties Frameworks can introduce (and I can relate to a framework based 
app being difficult to maintain if you're not familiar with the framework), 
I'm now thinking that at least understanding, even if not regularly using, 
OOP would be beneficial. To clarify, if the advantages are as great as those 
introduced by using CSS layouts then, even though I can't get my head around 
what they are just yet, I can see there would be real benefits to using a 
structured (MVC, OOP) approach.

As Mike mentioned, the slight off-topicness of the thread is a good thing. 
At the very least it helped me realise I know less than I thought :) So, 
thanks to all those who chipped in and debated the pros and cons.

Isaac, your explanations and examples have really helped - I'm pleased Rick 
said his head was spinning and prompted the extra explanation :)

Mike, is the bean/DAO approach you use an established framework (i.e. a 
methodology used by other people) or is it more of a working method you 
devised yourself because it made sense/was easy(ish) to understand?

Jacob, as someone else who's on the fence, has this thread helped your 
decision making?

As an aside, I was looking at Raymond Camden's blog earlier and read this 
which includes a lot of the good, bad and ugly points in two paragraphs:


It was the first time I did form validation in Model-Glue. To be honest, 
it felt a bit akward. I had a form view in one file, form validation in a 
controller, data validation in a bean, and the use of a Data Access Object 
(DAO) to save the data. It was more than a little bit difficult to grok the 
process with all these balls in the air.

Now that I'm done with it though, it makes more sense. I also like how my 
form is a lot slimmer. It's basically just the text. I know this is a 
reoccuring theme in my posts, but the seperation of all the pieces simply 
gives me the warm fuzzies. If for some reason I decide I hate Model-Glue, I 
would be able to re-use almost every line of code most likely. That's a 
Good Thing(tm).




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234459
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Rick Faircloth
CPU's not a problem...running 1-3% on a 
P4, 2.8...not a graphics card issue...there's
a stallion under the hood...

It happens consistently, even after a reboot.

It's probably just the way I'm using DIV's or
something.  The other formfields (regular
text inputs) aren't a problem at all...but the
selects disappear from the display during
and after scrolling of the iFrame until I run
the mouse over them...


 -Original Message-
 From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 11:16 AM
 To: CF-Talk
 Subject: RE: Why do my selects in an iFrame do this?
 
 
 Rick,
 
 Wow!  You're right!  I've got IE 7 on my laptop
 and the app works great in it!  Well, this client
 will be updating to IE 7!
 
 Thanks!  I was already making my way through
 the dispare of the thought of a redesign!  Now the
 clouds have parted!  Yes!
 
 You have made my day!
 
 I will say I've never seen the kind of flickering you're talking about,
 unless my CPU is getting pegged out by other tasks. 
 
 Have you tried accessing this page from another computer/browser running
 IE6?
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234460
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread Robert Everland III
Gareth,


The bean DAO method is used in some of Ray Camden's free application. The one I 
know of for sure is Lighthouse. This helped me understand some OOP stuff that I 
hadn't quite grasped before. http://ray.camdenfamily.com


Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234461
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Why do my selects in an iFrame do this?

2006-03-07 Thread Zaphod Beeblebrox
I got the following instructions for a sitepoint email:


So, let's say you're curious and you'd like to take IE7 for a spin,
but you're not ready to let it oust IE6 as your IE of choice -- can
this be done?

I'm no expert on the interplay of Microsoft components, but I did
manage to get it going, and I'm happy to run you through the process I
used to get it running on my XP system.

   1. Download and save the beta EXE but don't run it. It's a
self-extracting, self-installing ZIP file; we want to do this
manually.
   2. Create a new folder called 'IE7'.
   3. Right-click on the EXE and scroll down to 'Extract to...' for
Winzip. If you don't use Winzip, this process should work in your
decompression software of choice.
   4. Extract everything to your 'IE7' folder, making sure you keep
the folder structure intact by keeping 'Use folder names' checked.
   5. Open your 'IE7' folder, right-click inside the folder and scroll
to 'New/Text Document.
   6. Rename that file to 'iexplore.exe.local'. Make sure you're
changing the file's format, not just renaming your text document to '
iexplore.exe.local.txt'.
   7. That's it. Run 'iexplore.exe' in that folder -- do not run
'iesetup.exe', which will initiate the full install.




On 3/7/06, Munson, Jacob [EMAIL PROTECTED] wrote:
 You can use both of them at the same time.  I can't seem to find the
 post at the moment, but you can download the exe file (for IE 7),
 extract the contents using Winzip, and just run it from the folder you
 extract it to.  You have to do a couple of other things that I can't
 remember, but you don't have to let it replace your old IE install.  Do
 a google search, and you'll find it.  :)

  -Original Message-
  From: Rick Faircloth [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 07, 2006 8:49 AM
  To: CF-Talk
  Subject: RE: Why do my selects in an iFrame do this?
 
  Is there any reason anyone knows of why I shouldn't
  just replace IE 6 on my development workstation with IE 7?
  Or should I keep both?

 This transmission may contain information that is privileged, confidential 
 and/or exempt from disclosure under applicable law. If you are not the 
 intended recipient, you are hereby notified that any disclosure, copying, 
 distribution, or use of the information contained herein (including any 
 reliance thereon) is STRICTLY PROHIBITED. If you received this transmission 
 in error, please immediately contact the sender and destroy the material in 
 its entirety, whether in electronic or hard copy format. Thank you. A1.



 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234462
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Converting application.cfc to application.cfm

2006-03-07 Thread Michel Deloux
Hi all

I'm testing stickyCache, a very nice encapsulate model build by Nic Tunney.
Your link: http://www.nictunney.com/stickyCache.cfm.

stickyCache uses application.cfc to manage your session, init cache.cfc and
facade.cfc and so on. Great. Works fine in my dev machine with CF 7. But our
prod server haves CF MX 6.1. My simple question: how to convert an
application.cfc to application.cfm?

Any suggestions?

Cheers

MD


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234463
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Munson, Jacob
While we're on the subject, will one of you framework experts clear
something up for me?

I work on an Intranet application that leverages data from a few huge
databases, some of the tables contain millions of records.  The queries
we need to write to gather data can be very complex, often times in the
hundreds of lines.  Something I've often heard in the framework
discussions is that you guys use these DAO thingies to simplify access
to your data.  I have always doubted that a DAO would be useful for my
scenario, because our data queries are often very complex.

Here are the two big reasons I've heard people cite for using a DAO:
1. Abstraction of your database
2. Caches the data
Sure, we /could/ use a DAO, but it would be very specific to the one
report it is used for.  What's the point of using an object if you only
need it one page?  Also, I really don't want the millions of records
that would be filtered sitting in memory on my server.  The whole reason
databases were created in the first place was so that you don't /have/
to carry data around in your applications, you just grab the pieces you
need, when you need them.  Caching makes sense if you have a user table
with a couple hundred records, but when you are querying a financial
ledger that contains millions of rows, I'm not sure I'd want to
pre-cache the data.

I realize I may be butchering things here, as I've never used a
framework.  So please don't take this as an attack, but rather as an
attempt to understand the benefits of frameworks, and how they could
help me.

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234464
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread Ray Champagne
Ok, cool, thanks.  I'll check it out regardless.

Ray

Munson, Jacob wrote:
 From: Ray Champagne
 Sent: Monday, March 06, 2006 11:36 AM

 Jacob, mind sharing that blog link?

 I am learning to hate FrameWorks.  I am gung-ho for the concepts that 
 you mentioned, but I don't think that FrameWorks are the only answer.


 Munson, Jacob wrote:
 I'm in the same boat you are.  Especially after reading a 
 blog entry by
 a prominent figure in the CF community, where the complaint 
 was given
 that simple changes to a framework based site were /not/ 
 simple.
 
 Well, I took a long time to respond because I was trying to find that
 link (in my free time).  I never could find it, but it was Ray Camden's
 blog.  Also, I now remember that he was not complaining about
 frameworks, but rather dropping a passing comment about a recent site he
 worked on, and he also mentioned that the solution to this issue was to
 use Reactor (Doug Hughes), which was created to alleviate the problem he
 was discussing.
 
 
 -
 
 This transmission may contain information that is privileged, confidential 
 and/or exempt from disclosure under applicable law. If you are not the 
 intended recipient, you are hereby notified that any disclosure, copying, 
 distribution, or use of the information contained herein (including any 
 reliance thereon) is STRICTLY PROHIBITED. If you received this transmission 
 in error, please immediately contact the sender and destroy the material in 
 its entirety, whether in electronic or hard copy format. Thank you. A1.
 
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234465
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread S . Isaac Dealey
Well it is! So there! :)

 What I do is have individual set method/functions for each
 field then one
 method/function that updates the table using all those
 variables.  So I'd
 have something like Variables.Instance[UserName] and a
 SetUserName() and
 then something like UpdateUser() which updates using the
 Instance structure
 of values.  But I really do not see my way of doing things
 as OOP.


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234467
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread S . Isaac Dealey
Heh... No, that means to separate. :P

http://dictionary.reference.com/search?q=dispair

You're looking for despair. :)

But don't dispair! I mean... I just don't see a misspelling as grounds
for divorce. :)

 Dispare ... what's that?
 Is that like when you say things about your
 car's spare tire because it's flat?

 Excuse me...dispair!

 Rick

 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 10:04 AM
 To: CF-Talk
 Subject: RE: Why do my selects in an iFrame do this?


 Wow!  You're right!  I've got IE 7 on my laptop
 and the app works great in it!  Well, this client
 will be updating to IE 7!

 Thanks!  I was already making my way through
 the dispare of the thought of a redesign!  Now the
 clouds have parted!  Yes!

 You have made my day!

 Rick

s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234466
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Flash Forms: Checkbox Repeater loop?

2006-03-07 Thread Ken Dunnington
I've got a flash form that uses the Repeater formitem to create a few
checkboxes that have the same name, like in HTML forms. I've got this
working, and it submits a list of true/false values as expected (I
wish you could submit a list of actual values, like in HTML forms, but
that's another post) but I can't figure out how to access these values
in an event handler. I'm using the script formitem introducted in
7.0.1 so my onClick is calling a function. My function looks like this
so far, but it doesn't work:

function globalSelect():Void {
if (multiRegionsAllowed() == false  regions.selectedIndices.length  
1) {
for (var i:Number = 0; i  regions.getLength()-1; i++) {
if (regions.isSelected(i) == true) {
regions.getItemAt(i).selected = false;
}
}
}
}

The checkboxes are named regions and the relevant form items are as follows:

cfformgroup type=repeater query=regionQuery
cfinput type=checkbox name=regions
value={regionQuery.currentItem.value}
label={regionQuery.currentItem.name} onclick=globalSelect(); /
/cfformgroup

The reason I'm using a repeater as opposed to a cfloop is a) the
checkboxes are related and b) they checkboxes are unlikely to change
(though it isn't out of the question) and I want to avoid a recompile
whenever possible. If I alert(regions) I get a list of object
references, so I know that I CAN get at these values, I just can't
figure out HOW! :) Can someone please point me in the right direction?
The Flex documentation hasn't helped.
Thanks!
 - Ken

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234468
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread Aaron Rouse
That one part might be, but the other things I do and did not type I do not
see as being OOP.  Plus I never once have called anything I wrote a Bean  :P

On 3/7/06, S. Isaac Dealey [EMAIL PROTECTED] wrote:

 Well it is! So there! :)

  What I do is have individual set method/functions for each
  field then one
  method/function that updates the table using all those
  variables.  So I'd
  have something like Variables.Instance[UserName] and a
  SetUserName() and
  then something like UpdateUser() which updates using the
  Instance structure
  of values.  But I really do not see my way of doing things
  as OOP.


 s. isaac dealey 434.293.6201
 new epoch : isn't it time for a change?

 add features without fixtures with
 the onTap open source framework

 http://www.fusiontap.com
 http://coldfusion.sys-con.com/author/4806Dealey.htm


 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234469
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Object detection

2006-03-07 Thread Robert Everland III
StructKeyExists(application, myObj)



Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234470
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Object detection

2006-03-07 Thread Barney Boisvert
structKeyExists(application, myObj) is generally considered the best
way.  It's far more efficient than isDefined, as well as having far
less ambiguity about what you're testing.

I'd recommend, however, initializing all your application scope
objects at once, probably via a ColdSpring factory.  Initialize the
factory once, and then let ColdSpring take care of making sure all the
other objects are singletons (or not, if that's how you've configured
them).

cheers,
barneyb

On 3/7/06, Martin Thorpe [EMAIL PROTECTED] wrote:
 Hello all.



 What is the best, recommended/practice, way to detect if an object,
 component, exists.  For instance loading an object into the application
 scope you only need to load it if it is no longer defined.  So I guess
 you could do this but would it be the best approach:



 cfif NOT isdefined(application.myObj)

!--- code to create and instantiate the object ---

 /cfif



 thanks for reading.

 Cheers

 Martin

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234471
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Site-wide redirect?

2006-03-07 Thread Barthle, Robert \(Contractor\)
That sounds like a task for a Custom 404 page. Does your host allow you to set 
one?




thanks 
-r 
_ 
Rob Barthle 
Contractor - Sr. Software Developer 
[EMAIL PROTECTED] 
202-245-6484 



-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 9:18 AM
To: CF-Talk
Subject: Site-wide redirect?


I recently redesigned my personal website, moving from 10 or so individual
files, to a single main template. Those files have been deleted as I don't
like clutter in my directories.

Problem is that now, search engines are still looking for those files. I'm
wondering if it's somehow possible, using CF, to code a sitewide redirect
back to index.cfm from any missing page.

Anyone?

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234472
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread Gareth Hughes
I thought this thread had gone quiet until I realised the whole list was 
quiet and being blocked by SpamCop...

Mike and Isaac, sincere thanks for the detailed responses. Mike, I've been a 
CSS convert for a number of years and that analogy was the first thing I've 
heard that really does help me understand the potential benefits of using an 
OOP approach.

I admit I need to read the thread again to get my head around OOP, MVC, 
Framework details but at least now I'm clearer about what I need to start 
understanding :o Even taking into account Claudes comments about the 
difficulties Frameworks can introduce (and I can relate to a framework based 
app being difficult to maintain if you're not familiar with the framework), 
I'm now thinking that at least understanding, even if not regularly using, 
OOP would be beneficial. To clarify, if the advantages are as great as those 
introduced by using CSS layouts then, even though I can't get my head around 
what they are just yet, I can see there would be real benefits to using a 
structured (MVC, OOP) approach.

As Mike mentioned, the slight off-topicness of the thread is a good thing. 
At the very least it helped me realise I know less than I thought :) So, 
thanks to all those who chipped in and debated the pros and cons.

Isaac, your explanations and examples have really helped - I'm pleased Rick 
said his head was spinning and prompted the extra explanation :)

Mike, is the bean/DAO approach you use an established framework (i.e. a 
methodology used by other people) or is it more of a working method you 
devised yourself because it made sense/was easy(ish) to understand?

Jacob, as someone else who's on the fence, has this thread helped your 
decision making?

As an aside, I was looking at Raymond Camden's blog earlier and read this 
which includes a lot of the good, bad and ugly points in two paragraphs:


.It was the first time I did form validation in Model-Glue. To be honest, 
it felt a bit akward. I had a form view in one file, form validation in a 
controller, data validation in a bean, and the use of a Data Access Object 
(DAO) to save the data. It was more than a little bit difficult to grok the 
process with all these balls in the air.

Now that I'm done with it though, it makes more sense. I also like how my 
form is a lot slimmer. It's basically just the text. I know this is a 
reoccuring theme in my posts, but the seperation of all the pieces simply 
gives me the warm fuzzies. If for some reason I decide I hate Model-Glue, I 
would be able to re-use almost every line of code most likely. That's a 
Good Thing(tm).



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234473
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


is this thing on?

2006-03-07 Thread Bryan Stevenson
I just don't know what to do when my inbox doesn't flood with CF_Talk mail 
first thing in the morning ;-)

I take there is a list problem?

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234474
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Munson, Jacob
 From: Gareth
 Sent: Tuesday, March 07, 2006 9:31 AM
 
 Jacob, as someone else who's on the fence, has this thread 
 helped your 
 decision making?

Well, I just sent in another big email asking for clarifications, so I'm
still on the fence.  :)

 As an aside, I was looking at Raymond Camden's blog earlier 
 and read this 
 which includes a lot of the good, bad and ugly points in two 
 paragraphs:

That looks like the blog entry I was looking for, that I mentioned
earlier!  Man, I must be blind...


---


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law.  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in 
error, please immediately contact the sender and destroy the material in its 
entirety, whether in electronic or hard copy format.  Thank you.   A2



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234475
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Site-wide redirect?

2006-03-07 Thread Andy Matthews
I host with the company for which I work, so I suppose so. Good idea, let me
look into that.

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Barthle, Robert (Contractor) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 11:01 AM
To: CF-Talk
Subject: RE: Site-wide redirect?


That sounds like a task for a Custom 404 page. Does your host allow you to
set one?




thanks
-r
_
Rob Barthle
Contractor - Sr. Software Developer
[EMAIL PROTECTED]
202-245-6484



-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 9:18 AM
To: CF-Talk
Subject: Site-wide redirect?


I recently redesigned my personal website, moving from 10 or so individual
files, to a single main template. Those files have been deleted as I don't
like clutter in my directories.

Problem is that now, search engines are still looking for those files. I'm
wondering if it's somehow possible, using CF, to code a sitewide redirect
back to index.cfm from any missing page.

Anyone?

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234476
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


How to Quit Excel

2006-03-07 Thread Mingo Hagen
Hi all,

I'm trying to get a COM-called-instance of Excel to quit... so far no 
luck. It just stays there in my task manager laughing at me, also in the 
task manager when I try to end-task it, it doesn't and returns an error 
'Unable to Terminate Process, Access is denied'.

I use the following code:
cfscript
  myExcel = createObject( COM, Excel.application );
  myExcel.Quit();
  myExcel = '';
/cfscript

I've tried it with and without saving and closing workbooks.
Now, I did stumble upon a possible solution on some google-found page 
which mentions using the GarbageCollector in VisualStudio but I'm not 
sure that is a possibility here since we're talking coldfusion 5 (don't 
ask why i'm not using cfmx+, it's not an option, the customer doesn't 
want it).

They use this code:
Private Sub StartandStopExcel()
  Dim mseExcel As Excel.Application
  mseExcel = New Excel.Application
  mseExcel.Quit()
  mseExcel = Nothing
  GC.Collect()
End Sub

Does anyone know of a way to get rid of excel (or a way to contact the 
garbagecollector from CF5), my current solution is to just use one excel 
instance and keep reusing that (using the application scope) But the 
coldfusion seems to crash on this method now and again.

Thanks,
Mingo

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234477
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread S . Isaac Dealey
 cfif fileExists(ExpandPath(action  .cfm))
   cfinclude template=#action#.cfm
 /cfif

 Nice idea, Isaac... So the above ExpandPath
 function assumes my processing templates
 are in the same directory as the display page?

 If so, what how would the code change if I put
 my processing templates in directory called
 processing and my display pages were in the
 html directory?

 (Showing my ignorance about the ExpandPath
 function...haven't used it...familiar with it, but
 not in depth...)

I unfortunately don't find ExpandPath() to be terribly useful in my
own development because it starts from the directory containing the
base template (the one used in the browser's address bar -- I'm sure
you already knew that :)  ... The way I work (with lots of
subdirectories), the path of the base template is rarely (if ever)
relevant, because cfinclude and cfmodule tags don't use the base
template as their point of reference, they use the current template.
So imo it would be _much_ more useful (that is to say -- it would be
useful period) if ExpandPath() used the current template directory as
its baseline. To give you an example why the implementation of
ExpandPath() is patently bad, lets say you have a base template
form.cfm inside form.cfm you're including another template called
switch.cfm which includes code like I described above. Now lets say
that you decide you want to move switch.cfm and all of its associated
files into a subdirectory. Here's an illustration:

You're chaing this:

/form.cfm
/switch.cfm
/switch_x.cfm
/switch_y.cfm

to this:

/form.cfm
/switch/switch.cfm
/switch/switch_x.cfm
/switch/switch_y.cfm

Now... if you've used ExpandPath() to check for the existence of the
file as in the code above, once you've moved these files your
application won't include any of the switch_x.cfm or switch_y.cfm
templates, even though the path to the included templates which is
used in your cfinclude tag is correct and hasn't changed. The reason
is because although you moved switch.cfm into a subdirectory,
ExpandPath() still starts from the parent directory.

This can be fixed by changing the code to read ExpadnPath(switch/ 
action  .cfm), however, then you have the name of the subdirectory
in your code. What happens if you decide to change the name of the
directory? Well... when you change the name of the directory you then
suddenly have to change this block of code again, which shouldn't be
necessary. It's understandable that you would need to change the path
in form.cfm, but needing to change the code in a template because its
_parent_ directory name changed imo is unacceptable.

Thus ExpandPath() will _always_ produce an undesirable dependancy on
the base template directory of your application. So... I don't
recommend that people use ExpandPath() as a rule...

I used it in my original example really because this explanation
wasn't really necessary to explain the include concept, because you
can write code that works with it (even if it's less maintainable),
because I figured you'd appreciate the simplified explanation, and
because I had the impression your applications are designed
specifically for your clients (mine are for general consumption) and
tend to be smaller anyway (didn't you say this in a previous post?) in
which case, the maintenance hassle that ExpandPath() causes is less of
an issue.

For your specific directory structure, this (or something very close
to it) should work:

cfif FileExists(ExpandPath(../processing/  action  .cfm))
cfinclude template=../processing/#action#.cfm
/cfif

I'm assuming that the html directory is synonymous with your web
root directory. If the html directory is a subdirectory of your web
root, then you would just drop ../ from those paths.

s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234478
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread Gareth Hughes
Cool, thanks for that Bob.

 Gareth,
 
 
 The bean DAO method is used in some of Ray Camden's free application. 
 The one I know of for sure is Lighthouse. This helped me understand 
 some OOP stuff that I hadn't quite grasped before. http://ray.
 camdenfamily.com
 
 
Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234479
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: anyone used cfx_zip??

2006-03-07 Thread Srinivasa Teja Palla
I got it working.. right now notusing coldfusion solution, 

I downloaded pkzipc (command line utility for pkzip on windows) installed it.

now whenever user selects a folder he is interested in (the one from which he 
selectively chooses folders and files to zip )

I first create batch file (which I run using cfexecute). first line in the 
batch file is a cd - change directory. cfexecute now changes its directory to 
the directory of interest And then teh second line is, the pkzipc command BUT 
WITH FULL PATH NAME (this is what threw me off for a while. since when done 
thru the command prompt, it doesn't complain. but when run thru cfexecute it 
still wouldn't complain but wouldn't create the zip either) to the pkzipc 
executable. So basically my batch file looke like:

cd curdirectory
c:\program files\pkzip\pkzipc\pkzipc.exe -add -recurse -path=current 
folder1\*.* folder9\*.* file23

etc 
Make sure you enclose the names in double quotes to take care of spaces in the 
names.

Thanks all for your tiem with this. Actually the guy at pkzip helpmed me a lot 
with this. He is the one who suggested to give the full path to the executable.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234480
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CF MX 7 and DB2 connection timeout SOLVED

2006-03-07 Thread dsmith
Unchecking the 'Maintain Database Connnections' check box seems to have fixed 
the problem.  Our AS/400 was unavailable for a significant time this w/e for an 
offline backup.  In the past this would have definitely killed the datasource.  
But Monday morning everything was OK.

We recently moved our web site to a CF MX7 box.  Ever since we
occasionally get the following error Error Executing Database
Query.[Macromedia][SequeLink JDBC Driver][ODBC Socket][IBM][iSeries
Access ODBC Driver]Communication link failure. comm rc=10054 - CWBCO1047
- The iSeries server application disconnected the connection  
In the log files this is always preceded by the following error message 
Error,jrpp-1375,03/02/06,19:01:00,PSEA,Error Executing
Database Query.Timed out trying to establish connection  This message
happens 1-4 times and then the ODBC driver is unavailable until I
restart the CF ODBC Server.
Has anyone else experienced this scenario on CF and DB/2?  Is there a
way to automatically restart the ODBC server when this happens. Or is
there another solution to resolve this issue?  Even verifying the
datasource in CF admin fixes it.  It seems to be that CF stops trying if
it gets the timeout message until the ODBC connection is refreshed?  
Any thoughts would be appreciated.
Daron Smith
PS I think my boss is thinking this is a good justification to go to
.Net

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234481
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OOP, why me?

2006-03-07 Thread S . Isaac Dealey
S'awright... I don't like beanies either. :)

 That one part might be, but the other things I do and did
 not type I do not
 see as being OOP.  Plus I never once have called anything
 I wrote a Bean  :P

 On 3/7/06, S. Isaac Dealey [EMAIL PROTECTED] wrote:

 Well it is! So there! :)

  What I do is have individual set method/functions for
  each
  field then one
  method/function that updates the table using all those
  variables.  So I'd
  have something like Variables.Instance[UserName] and
  a
  SetUserName() and
  then something like UpdateUser() which updates using
  the
  Instance structure
  of values.  But I really do not see my way of doing
  things
  as OOP.


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234482
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: is this thing on?

2006-03-07 Thread Munson, Jacob
Everything's fine on my end. 

 -Original Message-
 From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 07, 2006 10:08 AM
 To: CF-Talk
 Subject: is this thing on?
 
 I just don't know what to do when my inbox doesn't flood with 
 CF_Talk mail first thing in the morning ;-)
 
 I take there is a list problem?


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law.  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in 
error, please immediately contact the sender and destroy the material in its 
entirety, whether in electronic or hard copy format.  Thank you.   A2



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234483
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Rick Faircloth
Good grief!  I used to be a good speler! ;o)

Now, I'm really despairing!

 But don't dispair! I mean... I just don't see a misspelling as grounds
 for divorce. :)

That's good news!  Now I can tear up those
papers I was about to sign!  :o)

Ric

 -Original Message-
 From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 11:48 AM
 To: CF-Talk
 Subject: RE: Why do my selects in an iFrame do this?
 
 
 Heh... No, that means to separate. :P
 
 http://dictionary.reference.com/search?q=dispair
 
 You're looking for despair. :)
 
 But don't dispair! I mean... I just don't see a misspelling as grounds
 for divorce. :)
 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234484
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: How to Quit Excel

2006-03-07 Thread Jim Wright
I've cfexecuted the pskill utility from sysinternals to kill any
excel.exe processes, which has worked pretty well.  -jim

http://www.sysinternals.com/Utilities/PsKill.html

On 3/7/06, Mingo Hagen [EMAIL PROTECTED] wrote:
 Hi all,

 I'm trying to get a COM-called-instance of Excel to quit... so far no
 luck. It just stays there in my task manager laughing at me, also in the
 task manager when I try to end-task it, it doesn't and returns an error
 'Unable to Terminate Process, Access is denied'.

 I use the following code:
 cfscript
   myExcel = createObject( COM, Excel.application );
   myExcel.Quit();
   myExcel = '';
 /cfscript

 I've tried it with and without saving and closing workbooks.
 Now, I did stumble upon a possible solution on some google-found page
 which mentions using the GarbageCollector in VisualStudio but I'm not
 sure that is a possibility here since we're talking coldfusion 5 (don't
 ask why i'm not using cfmx+, it's not an option, the customer doesn't
 want it).

 They use this code:
 Private Sub StartandStopExcel()
   Dim mseExcel As Excel.Application
   mseExcel = New Excel.Application
   mseExcel.Quit()
   mseExcel = Nothing
   GC.Collect()
 End Sub

 Does anyone know of a way to get rid of excel (or a way to contact the
 garbagecollector from CF5), my current solution is to just use one excel
 instance and keep reusing that (using the application scope) But the
 coldfusion seems to crash on this method now and again.

 Thanks,
 Mingo

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234485
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OOP, why me?

2006-03-07 Thread Rick Faircloth
Thanks for the verification...I figured it would
work that way.

And, yes, all my apps are customized and
relatively small at this point...no general
consumption apps.  Which is probably
why I haven't been terribly concerned with
framewords, OOP, etc., since I don't
reuse much code...

However, I am starting to develop modules
that I can plug into any site that I develop...
like announcments, calendar, email newsletter, etc.
That does help make site development a lot faster.
I still go through the modules and customize the
code for the site, however.

Rick

 -Original Message-
 From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 12:14 PM
 To: CF-Talk
 Subject: RE: OOP, why me?
 
 
  cfif fileExists(ExpandPath(action  .cfm))
  cfinclude template=#action#.cfm
  /cfif
 
  Nice idea, Isaac... So the above ExpandPath
  function assumes my processing templates
  are in the same directory as the display page?
 
  If so, what how would the code change if I put
  my processing templates in directory called
  processing and my display pages were in the
  html directory?
 
  (Showing my ignorance about the ExpandPath
  function...haven't used it...familiar with it, but
  not in depth...)
 
 I unfortunately don't find ExpandPath() to be terribly useful in my
 own development because it starts from the directory containing the
 base template (the one used in the browser's address bar -- I'm sure
 you already knew that :)  ... The way I work (with lots of
 subdirectories), the path of the base template is rarely (if ever)
 relevant, because cfinclude and cfmodule tags don't use the base
 template as their point of reference, they use the current template.
 So imo it would be _much_ more useful (that is to say -- it would be
 useful period) if ExpandPath() used the current template directory as
 its baseline. To give you an example why the implementation of
 ExpandPath() is patently bad, lets say you have a base template
 form.cfm inside form.cfm you're including another template called
 switch.cfm which includes code like I described above. Now lets say
 that you decide you want to move switch.cfm and all of its associated
 files into a subdirectory. Here's an illustration:
 
 You're chaing this:
 
 /form.cfm
 /switch.cfm
 /switch_x.cfm
 /switch_y.cfm
 
 to this:
 
 /form.cfm
 /switch/switch.cfm
 /switch/switch_x.cfm
 /switch/switch_y.cfm
 
 Now... if you've used ExpandPath() to check for the existence of the
 file as in the code above, once you've moved these files your
 application won't include any of the switch_x.cfm or switch_y.cfm
 templates, even though the path to the included templates which is
 used in your cfinclude tag is correct and hasn't changed. The reason
 is because although you moved switch.cfm into a subdirectory,
 ExpandPath() still starts from the parent directory.
 
 This can be fixed by changing the code to read ExpadnPath(switch/ 
 action  .cfm), however, then you have the name of the subdirectory
 in your code. What happens if you decide to change the name of the
 directory? Well... when you change the name of the directory you then
 suddenly have to change this block of code again, which shouldn't be
 necessary. It's understandable that you would need to change the path
 in form.cfm, but needing to change the code in a template because its
 _parent_ directory name changed imo is unacceptable.
 
 Thus ExpandPath() will _always_ produce an undesirable dependancy on
 the base template directory of your application. So... I don't
 recommend that people use ExpandPath() as a rule...
 
 I used it in my original example really because this explanation
 wasn't really necessary to explain the include concept, because you
 can write code that works with it (even if it's less maintainable),
 because I figured you'd appreciate the simplified explanation, and
 because I had the impression your applications are designed
 specifically for your clients (mine are for general consumption) and
 tend to be smaller anyway (didn't you say this in a previous post?) in
 which case, the maintenance hassle that ExpandPath() causes is less of
 an issue.
 
 For your specific directory structure, this (or something very close
 to it) should work:
 
 cfif FileExists(ExpandPath(../processing/  action  .cfm))
   cfinclude template=../processing/#action#.cfm
 /cfif
 
 I'm assuming that the html directory is synonymous with your web
 root directory. If the html directory is a subdirectory of your web
 root, then you would just drop ../ from those paths.
 
 s. isaac dealey 434.293.6201
 new epoch : isn't it time for a change?
 
 add features without fixtures with
 the onTap open source framework
 
 http://www.fusiontap.com
 http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234486
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4

Date Validation Three Digit Year

2006-03-07 Thread Lee.S.Surma
I've got an interesting form date validation problem. I'm using the
standard built in cfinput date validation code.

 

cfinput type=Text name=EDate value= 

message=Please enter a valid end date (mm/dd/) validate=date
required=No maxlength=10

 

I'm also using CreateODBCDate and cfQueryParam in the query

 

End_Date = cfqueryPARAM value = #CreateODBCDate(form.EDate)#
cfsqltype=CF_SQL_DATE

 

My problem is that if a user enters a year less than 1000 (01/01/500),
it gets through the CF validation but errors at the SQL level. The SQL
Server settings are not available to me. I wan't to avoid adding
JavaScript or doing anything server side. Are there any other
possibilities?

 

Lee Surma

 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234487
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Coldfusion 7 Jrun Memory Problem

2006-03-07 Thread Chad McCue
I am trying to figure out what exactly the Sessions refer to on my 
coldfusion-event.log. Does the Sessions refer to how many total session 
variables are set on my application? I am having a problem with that number 
causing my JRUN.exe to take up a lot of memory.

When the number of sessions gets to around 21 my JRUN memory is usually around 
400+k and becomes unresponsive.

Can anyone help me out?

Thanks.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234488
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Flash Forms: Checkbox Repeater loop?

2006-03-07 Thread Ken Dunnington
Okay, I figured this out. The checkboxes are in an array, and their
true/false state is stored in the value property. Here is my final
function which seems to work well. I'm sure it could be optimized
more, but I'll save that for version 2 :)

function globalSelect():Void {
var i:Number = 0;
var trueCount:Number = 0;
// Check value of global, and if it is 0, and more than 1 region is
selected, unselect all regions and display a popup
if (multiRegionsAllowed() == false) {
for (i = 0; i  regions.length; i++) {
if (regions[i].value == true) {
trueCount++;
if (trueCount  1) {
regions[i].value = false;
}
}
}
if (trueCount  1) {
alert(You may only select multiple regions if you have 
selected a
global option other than 'None'.);
}
}
}

On 3/7/06, Ken Dunnington [EMAIL PROTECTED] wrote:
 I've got a flash form that uses the Repeater formitem to create a few
 checkboxes that have the same name, like in HTML forms. I've got this
 working, and it submits a list of true/false values as expected (I
 wish you could submit a list of actual values, like in HTML forms, but
 that's another post) but I can't figure out how to access these values
 in an event handler. I'm using the script formitem introducted in
 7.0.1 so my onClick is calling a function. My function looks like this
 so far, but it doesn't work:

 function globalSelect():Void {
 if (multiRegionsAllowed() == false  regions.selectedIndices.length 
  1) {
 for (var i:Number = 0; i  regions.getLength()-1; i++) {
 if (regions.isSelected(i) == true) {
 regions.getItemAt(i).selected = false;
 }
 }
 }
 }

 The checkboxes are named regions and the relevant form items are as follows:

 cfformgroup type=repeater query=regionQuery
 cfinput type=checkbox name=regions
 value={regionQuery.currentItem.value}
 label={regionQuery.currentItem.name} onclick=globalSelect(); 
 /
 /cfformgroup

 The reason I'm using a repeater as opposed to a cfloop is a) the
 checkboxes are related and b) they checkboxes are unlikely to change
 (though it isn't out of the question) and I want to avoid a recompile
 whenever possible. If I alert(regions) I get a list of object
 references, so I know that I CAN get at these values, I just can't
 figure out HOW! :) Can someone please point me in the right direction?
 The Flex documentation hasn't helped.
 Thanks!
  - Ken

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234489
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: JRUN Metrics

2006-03-07 Thread Patrick Quinn
Hey Chad. Another point to add to this is that the behavior you're seeing is 
far from normal. In our consulting practice we've regularly seen the number of 
sessions reach the default 1,000 session limit (at which point swapping kicks 
in), and with much higher memory utilization (in these session-intensive 
situations, you'd typically see the VM at max memory allocation/utilization, or 
~1.5G on Windows). If your server is unresponsive at 21 sessions while only 
utilizing 400K of memory, then that's a significant performance bottleneck. 
You'll need to do some VM memory tuning at the least, and likely some 
substantial application tuning as well. 

Hope that helps.

Best,
Patrick

 I am trying to figure out what exactly the Sessions refer to on my 
 coldfusion-event.log. Does the Sessions refer to how many total 
 session variables are set on my application? I am having a problem 
 with that number causing my JRUN.exe to take up a lot of memory.
 
 When the number of sessions gets to around 21 my JRUN memory is 
 usually around 400+k and becomes unresponsive.
 
 Can anyone help me out?
 
 Thanks.
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234490
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: PDF Upload Problems

2006-03-07 Thread PINE Phyo Z
I remembered reading something like it in Ben Forta's book (CFMX7 Web
Application Construction Kit) and I went back and searched. This is what
I found:

 ...illustrates one of Internet Explorer 6's policies. Unlike most
other browsers, it thinks the file
extension-and the format of the actual content itself-is more important
than the specified content
type. The content type considered only if the file extension doesn't
have an associated program, or
when there is no file extension.

To get consistent behavior with IE, add a content-disposition header to
the page request, using a
cfheader tag, such as the following. The cfheader tag is the way
ColdFusion enables you to
send custom HTTP headers back to the browser, along with the content
your template generates.
You would add this line right before the cfcontent line in Listing
33.3:
cfheader
name=Content-Disposition
value=filename=films

So, I guess you can use Content-Disposition tag somewhere? I am not
exactly sure though..Just a thought.

Regards,
Pine

-Original Message-
From: Deanna Schneider [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 1:13 PM
To: CF-Talk
Subject: Re: PDF Upload Problems


I don't personally have a pdf generator, but I can reproduce it with an
excel file, for example. It only happens with IE, though - Firefox
correctly figures out the mime type. But, if you open an excel file with
Microsoft Excel, and then try to upload it via your web page and IE,
you'll discover that it thinks it's an application/octet-stream.


On 3/6/06, Mike Chabot [EMAIL PROTECTED] wrote:

 Deanna,
 Thank you for the information. Is there a way to reproduce this 
 problem, since I cannot seem to do so?

 I did some further testing and it appears that CFMX, for the most 
 part, is determining the MIME-type from the file extension, since I am

 able to add .pdf to any file type to get it past the application/pdf 
 mime type restriction.

 Thank you,
 Mike Chabot

 On 3/6/06, Deanna Schneider [EMAIL PROTECTED] wrote:
  Application/octet-stream is what you'll get if the pdf is open on 
  their system when they try to upload it. I don't know of a really 
  great work around, other than catching that particular error and 
  telling them to be sure to close it before uploading it.
 
  On 3/6/06, Mike Chabot [EMAIL PROTECTED] wrote:
  
   We have a file upload form that only accepts PDF files. A very 
   small percentage of people have tried to upload files that end in 
   .pdf, but CFMX 6.1 rejects them because they have MIME types of 
   application/octet-stream or application/unknown. Since these 
   files could not be uploaded, I am not sure if these files are 
   legitimate PDFs, so I would like to know if anyone else has 
   experience with this, or if there is some advice I can give to the

   people experiencing these problems? At what stage of the upload 
   process does the MIME-type get associated with the file?
  
   Thank you,
   Mike Chabot

 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234491
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Why do my selects in an iFrame do this?

2006-03-07 Thread Rick Faircloth
Well...I followed your instructions...twice.

IE7 was extracted and run, and I can get on
the Internet with no problem...everything seems
fine, except when I try to use a select.

On mine and on others, such as Google.com,
selects cause the Pop-Up blocker to respond.

I've read the Help file about settings to stop
the Pop-Up blocker from responding to file
downloads, etc...even turned it off, but selects
always set it off and they don't work?

IE7 works fine as a full install on my laptop,
replacing IE6...suggestions?

Rick


 -Original Message-
 From: Zaphod Beeblebrox [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 11:38 AM
 To: CF-Talk
 Subject: Re: Why do my selects in an iFrame do this?
 
 
 I got the following instructions for a sitepoint email:
 
 
 So, let's say you're curious and you'd like to take IE7 for a spin,
 but you're not ready to let it oust IE6 as your IE of choice -- can
 this be done?
 
 I'm no expert on the interplay of Microsoft components, but I did
 manage to get it going, and I'm happy to run you through the process I
 used to get it running on my XP system.
 
1. Download and save the beta EXE but don't run it. It's a
 self-extracting, self-installing ZIP file; we want to do this
 manually.
2. Create a new folder called 'IE7'.
3. Right-click on the EXE and scroll down to 'Extract to...' for
 Winzip. If you don't use Winzip, this process should work in your
 decompression software of choice.
4. Extract everything to your 'IE7' folder, making sure you keep
 the folder structure intact by keeping 'Use folder names' checked.
5. Open your 'IE7' folder, right-click inside the folder and scroll
 to 'New/Text Document.
6. Rename that file to 'iexplore.exe.local'. Make sure you're
 changing the file's format, not just renaming your text document to '
 iexplore.exe.local.txt'.
7. That's it. Run 'iexplore.exe' in that folder -- do not run
 'iesetup.exe', which will initiate the full install.
 
 
 
 
 On 3/7/06, Munson, Jacob [EMAIL PROTECTED] wrote:
  You can use both of them at the same time.  I can't seem to find the
  post at the moment, but you can download the exe file (for IE 7),
  extract the contents using Winzip, and just run it from the folder you
  extract it to.  You have to do a couple of other things that I can't
  remember, but you don't have to let it replace your old IE install.  Do
  a google search, and you'll find it.  :)
 
   -Original Message-
   From: Rick Faircloth [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 07, 2006 8:49 AM
   To: CF-Talk
   Subject: RE: Why do my selects in an iFrame do this?
  
   Is there any reason anyone knows of why I shouldn't
   just replace IE 6 on my development workstation with IE 7?
   Or should I keep both?
 
  This transmission may contain information that is privileged, 
 confidential and/or exempt from disclosure under applicable law. 
 If you are not the intended recipient, you are hereby notified 
 that any disclosure, copying, distribution, or use of the 
 information contained herein (including any reliance thereon) is 
 STRICTLY PROHIBITED. If you received this transmission in error, 
 please immediately contact the sender and destroy the material in 
 its entirety, whether in electronic or hard copy format. Thank you. A1.
 
 
 
  
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234492
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


still nothing

2006-03-07 Thread Bryan Stevenson
..from VIctoria, BC Canada...no mail making it through from the list??

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234493
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


How do I get rid of single quote duplication in sql?

2006-03-07 Thread Oleg Gunkin
I have the following problem with sql generation:
Example
cfset sqlPart = 'name: ' + name

cfquery select #sqlPart# as name from user /cfquery

The outcome of this code is 
select ''name: '' + name as name from user 

How do I get rid of single quote duplication?


--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234494
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: still nothing

2006-03-07 Thread Russ
Is it possible that your server has some sort of spam blocker?  We've had
that cause cf-mail not be delivered once it was listed in some databases.  

Everything's fine now though.  



 -Original Message-
 From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 2:22 PM
 To: CF-Talk
 Subject: still nothing
 
 ..from VIctoria, BC Canada...no mail making it through from the list??
 
 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: [EMAIL PROTECTED]
 web: www.electricedgesystems.com
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234495
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: ANN: ColdFusion tag for tabbed GUIs

2006-03-07 Thread Rick Root
C. Hatton Humphrey wrote:
 
 Looks like given some tweaks it might be a good work-around for the
 tabbed Flash forms (sh!)

I've actually developed several such forms using jComponents, which 
includes a tab component, accordian component, tree component, etc.

Nice stuff

http://clearsoftware.net/jComponents1_0/

Massimo's work looks good too.

Rick


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234496
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: How do I get rid of single quote duplication in sql?

2006-03-07 Thread Charlie Griefer
preserveSingleQuotes() ?

On 3/7/06, Oleg Gunkin [EMAIL PROTECTED] wrote:
 I have the following problem with sql generation:
 Example
 cfset sqlPart = 'name: ' + name

 cfquery select #sqlPart# as name from user /cfquery

 The outcome of this code is
 select ''name: '' + name as name from user

 How do I get rid of single quote duplication?


 --
 Oleg Gunkin
 Email: [EMAIL PROTECTED]
 Phone: (604) 666-9392
 Emerging Technologies / Pacific Web Services
 Information Technology Services
 Public Works and Government Services Canada (Pacific)

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234497
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: How do I get rid of single quote duplication in sql?

2006-03-07 Thread Adkins, Randy
PreserveSingleQuotes() 

-Original Message-
From: Oleg Gunkin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 07, 2006 2:26 PM
To: CF-Talk
Subject: How do I get rid of single quote duplication in sql?

I have the following problem with sql generation:
Example
cfset sqlPart = 'name: ' + name

cfquery select #sqlPart# as name from user /cfquery

The outcome of this code is
select ''name: '' + name as name from user 

How do I get rid of single quote duplication?


--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services Information Technology
Services Public Works and Government Services Canada (Pacific)



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234498
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: How do I get rid of single quote duplication in sql?

2006-03-07 Thread Douglas Knudsen
try using preserveSingleQuotes()

DK

On 3/7/06, Oleg Gunkin [EMAIL PROTECTED] wrote:
 I have the following problem with sql generation:
 Example
 cfset sqlPart = 'name: ' + name

 cfquery select #sqlPart# as name from user /cfquery

 The outcome of this code is
 select ''name: '' + name as name from user

 How do I get rid of single quote duplication?


 --
 Oleg Gunkin
 Email: [EMAIL PROTECTED]
 Phone: (604) 666-9392
 Emerging Technologies / Pacific Web Services
 Information Technology Services
 Public Works and Government Services Canada (Pacific)

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234500
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: How do I get rid of single quote duplication in sql?

2006-03-07 Thread Shepherd, Brandon
Use the function PreserveSingleQuotes()

cfset sqlPart = 'name: ' + name
cfset sqlPart = #PreserveSingleQuotes(sqlPart)#

-Brandon

-Original Message-
From: Oleg Gunkin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 07, 2006 11:26 AM
To: CF-Talk
Subject: How do I get rid of single quote duplication in sql?

I have the following problem with sql generation:
Example
cfset sqlPart = 'name: ' + name

cfquery select #sqlPart# as name from user /cfquery

The outcome of this code is 
select ''name: '' + name as name from user 

How do I get rid of single quote duplication?


--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234499
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: How do I get rid of single quote duplication in sql?

2006-03-07 Thread Aaron Rouse
PreserveSingleQuotes()

On 3/7/06, Oleg Gunkin [EMAIL PROTECTED] wrote:

 I have the following problem with sql generation:
 Example
 cfset sqlPart = 'name: ' + name

 cfquery select #sqlPart# as name from user /cfquery

 The outcome of this code is
 select ''name: '' + name as name from user

 How do I get rid of single quote duplication?


 --
 Oleg Gunkin
 Email: [EMAIL PROTECTED]
 Phone: (604) 666-9392
 Emerging Technologies / Pacific Web Services
 Information Technology Services
 Public Works and Government Services Canada (Pacific)

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234501
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: is this thing on?

2006-03-07 Thread Cutter (CF-Talk)
Bryan,

I have four messages (including yours) from this list since 11AM EST.

Cutter

Bryan Stevenson wrote:
 I just don't know what to do when my inbox doesn't flood with CF_Talk mail 
 first thing in the morning ;-)
 
 I take there is a list problem?
 
 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: [EMAIL PROTECTED]
 web: www.electricedgesystems.com
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234502
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


  1   2   >