Ampersands being stripped from query_string

2009-09-22 Thread Peter Bagnato

99% of the time, the following works without problem to redirect to another 
page while keeping track of all the URL variables being passed:

 
Let's say my query string is this:  a=1b=2c=3d=4e=5

 
script
 location.href = 'someURL.cfm?#cgi.query_string#';
/script

 
However, on rare occassions, all the the amersands are getting stripped from 
the cgi.query_string when it reaches the href destination.

 
So, instead of directing to 'someURL.cfm?a=1b=2c=3d=4e=5'

 
It is directing to: someURL.cfm?a=1b=2c=3d=4e=5

 
What is happening to the ampersands? They are getting dropped for no reason 
that I can see.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326485
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Terminated CFTHREAD gets logged

2008-10-10 Thread Peter Bagnato
When I terminate a thread in this manner to kill runaway thread:

cfloop list=#t# index=i
cfif findNoCase('RUNNING', evaluate('#i#.status')) gt 0
cfsilent 
cfthread action=terminate name=#i# / 
/cfsilent
/cfif
/cfloop 

Each thread that is terminated gets logged in the application log of the CF 
administrator with the following value:
myThread34940: null 

How do I keep this from getting logged? Why does CF look at these as 
application errors? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313726
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: xml woes

2003-02-18 Thread Peter Bagnato
I've been following what you guys have been doing... Can you post the final
code when you get it figured out?

Thanks!
Peter

-Original Message-
From: Robby L. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 17, 2003 11:28 PM
To: CF-Talk
Subject: xml woes
Importance: High


ummm? I am, .. xmlsearch and xmlparse is being used in the cfscript block, 
and the issue is still ongoing..
Thanks though,
Robby


Subject: xml woes
From: Peter Bagnato [EMAIL PROTECTED]
Date: Mon, 17 Feb 2003 13:42:47 -0500
Thread:
http://www.houseoffusion.com/cf_lists/index.cfm?method=messagesthreadid=215
87forumid=4#108995

Have you tried using any of the new XML tags in CFMX yet?

Peter

-Original Message-
From: Robby L. [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 5:36 AM
To: CF-Talk
Subject: xml woes
Importance: High


I'm writing in hopes to see what I'm doing wrong when trying to manipulate
an xml doc.
The problems comes with deleting, and I'm running in loads of problems.

an example of the xml doc :
dropdowns
drop name=abba
drop_itema/drop_item
drop_itemb/drop_item
drop_itemc/drop_item
drop_itemd/drop_item
drop_iteme/drop_item
/drop
drop name=1221
drop_item1/drop_item
drop_item2/drop_item
drop_item3/drop_item
drop_item4/drop_item
drop_item5/drop_item
/drop
dropdowns
!--- reading page ---
cffile action=read file=C:\CFusionMX\wwwroot\Mathmotors\drop.xml
variable=xmlmy
cfscript
drop = xmlparse(xmlmy);//xml thats parsed.
dropx = drop.xmlroot;// The xml root.
c_dropx = dropx.xmlchildren;// Gets the array for all of the drop down
groups.
count_c_dropx = arraylen(c_dropx);// Gets the count of
arrays,(dropdowns.drop) Needed for a loop.
hmm =abba;// fake variable
tt  = xmlsearch(dropx,/dropdowns/drop[@name='#hmm#']/drop_item/);
/* The Search (returns an array, which will give me the info for the
dropdown)*/
toto = arraylen(tt);
/cfscript
!--- One way I've tried  ---
cfoutput
!---  Loop through the drop elements---
cfloop from=1 to=#arraylen(c_dropx)# index=i

!---  Set the dropchildren to a variable to be able to loop over---
cfscript
yes = dropx.drop[i].xmlchildren;
/cfscript
!---  Where the drop name's attribute equals abba then I can edit down
the tree ---
cfif dropx.drop[i].xmlattributes[name] is abba
!---  Loop over the yes value, which would be the same as looping over the
drop_item elements ---
  cfloop  from=1 to=#arraylen(yes)#
index=j
!---  Set the dropchildren to a variable to be able to loop over---
cfscript
yes = dropx.drop[i].xmlchildren;
/cfscript
!--- WHere the dropelement's text equals a delete that element @ it's
index ---
cfif yes[j].xmltext is a
 cfdump var=#j#
!--- Dumps ok, .. returns the postition of
audi---
 cfdump var=#yes#
   !--- Dumps ok, .. returns the array needed
---

cfscript

arraydeleteat(yes, j);/*when this is in, returns the
error, without it everything runs fine*/
/cfscript
/cfif
  /cfloop
/cfif
/cfloop
/cfoutput

I've also tried ...: With using the xpath syntax (set in the upper
cfscript)

cfoutput
cfloop from=1 to=#arraylen(tt)# index=i
cfif #tt[i].xmltext# is a

cfscript
arraydeleteat(tt, i);/*when this is in,
returns the error, without it
everything runs fine*/
/cfscript
/cfif
/cfloop
/cfoutput
Both of which bail.. the first one bails without an actual error, . just the
araydeleteat() being the line it error'd at. But when I looked in to the
logs, It says java.lang.IndexOutOfBoundsException and searching google only
gave
two results,
. both of which have no bearing on the situation at hand.

The element at position 5 of dimension 1, of array variable TT, cannot be
found is
the one on the second try,  and with it, the array itself is cfdumped, and
there is 5 elements in the array ,I've read the docs
I've double checked what I know how. What the hell am I doing wrong? Thanks
for your help Robby ps I do have updater 2 installed if it has any bearing





~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get

RE: xml woes

2003-02-17 Thread Peter Bagnato
Have you tried using any of the new XML tags in CFMX yet?

Peter

-Original Message-
From: Robby L. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 17, 2003 5:36 AM
To: CF-Talk
Subject: xml woes
Importance: High


I'm writing in hopes to see what I'm doing wrong when trying to manipulate 
an xml doc.
The problems comes with deleting, and I'm running in loads of problems.

an example of the xml doc :
dropdowns
drop name=abba
drop_itema/drop_item
drop_itemb/drop_item
drop_itemc/drop_item
drop_itemd/drop_item
drop_iteme/drop_item
/drop
drop name=1221
drop_item1/drop_item
drop_item2/drop_item
drop_item3/drop_item
drop_item4/drop_item
drop_item5/drop_item
/drop
dropdowns
!--- reading page ---
cffile action=read file=C:\CFusionMX\wwwroot\Mathmotors\drop.xml 
variable=xmlmy
cfscript
drop = xmlparse(xmlmy);//xml thats parsed.
dropx = drop.xmlroot;// The xml root.
c_dropx = dropx.xmlchildren;// Gets the array for all of the drop down 
groups.
count_c_dropx = arraylen(c_dropx);// Gets the count of 
arrays,(dropdowns.drop) Needed for a loop.
hmm =abba;// fake variable
tt  = xmlsearch(dropx,/dropdowns/drop[@name='#hmm#']/drop_item/);
/* The Search (returns an array, which will give me the info for the 
dropdown)*/
toto = arraylen(tt);
/cfscript
!--- One way I've tried  ---
cfoutput
!---  Loop through the drop elements---
cfloop from=1 to=#arraylen(c_dropx)# index=i

!---  Set the dropchildren to a variable to be able to loop over---
cfscript
yes = dropx.drop[i].xmlchildren;
/cfscript
!---  Where the drop name's attribute equals abba then I can edit down 
the tree ---
cfif dropx.drop[i].xmlattributes[name] is abba
!---  Loop over the yes value, which would be the same as looping over the 
drop_item elements ---
  cfloop  from=1 to=#arraylen(yes)#
index=j
!---  Set the dropchildren to a variable to be able to loop over---
cfscript
yes = dropx.drop[i].xmlchildren;
/cfscript
!--- WHere the dropelement's text equals a delete that element @ it's 
index ---
cfif yes[j].xmltext is a
 cfdump var=#j#
!--- Dumps ok, .. returns the postition of 
audi---
 cfdump var=#yes#
   !--- Dumps ok, .. returns the array needed 
---

cfscript

arraydeleteat(yes, j);/*when this is in, returns the 
error, without it everything runs fine*/
/cfscript
/cfif
  /cfloop
/cfif
/cfloop
/cfoutput

I've also tried ...: With using the xpath syntax (set in the upper 
cfscript)

cfoutput
cfloop from=1 to=#arraylen(tt)# index=i
cfif #tt[i].xmltext# is a

cfscript
arraydeleteat(tt, i);/*when this is in,
returns the error, without it 
everything runs fine*/
/cfscript
/cfif
/cfloop
/cfoutput
Both of which bail.. the first one bails without an actual error, . just the
araydeleteat() being the line it error'd at. But when I looked in to the
logs, It says java.lang.IndexOutOfBoundsException and searching google only
gave 
two results,
. both of which have no bearing on the situation at hand.

The element at position 5 of dimension 1, of array variable TT, cannot be 
found is
the one on the second try,  and with it, the array itself is cfdumped, and 
there is 5 elements in the array ,I've read the docs
I've double checked what I know how. What the hell am I doing wrong? Thanks
for your help Robby ps I do have updater 2 installed if it has any bearing



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: uploading progress bar

2003-02-17 Thread Peter Bagnato
Send it to me 2!

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 17, 2003 6:57 PM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High


sorry for the delay, i havent had power all day, i will get them out soon

Dave

- Original Message -
From: John McCosker [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, February 17, 2003 5:02 AM
Subject: RE: uploading progress bar


 Can I see it t.

 -Original Message-
 From: Chuck Brockman [mailto:[EMAIL PROTECTED]]
 Sent: 15 February 2003 02:16
 To: CF-Talk
 Subject: RE: uploading progress bar


 Me too!!

 -Original Message-
 From: Charlie Griefer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 9:04 PM
 To: CF-Talk
 Subject: RE: uploading progress bar


 yeah, count me in (curiousity got the better of me) :P


 -Original Message-
 From: Terry [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 6:52 PM
 To: CF-Talk
 Subject: Re: uploading progress bar


 I'd like to see it too

 *** REPLY SEPARATOR  ***

 On 2/14/2003 at 8:32 PM Ewok wrote:

 all cfm??? can i see can i see??
 
 - Original Message -
 From: Dave Lyons [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, February 14, 2003 3:03 PM
 Subject: Re: uploading progress bar
 
 
  im pretty sure its all cfm ben
 
  how was your short drive home last night
 
  Dave
 
  - Original Message -
  From: Ben Doom [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, February 14, 2003 2:58 PM
  Subject: RE: uploading progress bar
 
 
   Offhand, do you know what technologies this uses?  If it's using 
   java
 or
   javascript, I'd really like to see it.
  
  
   --  Ben Doom
   Programmer  General Lackey
   Moonbow Software, Inc
  
   : -Original Message-
   : From: Dave Lyons [mailto:[EMAIL PROTECTED]]
   : Sent: Friday, February 14, 2003 2:28 PM
   : To: CF-Talk
   : Subject: uploading progress bar
   :
   :
   : I have scene a lot of people ask for an uploading progress bar
   : and I actually have one.
   : I really don't have time to give it a try but if any of you 
   want
   : to try it out and let me know how it works, I'd be glad to send
   : it to you. I would really like to know if its worth while or not
   : before I waste several hours trying to figure it out:)
   :
   : dave
   : !--- doesn't know jack about cfm ---
   :
   :
   :
   :
   :
   :
   :
  
 
 



 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: uploading progress bar

2003-02-16 Thread Peter Bagnato
$49.00?? Try $119.00

http://www.lindows.com/lindows_sales_intro.php

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 15, 2003 10:27 PM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High


lol, no kidding here
www.lindows.com

i thought i read that you can install it next to xp which would be cool to
compare them

have to say it looks like m$ is in trouble
especially for $49


Dave  -

- Original Message -
From: Dick Applebaum [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 10:20 PM
Subject: Re: uploading progress bar


 No!

 i thought you were joaking1

 Dick

 On Saturday, February 15, 2003, at 06:34  PM, Dave Lyons wrote:

  let me see if i can find them
 
  have you scene lindows yet?
  i might go get it this weekend and try it
 
 
  Dave
  - Original Message -
  From: Dick Applebaum [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Saturday, February 15, 2003 9:29 PM
  Subject: Re: uploading progress bar
 
 
  No I haven't!
 
  prejudice showing
  Couldn't be happier!
  /prejudice showing
 
  Do you have any URLs?
 
  TIA
 
  Dick
 
  On Saturday, February 15, 2003, at 06:14  PM, Dave Lyons wrote:
 
  have you been reading anything about how m$ is freaking on linux 
  right now?
  looks like a lot of people are moving over to it and lindows.
 
 
  Dave
  - Original Message -
  From: Dick Applebaum [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Saturday, February 15, 2003 9:10 PM
  Subject: Re: uploading progress bar
 
 
  On Saturday, February 15, 2003, at 05:41  PM, Dave Lyons wrote:
 
  I guess this whole linex deal really has m$ panties in a big 
  bunch
 
 
  Just what, do you mean by this?
 
  Dick
 
 
 
 
 
 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: (OT) Lindows was (commercial distributions of Linux)

2003-02-16 Thread Peter Bagnato
LINUX will never survive if there is not a larger software base for it.

There will not be a larger software base for it if companies cannot realize
a return on their investment.

So, I'm thankful that Linux is becoming commercialized.

Peter Bagnato

PS Isn't capitalism wonderful??

-Original Message-
From: Eric Dawson [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, February 16, 2003 9:18 AM
To: CF-Talk
Subject: (OT) Lindows was (commercial distributions of Linux)


Well the discussion of the commercialization of linux certainly is topical 
(to listen and learn) for me. But certainly not cftalk topical.

It seems to me that the missing ingredient (if any) for linux these days is 
the commercialization. From the discussion on this thread it seems apparent 
that people are not interested in Linux because it is free, but because it 
is capable, and they are willing to pay an amount to receive a package and

ongoing support for particular build streams, and value added build 
streams/support.

I hope redistribution becomes a licensing non-issue, where Linux 
distributors offer value with oem and packaged distributions for retail. And

of course ongoing value added support services.

I find Lindows interesting because it is a blatant effort to commercialize 
Linux. And I certainly think there is room right now to build and support 
niche installation distributions too numerous to mention.
http://www.lindows.com/lindows_products_license.php

FYI Lindows uses
http://www.debian.org
http://www.kde.org
http://www.winehq.com

I'm not sure what the original thread was any more, but I'll soak up all of 
this discussion. whereever it gets carried...

I need to find a linux dist for 6 pack of p200 I inherited (shutdown an 
office in Winnipeg for another company), to give to people looking for lean 
Internet cruisers, word processors. Interested in thought or suggestions.

Best Regards,
Eric Dawson

CF-Talk Feature Yap
It would be handy to have a ban this topic link for people not interested in

following the future winds of particular threads. Keep the discussion going 
but allow people to opt out of particular threads.

We could put it right next to the read this thread link in its entirety that

we have talked about in the past. When you ban, you would receive an email 
saying - You are no longer receiving discussion relating to this thread... 
click here to read.


From: samcfug [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: Re: Lindows was
Date: Sun, 16 Feb 2003 01:49:23 -0600

Don't apologize, I consider it very pertinent to our group

=
Douglas White
group Manager
mailto:[EMAIL PROTECTED]
http://www.samcfug.org
=
- Original Message -
From: Dave Lyons [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, February 16, 2003 12:47 AM
Subject: Re: Lindows was

| i guess thats why we all have opinions:)
|
| but i do agree its not a direct cf topic and I got carried away, 
| already said sorry
|
| but i'd still like to know, lol
|
| Dave
|
| - Original Message -
| From: Tangorre; Michael [EMAIL PROTECTED]
| To: CF-Talk [EMAIL PROTECTED]
| Sent: Sunday, February 16, 2003 1:35 AM
| Subject: RE: Lindows was
|
|  ditto
| 
|  -Original Message-
|  From: Dave Watts [mailto:[EMAIL PROTECTED]]
|  Sent: Sat 2/15/2003 11:09 PM
|  To: CF-Talk
|  Cc:
|  Subject: RE: Lindows was
| 
|   but I'm sure a lot of people here would like to hear about how it 
|   works!
| 
|  I'm sure a lot of people don't want to hear about it either, though, 
|  and it's pretty off-topic for a CF programming list.
| 
|  Dave Watts, CTO, Fig Leaf Software
|  http://www.figleaf.com/
|  voice: (202) 797-5496
|  fax: (202) 797-5444



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: uploading progress bar

2003-02-15 Thread Peter Bagnato
What stalls? Can you explain and share the code?

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 15, 2003 12:20 AM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High


I looked up cfflush in the docs and ran the example and it stalls out, lol

Dave  -

- Original Message -
From: Peter Bagnato [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 11:51 PM
Subject: RE: uploading progress bar


 The key is by using the CFFLUSH tag.

 CFFLUSH takes whatever is in the buffer and flushes it to the 
 browsers.

 Look up CFFLUSH in the documentation and you'll see what I mean.

 The only problem when using CFFLUSH is the fact that you can't use 
 CFLOCATION after it... Kind of a headache to write the redirects in 
 Javascript.

 Peter Bagnato

 -Original Message-
 From: Dave Lyons [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 11:46 PM
 To: CF-Talk
 Subject: Re: uploading progress bar
 Importance: High


 one other ?
 how did you implement it?
 on an action page sent to after submission or just after the form?


 Dave
 - Original Message -
 From: Peter Bagnato [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, February 14, 2003 11:41 PM
 Subject: RE: uploading progress bar


  Here you go:
 
  !--- Initial Message ---
  pbPlease wait/b/p
 
  !--- Initially display a blank gif ---
  img name=meter src=../images/PercentBlank.gif
 
  !---Flush the page buffer ---
  cfflush
 
  !--- Loop from 0 to 25 and 25 to 50 to 75 to 100 --- cfloop 
  from=0 to 100 step=25 index=I
 
  !--- Time-consuming process goes here ---
  !--- Here, ColdFusion waits for 5 seconds as an example ---
  !--- Do not use this technique in actual code! ---
 
  cfset InitialTime = Now()
  cfloop condition=DateDiff('s', InitialTime, Now()) LT 2/cfloop
 
  !--- Change the SRC attribute of the Meter image --- cfoutput
script language=JavaScript
 document.images[meter].src = '../images/Percent#i#.gif';
/script
  /cfoutput
 
  cfflush
 
  !--- Display Success message ---
  pbThanks for waiting!/b/p
 
 
 
 
  Hope this helps!!!
 
  Peter Bagnato
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 14, 2003 10:35 PM
  To: CF-Talk
  Subject: Re: uploading progress bar
 
 
  I caught this thread about half way but count me in too (also 
  curious).
 
  -Novak
 
  - Original Message -
  From: Dave Lyons [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, February 14, 2003 7:09 PM
  Subject: Re: uploading progress bar
 
 
   ok
   if you didnt get it let me know
   dont forget to let me know how it works
  
   i'd like to see you guys came up with what ben came up with
  
  
   Dave
  
   - Original Message -
   From: Chuck Brockman [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, February 14, 2003 9:15 PM
   Subject: RE: uploading progress bar
  
  
Me too!!
   
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 9:04 PM
To: CF-Talk
Subject: RE: uploading progress bar
   
   
yeah, count me in (curiousity got the better of me) :P
   
   
-Original Message-
From: Terry [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 6:52 PM
To: CF-Talk
Subject: Re: uploading progress bar
   
   
I'd like to see it too
   
*** REPLY SEPARATOR  ***
   
On 2/14/2003 at 8:32 PM Ewok wrote:
   
all cfm??? can i see can i see??

- Original Message -
From: Dave Lyons [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 3:03 PM
Subject: Re: uploading progress bar


 im pretty sure its all cfm ben

 how was your short drive home last night

 Dave

 - Original Message -
 From: Ben Doom [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, February 14, 2003 2:58 PM
 Subject: RE: uploading progress bar


  Offhand, do you know what technologies this uses?  If it's 
  using java
or
  javascript, I'd really like to see it.
 
 
  --  Ben Doom
  Programmer  General Lackey
  Moonbow Software, Inc
 
  : -Original Message-
  : From: Dave Lyons [mailto:[EMAIL PROTECTED]]
  : Sent: Friday, February 14, 2003 2:28 PM
  : To: CF-Talk
  : Subject: uploading progress bar
  :
  :
  : I have scene a lot of people ask for an uploading 
  progress bar
  : and I actually have one.
  : I really don't have time to give it a try but if any of 
  you
 want
  : to try it out and let me know how it works, I'd be glad 
  to send
  : it to you. I would really like to know if its worth while 
  or
 not
  : before

RE: CFMX CFHTTP test

2003-02-15 Thread Peter Bagnato
I ran it I just received a blank screen. I am inserting all the debug
information at the bottom of this email.

I know that the USPS has web services available, so if you want to get
certain information from them, you might want to looking into using that
route.

Peter Bagnato

Here's the debug:


/td/td/td/th/th/th/tr/tr/tr/table/table/table/a/a
bbrev/acronym/address/applet/au/b/banner/big/blink/blockqu
ote/bq/caption/center/cite/code/comment/del/dfn/dir/div
/div/dl/em/fig/fn/font/form/frame/frameset/h1/h2/h3
/h4/h5/h6/head/i/ins/kbd/listing/map/marquee/menu/mult
icol/nobr/noframes/noscript/note/ol/p/param/person/plainte
xt/pre/q/s/samp/script/select/small/strike/strong/sub/
sup/table/td/textarea/th/title/tr/tt/u/ul/var/wbr/xm
p
style type=text/css
.cfdebug
{
color:black; 
background-color:white; 
font-family:Times New Roman, Times, serif; 
font-size:small
}

.cfdebuglge
{
color:black; 
background-color:white; 
font-family:Times New Roman, Times, serif; 
font-size:medium;
}

a.cfdebuglink {color:blue; background-color:white }
/style
table class=cfdebug bgcolor=white
tr
td
p class=cfdebughr/
b class=cfdebuglgea name=cfdebug_topDebugging Information/a/b

table class=cfdebug
tr
td class=cfdebug nowrapColdFusion Server Developer/td
td class=cfdebug6,0,0,55693/td
/tr
tr
td class=cfdebug nowrap Template /td
td class=cfdebug/test.cfm/td
/tr
tr
td class=cfdebug nowrap Time Stamp /td
td class=cfdebug15-Feb-03 11:24 AM/td
/tr
tr
td class=cfdebug nowrap Locale /td
td class=cfdebugEnglish (US)/td
/tr
tr
td class=cfdebug nowrap User Agent /td
td class=cfdebugMozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; .NET CLR 1.0.3705)/td
/tr
tr
td class=cfdebug nowrap Remote IP /td
td class=cfdebug127.0.0.1/td
/tr
tr
td class=cfdebug nowrap Host Name /td
td class=cfdebug127.0.0.1/td
/tr
/table
/p

p class=cfdebughr/b class=cfdebuglgea
name=cfdebug_scopevarsScope Variables/a/b/p


prebCGI Variables:/b
AUTH_PASSWORD=
AUTH_TYPE=Negotiate
AUTH_USER=D81KH911\Peter Bagnato
CERT_COOKIE=
CERT_FLAGS=
CERT_ISSUER=
CERT_KEYSIZE=
CERT_SECRETKEYSIZE=
CERT_SERIALNUMBER=
CERT_SERVER_ISSUER=
CERT_SERVER_SUBJECT=
CERT_SUBJECT=
CF_TEMPLATE_PATH=C:\Inetpub\wwwroot\test.cfm
CONTENT_LENGTH=0
CONTENT_TYPE=
CONTEXT_PATH=
GATEWAY_INTERFACE=CGI/1.1
HTTPS=off
HTTPS_KEYSIZE=
HTTPS_SECRETKEYSIZE=
HTTPS_SERVER_ISSUER=
HTTPS_SERVER_SUBJECT=
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_CONNECTION=Keep-Alive
HTTP_COOKIE=HIDEWELCOMEWINDOW=1; CFID=1503; CFTOKEN=16794920;
JSESSIONID=80302264291045326269514
HTTP_HOST=localhost
HTTP_REFERER=
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.0.3705)
PATH_INFO=/test.cfm
PATH_TRANSLATED=c:\inetpub\wwwroot\test.cfm
QUERY_STRING=
REMOTE_ADDR=127.0.0.1
REMOTE_HOST=127.0.0.1
REMOTE_USER=D81KH911\Peter Bagnato
REQUEST_METHOD=GET
SCRIPT_NAME=/test.cfm
SERVER_NAME=localhost
SERVER_PORT=80
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=Microsoft-IIS/5.1
WEB_SERVER_API=
/pre

prebCookie Variables:/b
CFID=1503
CFTOKEN=16794920
HIDEWELCOMEWINDOW=1
JSESSIONID=80302264291045326269514
/pre

prebServer Variables:/b
COLDFUSION=Struct (8)
OS=Struct (5)
/pre

font size=-1 class=cfdebugiDebug Rendering Time: 50 ms/i/fontbr
/

/td
/tr
/table


-Original Message-
From: Bud [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 15, 2003 11:07 AM
To: CF-Talk
Subject: CFMX CFHTTP test


Hi all. Can someone drop this code into a page on an MX server and 
see if you get a response?

cfhttp url=https://www.ups.com/ups.app/xml/Rate; method=POST
cfhttpparam type=formfield name=xml value='?xml version=1.0?
AccessRequest xml:lang=en-US AccessLicenseNumber/AccessLicenseNumber
/AccessRequest'
/cfhttp

I get Connection Failure from a CrystalTech MX server, but unless I'm 
losing my mind I was able to connect a couple days ago.

Thanks.
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development [EMAIL PROTECTED]
http://www.twcreations.com/ 954.721.3452

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: uploading progress bar

2003-02-15 Thread Peter Bagnato
Can you post the code from the MM site so I can take a look at it?

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 15, 2003 11:50 AM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High


the example on MM site stalls out not the code you sent back in
:)
Dave

- Original Message -
From: Peter Bagnato [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 7:53 AM
Subject: RE: uploading progress bar


 What stalls? Can you explain and share the code?

 -Original Message-
 From: Dave Lyons [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 15, 2003 12:20 AM
 To: CF-Talk
 Subject: Re: uploading progress bar
 Importance: High


 I looked up cfflush in the docs and ran the example and it stalls out, 
 lol

 Dave  -

 - Original Message -
 From: Peter Bagnato [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, February 14, 2003 11:51 PM
 Subject: RE: uploading progress bar


  The key is by using the CFFLUSH tag.
 
  CFFLUSH takes whatever is in the buffer and flushes it to the 
  browsers.
 
  Look up CFFLUSH in the documentation and you'll see what I mean.
 
  The only problem when using CFFLUSH is the fact that you can't use 
  CFLOCATION after it... Kind of a headache to write the redirects in 
  Javascript.
 
  Peter Bagnato
 
  -Original Message-
  From: Dave Lyons [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 14, 2003 11:46 PM
  To: CF-Talk
  Subject: Re: uploading progress bar
  Importance: High
 
 
  one other ?
  how did you implement it?
  on an action page sent to after submission or just after the form?
 
 
  Dave
  - Original Message -
  From: Peter Bagnato [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, February 14, 2003 11:41 PM
  Subject: RE: uploading progress bar
 
 
   Here you go:
  
   !--- Initial Message ---
   pbPlease wait/b/p
  
   !--- Initially display a blank gif ---
   img name=meter src=../images/PercentBlank.gif
  
   !---Flush the page buffer ---
   cfflush
  
   !--- Loop from 0 to 25 and 25 to 50 to 75 to 100 --- cfloop 
   from=0 to 100 step=25 index=I
  
   !--- Time-consuming process goes here ---
   !--- Here, ColdFusion waits for 5 seconds as an example ---
   !--- Do not use this technique in actual code! ---
  
   cfset InitialTime = Now()
   cfloop condition=DateDiff('s', InitialTime, Now()) LT 
   2/cfloop
  
   !--- Change the SRC attribute of the Meter image --- cfoutput
 script language=JavaScript
  document.images[meter].src = '../images/Percent#i#.gif';
 /script
   /cfoutput
  
   cfflush
  
   !--- Display Success message ---
   pbThanks for waiting!/b/p
  
  
  
  
   Hope this helps!!!
  
   Peter Bagnato
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 14, 2003 10:35 PM
   To: CF-Talk
   Subject: Re: uploading progress bar
  
  
   I caught this thread about half way but count me in too (also 
   curious).
  
   -Novak
  
   - Original Message -
   From: Dave Lyons [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, February 14, 2003 7:09 PM
   Subject: Re: uploading progress bar
  
  
ok
if you didnt get it let me know
dont forget to let me know how it works
   
i'd like to see you guys came up with what ben came up with
   
   
Dave
   
- Original Message -
From: Chuck Brockman [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 9:15 PM
Subject: RE: uploading progress bar
   
   
 Me too!!

 -Original Message-
 From: Charlie Griefer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 9:04 PM
 To: CF-Talk
 Subject: RE: uploading progress bar


 yeah, count me in (curiousity got the better of me) :P


 -Original Message-
 From: Terry [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 6:52 PM
 To: CF-Talk
 Subject: Re: uploading progress bar


 I'd like to see it too

 *** REPLY SEPARATOR  ***

 On 2/14/2003 at 8:32 PM Ewok wrote:

 all cfm??? can i see can i see??
 
 - Original Message -
 From: Dave Lyons [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, February 14, 2003 3:03 PM
 Subject: Re: uploading progress bar
 
 
  im pretty sure its all cfm ben
 
  how was your short drive home last night
 
  Dave
 
  - Original Message -
  From: Ben Doom [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, February 14, 2003 2:58 PM
  Subject: RE: uploading progress bar
 
 
   Offhand, do you know what technologies this uses?  If 
   it's using java
 or
   javascript, I'd really like to see

RE: uploading progress bar

2003-02-15 Thread Peter Bagnato
I ran the code and it worked just fine (I did remove the CFMODULE header and
CFINCLUDE footer).

Did you intall SP2 on your server yet?

pThe following example uses cfloop tags and the rand random number
generating function to delay data display. CFFLUSH is used to force the
browser to output data as it becomes available, rather than processing the
page first and rendering it all at once./p

pPlease be patient while we determine your lucky numbers.../p

cfflush
cfflush interval=10

!---Delay Loop to make it seem harder ---
cfloop index=randomindex from=1 to=5 step=1
cfset random=rand()
/cfloop

!---Now slowly output 10 random numbers ---
cfloop index=Myindex from=1 to=5 step=1
cfloop index=randomindex from=1 to=1 step=1
cfset random=rand()
/cfloop

cfoutput
Lucky number #Myindex# is:nbsp;nbsp;#RandRange(
1,99)#brbr
/cfoutput
/cfloop

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 15, 2003 12:45 PM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High


!--- Page header ---
cfmodule template=../../resource/include/html_header.cfm title=CFFLUSH
Example

pThe following example uses cfloop tags and the rand random number
generating function to delay data display. CFFLUSH is used to force the
browser to output data as it becomes available, rather than processing the
page first and rendering it all at once./p

pPlease be patient while we determine your lucky numbers.../p

cfflush
cfflush interval=10

!---Delay Loop to make it seem harder ---
cfloop index=randomindex from=1 to=5 step=1
cfset random=rand()
/cfloop

!---Now slowly output 10 random numbers ---
cfloop index=Myindex from=1 to=5 step=1
cfloop index=randomindex from=1 to=1 step=1
cfset random=rand()
/cfloop

cfoutput
Lucky number #Myindex# is:nbsp;nbsp;#RandRange(
1,99)#brbr
/cfoutput
/cfloop

!--- Page footer ---
cfinclude template=../../resource/include/html_footer.cfm


Dave -

- Original Message -
From: Peter Bagnato [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 12:40 PM
Subject: RE: uploading progress bar


 Can you post the code from the MM site so I can take a look at it?

 -Original Message-
 From: Dave Lyons [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 15, 2003 11:50 AM
 To: CF-Talk
 Subject: Re: uploading progress bar
 Importance: High


 the example on MM site stalls out not the code you sent back in
 :)
 Dave

 - Original Message -
 From: Peter Bagnato [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Saturday, February 15, 2003 7:53 AM
 Subject: RE: uploading progress bar


  What stalls? Can you explain and share the code?
 
  -Original Message-
  From: Dave Lyons [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, February 15, 2003 12:20 AM
  To: CF-Talk
  Subject: Re: uploading progress bar
  Importance: High
 
 
  I looked up cfflush in the docs and ran the example and it stalls 
  out, lol
 
  Dave  -
 
  - Original Message -
  From: Peter Bagnato [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, February 14, 2003 11:51 PM
  Subject: RE: uploading progress bar
 
 
   The key is by using the CFFLUSH tag.
  
   CFFLUSH takes whatever is in the buffer and flushes it to the 
   browsers.
  
   Look up CFFLUSH in the documentation and you'll see what I mean.
  
   The only problem when using CFFLUSH is the fact that you can't use 
   CFLOCATION after it... Kind of a headache to write the redirects 
   in Javascript.
  
   Peter Bagnato
  
   -Original Message-
   From: Dave Lyons [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 14, 2003 11:46 PM
   To: CF-Talk
   Subject: Re: uploading progress bar
   Importance: High
  
  
   one other ?
   how did you implement it?
   on an action page sent to after submission or just after the form?
  
  
   Dave
   - Original Message -
   From: Peter Bagnato [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, February 14, 2003 11:41 PM
   Subject: RE: uploading progress bar
  
  
Here you go:
   
!--- Initial Message ---
pbPlease wait/b/p
   
!--- Initially display a blank gif ---
img name=meter src=../images/PercentBlank.gif
   
!---Flush the page buffer ---
cfflush
   
!--- Loop from 0 to 25 and 25 to 50 to 75 to 100 --- cfloop 
from=0 to 100 step=25 index=I
   
!--- Time-consuming process goes here ---
!--- Here, ColdFusion waits for 5 seconds as an example ---
!--- Do not use this technique in actual code! ---
   
cfset InitialTime = Now()
cfloop condition=DateDiff('s', InitialTime, Now()) LT 
2/cfloop
   
!--- Change the SRC attribute of the Meter image --- cfoutput

RE: uploading progress bar

2003-02-15 Thread Peter Bagnato
How about sending the link so I can click on it and give it a try... This
should be  interesting :)

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 15, 2003 1:03 PM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High


also running a 512 cable modem, so it shouldnt be the connection

Dave

- Original Message -
From: Dave Lyons [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 12:58 PM
Subject: Re: uploading progress bar


 yeah I have installed it
 im talking about the Macromedia example on there site chokes, not on 
 mine

 totally chokes in IE an in mozilla it starts to work followed by this
error:

  Error Occurred While Processing Request The request has exceeded the 
 allowable time limit Tag: CFLOOP


   The Error Occurred in

/data/www/httpd/apache2/htdocs/coldfusion/cfflush/cfflush_example/index.cfm:
 line 18

 16 : cfloop index=randomindex from=1 to=5 step=1 17 : 
 cfset random=rand() 18 : /cfloop
 19 :
 20 : !---Now slowly output 10 random numbers ---



 I doubt its my machine, I'm running a pentium 4 2.4 ghz with 768 mb of 
 rdram, xp pro

 Dave

 - Original Message -
 From: Peter Bagnato [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Saturday, February 15, 2003 12:49 PM
 Subject: RE: uploading progress bar


  I ran the code and it worked just fine (I did remove the CFMODULE 
  header
 and
  CFINCLUDE footer).
 
  Did you intall SP2 on your server yet?
 
  pThe following example uses cfloop tags and the rand random number 
  generating function to delay data display. CFFLUSH is used to force 
  the browser to output data as it becomes available, rather than 
  processing
the
  page first and rendering it all at once./p
 
  pPlease be patient while we determine your lucky numbers.../p
 
  cfflush
  cfflush interval=10
 
  !---Delay Loop to make it seem harder ---
  cfloop index=randomindex from=1 to=5 step=1 cfset 
  random=rand() /cfloop
 
  !---Now slowly output 10 random numbers ---
  cfloop index=Myindex from=1 to=5 step=1
  cfloop index=randomindex from=1 to=1 step=1 cfset 
  random=rand() /cfloop
 
  cfoutput
  Lucky number #Myindex# is:nbsp;nbsp;#RandRange( 1,99)#brbr
  /cfoutput
  /cfloop
 
  -Original Message-
  From: Dave Lyons [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, February 15, 2003 12:45 PM
  To: CF-Talk
  Subject: Re: uploading progress bar
  Importance: High
 
 
  !--- Page header ---
  cfmodule template=../../resource/include/html_header.cfm
title=CFFLUSH
  Example
 
  pThe following example uses cfloop tags and the rand random number 
  generating function to delay data display. CFFLUSH is used to force 
  the browser to output data as it becomes available, rather than 
  processing
the
  page first and rendering it all at once./p
 
  pPlease be patient while we determine your lucky numbers.../p
 
  cfflush
  cfflush interval=10
 
  !---Delay Loop to make it seem harder ---
  cfloop index=randomindex from=1 to=5 step=1 cfset 
  random=rand() /cfloop
 
  !---Now slowly output 10 random numbers ---
  cfloop index=Myindex from=1 to=5 step=1
  cfloop index=randomindex from=1 to=1 step=1 cfset 
  random=rand() /cfloop
 
  cfoutput
  Lucky number #Myindex# is:nbsp;nbsp;#RandRange( 1,99)#brbr
  /cfoutput
  /cfloop
 
  !--- Page footer ---
  cfinclude template=../../resource/include/html_footer.cfm
 
 
  Dave -
 
  - Original Message -
  From: Peter Bagnato [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Saturday, February 15, 2003 12:40 PM
  Subject: RE: uploading progress bar
 
 
   Can you post the code from the MM site so I can take a look at it?
  
   -Original Message-
   From: Dave Lyons [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, February 15, 2003 11:50 AM
   To: CF-Talk
   Subject: Re: uploading progress bar
   Importance: High
  
  
   the example on MM site stalls out not the code you sent back in
   :)
   Dave
  
   - Original Message -
   From: Peter Bagnato [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Saturday, February 15, 2003 7:53 AM
   Subject: RE: uploading progress bar
  
  
What stalls? Can you explain and share the code?
   
-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 15, 2003 12:20 AM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High
   
   
I looked up cfflush in the docs and ran the example and it 
stalls out, lol
   
Dave  -
   
- Original Message -
From: Peter Bagnato [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 11:51 PM
Subject: RE: uploading progress bar
   
   
 The key is by using the CFFLUSH tag.

 CFFLUSH takes whatever is in the buffer and flushes it to the 
 browsers.

 Look up

RE: uploading progress bar

2003-02-15 Thread Peter Bagnato
Yes, I got the same error message...

Maybe MM should fix it ;)

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 15, 2003 1:35 PM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High


http://examples.macromedia.com/coldfusion/cfflush/?



Dave -

- Original Message -
From: Peter Bagnato [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 1:08 PM
Subject: RE: uploading progress bar


 How about sending the link so I can click on it and give it a try... 
 This should be  interesting :)

 -Original Message-
 From: Dave Lyons [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 15, 2003 1:03 PM
 To: CF-Talk
 Subject: Re: uploading progress bar
 Importance: High


 also running a 512 cable modem, so it shouldnt be the connection

 Dave

 - Original Message -
 From: Dave Lyons [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Saturday, February 15, 2003 12:58 PM
 Subject: Re: uploading progress bar


  yeah I have installed it
  im talking about the Macromedia example on there site chokes, not on 
  mine
 
  totally chokes in IE an in mozilla it starts to work followed by 
  this
 error:
 
   Error Occurred While Processing Request The request has exceeded 
  the allowable time limit Tag: CFLOOP
 
 
The Error Occurred in
 

/data/www/httpd/apache2/htdocs/coldfusion/cfflush/cfflush_example/index.cfm:
  line 18
 
  16 : cfloop index=randomindex from=1 to=5 step=1 17 : 
  cfset random=rand() 18 : /cfloop 19 :
  20 : !---Now slowly output 10 random numbers ---
 
 
 
  I doubt its my machine, I'm running a pentium 4 2.4 ghz with 768 mb 
  of rdram, xp pro
 
  Dave
 
  - Original Message -
  From: Peter Bagnato [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Saturday, February 15, 2003 12:49 PM
  Subject: RE: uploading progress bar
 
 
   I ran the code and it worked just fine (I did remove the CFMODULE 
   header
  and
   CFINCLUDE footer).
  
   Did you intall SP2 on your server yet?
  
   pThe following example uses cfloop tags and the rand random 
   number generating function to delay data display. CFFLUSH is used 
   to force the browser to output data as it becomes available, 
   rather than processing
 the
   page first and rendering it all at once./p
  
   pPlease be patient while we determine your lucky numbers.../p
  
   cfflush
   cfflush interval=10
  
   !---Delay Loop to make it seem harder ---
   cfloop index=randomindex from=1 to=5 step=1 cfset 
   random=rand() /cfloop
  
   !---Now slowly output 10 random numbers ---
   cfloop index=Myindex from=1 to=5 step=1
   cfloop index=randomindex from=1 to=1 step=1 cfset 
   random=rand() /cfloop
  
   cfoutput
   Lucky number #Myindex# is:nbsp;nbsp;#RandRange( 1,99)#brbr 
   /cfoutput /cfloop
  
   -Original Message-
   From: Dave Lyons [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, February 15, 2003 12:45 PM
   To: CF-Talk
   Subject: Re: uploading progress bar
   Importance: High
  
  
   !--- Page header ---
   cfmodule template=../../resource/include/html_header.cfm
 title=CFFLUSH
   Example
  
   pThe following example uses cfloop tags and the rand random 
   number generating function to delay data display. CFFLUSH is used 
   to force the browser to output data as it becomes available, 
   rather than processing
 the
   page first and rendering it all at once./p
  
   pPlease be patient while we determine your lucky numbers.../p
  
   cfflush
   cfflush interval=10
  
   !---Delay Loop to make it seem harder ---
   cfloop index=randomindex from=1 to=5 step=1 cfset 
   random=rand() /cfloop
  
   !---Now slowly output 10 random numbers ---
   cfloop index=Myindex from=1 to=5 step=1
   cfloop index=randomindex from=1 to=1 step=1 cfset 
   random=rand() /cfloop
  
   cfoutput
   Lucky number #Myindex# is:nbsp;nbsp;#RandRange( 1,99)#brbr 
   /cfoutput /cfloop
  
   !--- Page footer ---
   cfinclude template=../../resource/include/html_footer.cfm
  
  
   Dave -
  
   - Original Message -
   From: Peter Bagnato [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Saturday, February 15, 2003 12:40 PM
   Subject: RE: uploading progress bar
  
  
Can you post the code from the MM site so I can take a look at 
it?
   
-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 15, 2003 11:50 AM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High
   
   
the example on MM site stalls out not the code you sent back in
:)
Dave
   
- Original Message -
From: Peter Bagnato [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 7:53 AM
Subject: RE: uploading progress bar
   
   
 What stalls? Can you explain and share the code?

 -Original

Basic HTML Question

2003-02-15 Thread Peter Bagnato
I just inherited a web site from another developer.

Several times he is used the following code:

cfoutput
A HREF=RecordEdit.cfm###header#/A
/cfoutput

Can anyone explain what purpose the '##' serves at the end of the HREF?

Thanks!
Peter BAgnato

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Basic HTML Question

2003-02-15 Thread Peter Bagnato
That's what I thought, but I see it all over the place... I'm just trying to
figure out if there is some reason for it that I'm not aware of...

-Original Message-
From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 15, 2003 2:46 PM
To: CF-Talk
Subject: Re: Basic HTML Question
Importance: High


I am not sure what he is actually using it for, but the output would be
RecordEdit.cfm#  (one #)

Paul Giesenhagen
QuillDesign


- Original Message -
From: Peter Bagnato [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 1:47 PM
Subject: Basic HTML Question


 I just inherited a web site from another developer.

 Several times he is used the following code:

 cfoutput
 A HREF=RecordEdit.cfm###header#/A
 /cfoutput

 Can anyone explain what purpose the '##' serves at the end of the 
 HREF?

 Thanks!
 Peter BAgnato

 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Basic HTML Question

2003-02-15 Thread Peter Bagnato
I got ahold of the guy who wrote the code, he said when he converted the
site from DW 2.0 to DW 4.0 it wiped all his variable out.

He...he... Caveat emperor ;)



-Original Message-
From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 15, 2003 2:51 PM
To: CF-Talk
Subject: Re: Basic HTML Question
Importance: High


Oops .. you are right ... ### would leave one ... nothing like wrong answers
:)

Paul Giesenhagen
QuillDesign

- Original Message -
From: Dave Lyons [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 1:53 PM
Subject: Re: Basic HTML Question


 i would assume its a typo but they should basically cancel out since 
 there is nothing in between. I'm a newbie so i dont know but could it 
 possibly a nifty lil trick to not show the rest of the string in the 
 browser?

 dave
 !--- doesnt know jack about cfm ---

 - Original Message -
 From: Peter Bagnato [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Saturday, February 15, 2003 2:47 PM
 Subject: Basic HTML Question


  I just inherited a web site from another developer.
 
  Several times he is used the following code:
 
  cfoutput
  A HREF=RecordEdit.cfm###header#/A
  /cfoutput
 
  Can anyone explain what purpose the '##' serves at the end of the 
  HREF?
 
  Thanks!
  Peter BAgnato
 
 
 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: uploading progress bar

2003-02-14 Thread Peter Bagnato
Here you go:

!--- Initial Message ---
pbPlease wait/b/p

!--- Initially display a blank gif ---
img name=meter src=../images/PercentBlank.gif

!---Flush the page buffer ---
cfflush

!--- Loop from 0 to 25 and 25 to 50 to 75 to 100 ---
cfloop from=0 to 100 step=25 index=I

!--- Time-consuming process goes here ---
!--- Here, ColdFusion waits for 5 seconds as an example ---
!--- Do not use this technique in actual code! ---

cfset InitialTime = Now()
cfloop condition=DateDiff('s', InitialTime, Now()) LT 2/cfloop

!--- Change the SRC attribute of the Meter image ---
cfoutput
  script language=JavaScript
   document.images[meter].src = '../images/Percent#i#.gif';
  /script
/cfoutput

cfflush

!--- Display Success message ---
pbThanks for waiting!/b/p




Hope this helps!!!

Peter Bagnato


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 14, 2003 10:35 PM
To: CF-Talk
Subject: Re: uploading progress bar


I caught this thread about half way but count me in too (also curious).

-Novak

- Original Message -
From: Dave Lyons [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 7:09 PM
Subject: Re: uploading progress bar


 ok
 if you didnt get it let me know
 dont forget to let me know how it works

 i'd like to see you guys came up with what ben came up with


 Dave

 - Original Message -
 From: Chuck Brockman [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, February 14, 2003 9:15 PM
 Subject: RE: uploading progress bar


  Me too!!
 
  -Original Message-
  From: Charlie Griefer [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 14, 2003 9:04 PM
  To: CF-Talk
  Subject: RE: uploading progress bar
 
 
  yeah, count me in (curiousity got the better of me) :P
 
 
  -Original Message-
  From: Terry [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 14, 2003 6:52 PM
  To: CF-Talk
  Subject: Re: uploading progress bar
 
 
  I'd like to see it too
 
  *** REPLY SEPARATOR  ***
 
  On 2/14/2003 at 8:32 PM Ewok wrote:
 
  all cfm??? can i see can i see??
  
  - Original Message -
  From: Dave Lyons [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, February 14, 2003 3:03 PM
  Subject: Re: uploading progress bar
  
  
   im pretty sure its all cfm ben
  
   how was your short drive home last night
  
   Dave
  
   - Original Message -
   From: Ben Doom [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, February 14, 2003 2:58 PM
   Subject: RE: uploading progress bar
  
  
Offhand, do you know what technologies this uses?  If it's 
using java
  or
javascript, I'd really like to see it.
   
   
--  Ben Doom
Programmer  General Lackey
Moonbow Software, Inc
   
: -Original Message-
: From: Dave Lyons [mailto:[EMAIL PROTECTED]]
: Sent: Friday, February 14, 2003 2:28 PM
: To: CF-Talk
: Subject: uploading progress bar
:
:
: I have scene a lot of people ask for an uploading progress 
bar
: and I actually have one.
: I really don't have time to give it a try but if any of you want
: to try it out and let me know how it works, I'd be glad to send
: it to you. I would really like to know if its worth while or not
: before I waste several hours trying to figure it out:)
:
: dave
: !--- doesn't know jack about cfm ---
:
:
:
:
:
:
:
   
  
  
 
 
 
 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: uploading progress bar

2003-02-14 Thread Peter Bagnato
The key is by using the CFFLUSH tag.

CFFLUSH takes whatever is in the buffer and flushes it to the browsers.

Look up CFFLUSH in the documentation and you'll see what I mean.

The only problem when using CFFLUSH is the fact that you can't use
CFLOCATION after it... Kind of a headache to write the redirects in
Javascript.

Peter Bagnato

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 14, 2003 11:46 PM
To: CF-Talk
Subject: Re: uploading progress bar
Importance: High


one other ?
how did you implement it?
on an action page sent to after submission or just after the form?


Dave
- Original Message -
From: Peter Bagnato [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 11:41 PM
Subject: RE: uploading progress bar


 Here you go:

 !--- Initial Message ---
 pbPlease wait/b/p

 !--- Initially display a blank gif ---
 img name=meter src=../images/PercentBlank.gif

 !---Flush the page buffer ---
 cfflush

 !--- Loop from 0 to 25 and 25 to 50 to 75 to 100 --- cfloop 
 from=0 to 100 step=25 index=I

 !--- Time-consuming process goes here ---
 !--- Here, ColdFusion waits for 5 seconds as an example ---
 !--- Do not use this technique in actual code! ---

 cfset InitialTime = Now()
 cfloop condition=DateDiff('s', InitialTime, Now()) LT 2/cfloop

 !--- Change the SRC attribute of the Meter image --- cfoutput
   script language=JavaScript
document.images[meter].src = '../images/Percent#i#.gif';
   /script
 /cfoutput

 cfflush

 !--- Display Success message ---
 pbThanks for waiting!/b/p




 Hope this helps!!!

 Peter Bagnato


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 10:35 PM
 To: CF-Talk
 Subject: Re: uploading progress bar


 I caught this thread about half way but count me in too (also 
 curious).

 -Novak

 - Original Message -
 From: Dave Lyons [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Friday, February 14, 2003 7:09 PM
 Subject: Re: uploading progress bar


  ok
  if you didnt get it let me know
  dont forget to let me know how it works
 
  i'd like to see you guys came up with what ben came up with
 
 
  Dave
 
  - Original Message -
  From: Chuck Brockman [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Friday, February 14, 2003 9:15 PM
  Subject: RE: uploading progress bar
 
 
   Me too!!
  
   -Original Message-
   From: Charlie Griefer [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 14, 2003 9:04 PM
   To: CF-Talk
   Subject: RE: uploading progress bar
  
  
   yeah, count me in (curiousity got the better of me) :P
  
  
   -Original Message-
   From: Terry [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 14, 2003 6:52 PM
   To: CF-Talk
   Subject: Re: uploading progress bar
  
  
   I'd like to see it too
  
   *** REPLY SEPARATOR  ***
  
   On 2/14/2003 at 8:32 PM Ewok wrote:
  
   all cfm??? can i see can i see??
   
   - Original Message -
   From: Dave Lyons [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Friday, February 14, 2003 3:03 PM
   Subject: Re: uploading progress bar
   
   
im pretty sure its all cfm ben
   
how was your short drive home last night
   
Dave
   
- Original Message -
From: Ben Doom [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 2:58 PM
Subject: RE: uploading progress bar
   
   
 Offhand, do you know what technologies this uses?  If it's 
 using java
   or
 javascript, I'd really like to see it.


 --  Ben Doom
 Programmer  General Lackey
 Moonbow Software, Inc

 : -Original Message-
 : From: Dave Lyons [mailto:[EMAIL PROTECTED]]
 : Sent: Friday, February 14, 2003 2:28 PM
 : To: CF-Talk
 : Subject: uploading progress bar
 :
 :
 : I have scene a lot of people ask for an uploading progress 
 bar
 : and I actually have one.
 : I really don't have time to give it a try but if any of you
want
 : to try it out and let me know how it works, I'd be glad to 
 send
 : it to you. I would really like to know if its worth while or
not
 : before I waste several hours trying to figure it out:)
 :
 : dave
 : !--- doesn't know jack about cfm ---
 :
 :
 :
 :
 :
 :
 :

   
   
  
  
  
 

 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm

RE: SQL Help Requested: Unique Same Field Sum Combinations

2003-02-13 Thread Peter Bagnato
You can also just check the value using CFOUTPUT and then add it to the list
if it is less than six.

cfoutput query=SockQuery


 cfset SockList = 
 cfif NumberOfSock lt 6
   cfset SockList = ListAppend(SockList, SockDrawerNumber)
 /cfif

/cfoutput

Peter Bagnato

-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 13, 2003 7:37 PM
To: CF-Talk
Subject: Re: SQL Help Requested: Unique Same Field Sum Combinations


Thomas Sammons wrote:
 
 How would you do this in CF (any version 4.5 or higher): return all 
 unique combinations of rows where the unique row field value 
 combination has a certain summed value?
 
 For example:
 I have a SocksTable with 6 SockDrawers, and each SockDrawer has a 
 number of Socks in it. I want to get the list of unique combinations 
 of SockDrawers that have a combined total of, say, 6 Socks or less.

I don't think SQL is the right tool for it, although if you dbms 
supports WITH RECURSIVE it might be an option. I think I would use CF to 
loop over an array for this. Code below, but just by hand so you 
probably need to debug it. Mind the wrap.

cfscript
maximum = 6;

socksArray = ArrayNew(1);

socksArray[1][idlist] = 1;
socksArray[1][socktotal] = 5;
socksArray[2][idlist] = 2;
socksArray[2][socktotal] = 2;
socksArray[3][idlist] = 3;
socksArray[3][socktotal] = 1;
socksArray[4][idlist] = 4;
socksArray[4][socktotal] = 3;
socksArray[5][idlist] = 5;
socksArray[5][socktotal] = 4;

i = 1;
while (i lt ArrayLen(socksArray)) {
   j = i + 1;
   while (j lt ArrayLen(socksArray)) {
 if (socksArray[i][sockTotal]+socksArray[j][sockTotal] LTE 
maximum and not REFind(,  socksArray[i][sockTotal  ,  
socksArray[j][sockTotal],,([0-9]*),.*\1)) {
   ArrayAppend(socksArray(StructNew());
   socksArray[ArrayLen(socksArray)][idlist] = 
socksArray[i][idlist]  , socksArray[j][idlist];
   socksArray[ArrayLen(socksArray)][socktotal] = 
socksArray[i][sockTotal] + socksArray[j][sockTotal];
   }
 j = j + 1;
 }
   i = i + 1;
   }
/cfscript

Jochem


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Macromedia Government Training Day invitation

2003-01-13 Thread Peter Bagnato
FREE  Training 

Macromedia Government 

Training Day  


 

Thursday, Jan. 30, 2003 Washington, D.C.


 


 http://www.macromedia.com/v1/company/events/seminars/govtsummit.cfm%20
Register today

 


  


 

Learn the latest tools and strategies for building and deploying
enterprise-level web applications that integrate with your existing IT
systems, reduce costs, and improve access to information.  

 

Join Jeremy Allaire, CTO of Macromedia, as he addresses challenges and
solutions for delivering enterprise level e-government applications.

  

Get technical tips and discover affordable solutions from Macromedia and
industry experts including Ben Forta, ASAP, ASD, Brookwood Media Arts,
FigLeaf, SAIC, and Web World Studios. 

Listen to accessibility leaders including Ken Nakata from the Department of
Justice as they address critical aspects of web design to help you build
rich web content that meets Section 508.

Learn how to: 

. Decrease development time and streamline your web-content process  

. Build accessible, rich web content  

. Start using Macromedia Flash MX and Flash Communication Server MX

. Rapidly and efficiently build enterprise Content Management Solutions 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Design Pattern Question

2003-01-11 Thread Peter Bagnato
I think that this is a very healthy design methodology for CF.

Ben Forta has been harping for ages about the importance of separating the
display, application, and data layers from the CF applications. 

The methodology outlined in that page presents this to the CF environment.

It actually follows many of the well known and widely used J2EE
methodologies out there. That was something that always bugged me about
FuseBox and other methodologies presented for CF.

Those are just my thoughts:
Peter Bagnato


-Original Message-
From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 11, 2003 11:59 PM
To: CF-Talk
Subject: Design Pattern Question

Has anyone here taken a detailed look at the CFMX (semi) OOP design 
pattern put forth at http://www.benorama.com? Is anyone here using it? 
Formed some opinions? Have anything to add (or subtract)? Know who put 
this together in the first place?

As one of my former commanders used to ask Questions? Comments? War 
Stories?

Cutter


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: ODBC Date Question

2002-12-30 Thread Peter Bagnato
Here's a great date validation script that I use:

http://javascript.internet.com/forms/val-date.html

It can easily be modified to do validate the date that you want :)

Peter Bagnato

-Original Message-
From: Benjamin S. Rogers [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 30, 2002 10:06 AM
To: CF-Talk
Subject: RE: ODBC Date Question
Importance: High

Just using IsDate() does not work very well. IsDate() will accept a lot
of dates that ODBC won't (usually typos such as 3 of 5 digit years). I
would also perform a range check in ColdFusion on any date submitted and
return an appropriate error to the user. To give you an example, for
every form field that accepts a date, I end up with at least 25 lines of
validation code and exception handling.

Benjamin S. Rogers
http://www.c4.net/
v.508.240.0051
f.508.240.0057

-Original Message-
From: Julia Green [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 30, 2002 9:47 AM
To: CF-Talk
Subject: Re: ODBC Date Question


How do you validate the input dates with isdate()?  Never used it
before...
Julia
 Richard Meredith-Hardy [EMAIL PROTECTED] wrote:A few notes:

- is 'File' a reserved word?

- I have to say a a European I HATE date formats like mm/dd/ or
dd/mm/ for the simple reason that there are too many ways to
misunderstand them - when I ask people to put a date in a single field I
ask them to use dd mmm  which is completely unambiguous and is
perfectly understood by createodbcdate() 

- are you sure the actual values of the dates in your new DB are what
you think they are after the transformation? 

- validate the input dates before the query with isdate()

Julia Green wrote:
 
 This I am sure is a beginning question...so one of you experts can
help me...
 I have a client Gilway lighting, whose form, gilwaydb.cfm submits an
ODBC date
 
 to an Access table whose dates I converted all to Date/Time(shot over
to SQL Server) in the format mm/dd/, the table is called tblfile4d
 Now the problem, my client wants me to do a form where you put a
Beginning and Ending Date,
 Beginning Date:

 

 Ending Date:

 

 
 
Type the dates in the following format: 10/13/2001. Be sure to type a
beginning and ending date.

 
 [input] 

 and to find the files that go with these dates, but for instance, if I
enter 5/6/01 or
 5/6/2001
 and 12/6/01, it returns the 02 dates, all between 5/6/2002 and
12/6/2002.
 So remember tblfile4d has date format for Clock for all the dates now.
 It is called gilsrch.cfm posts to gildate2.cfm with this relevant
code:
 
 
 SELECT count(t.File) as file3, t.Clock, g.File, t.File
 FROM tblfile4d t, gilway12 g
 WHERE Clock BETWEEN #CreateODBCDate(Form.Clock1)# AND
#CreateODBCDate(Form.Clock2)#
 AND t.File=g.File
 GROUP BY g.File, t.File, t.Clock
 ORDER BY file3 DESC
 
 
 
 
 SELECT count(File) AS file2
 FROM tblfile4d
 WHERE Clock BETWEEN #CreateODBCDate(Form.Clock1)# AND
#CreateODBCDate(Form.Clock2)#
 
 
 SELECT count(t.File) as file4
 FROM tblfile4d t, gilway12 g
 WHERE Clock BETWEEN #CreateODBCDate(Form.Clock1)# AND
#CreateODBCDate(Form.Clock2)#
 AND t.File=g.File
 
 
 Why is it doing this I can give you the links...
 http://www.cheshiregroup.com/gilway/gilwaydb.cfm
 http://www.cheshiregroup.com/gilway/gilsrch.cfm
 Can someone help me with this? Why does it return other years? Please
cc me at
 [EMAIL PROTECTED] if you can
 Julia Green
 
 
 
 
 
 
 
 Julia Computer Consulting
 Web Design @ Reasonable Prices
 Email: [EMAIL PROTECTED]
 www.juliagreen.com
 Phone: 617-926-3413
 Cell: 617-596-6003
 Fax: 1-617-812-8148
 



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: ODBC Date Question

2002-12-29 Thread Peter Bagnato
Hi Julia,

I went to your search screen and tried returning some data using the
following dates:

5/6/1999 AND 12/6/2002

It couldn't find anything, so it was a bit hard to reproduce your problem.

However, this query will not return anything except the year you ask for:

CFQUERY NAME=gilwayc  DATASOURCE=cgi2

SELECT count(t.File) as file3, t.Clock, g.File, t.File
FROM tblfile4d t, gilway12 g
WHERE 
t.File=g.File 
AND
(Clock BETWEEN #CreateODBCDate(Form.Clock1)# AND
#CreateODBCDate(Form.Clock2)#)
GROUP BY g.File, t.File, t.Clock
ORDER BY file3 DESC
 
/CFQUERY

You also might want to put some validation in your search form to make sure
your site visitors only enter valid dates. I put in 77/6/1999 and it allowed
the page to process...

Hope this helps ! ;)

Peter Bagnato


-Original Message-
From: Julia Green [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, December 29, 2002 2:47 PM
To: CF-Talk
Subject: ODBC Date Question

This I am sure is a beginning question...so one of you experts can help
me...
I have a client Gilway lighting, whose form, gilwaydb.cfm submits an ODBC
date
CFINPUT TYPE=TEXT NAME=Clock SIZE=10 VALUE=#CreateODBCDate(Now())#
to an Access table whose dates I converted all to Date/Time(shot over to SQL
Server) in the format mm/dd/, the table is called tblfile4d
Now the problem, my client wants me to do a form where you put a Beginning
and Ending Date, 
Beginning Date:br
CFINPUT TYPE=text NAME=Clock1 SIZE=20br
Ending Date:br
CFINPUT TYPE=text NAME=Clock2 SIZE=20br

PCENTERType the dates in the following format:  10/13/2001.  Be sure to
type a beginning and ending date.BR
pINPUT TYPE=submitVALUE=Search/CENTER/P
and to find the files that go with these dates, but for instance, if I enter
5/6/01 or 
5/6/2001
and 12/6/01, it returns the 02 dates, all between 5/6/2002 and 12/6/2002.
So remember tblfile4d has date format for Clock for all the dates now.
It is called gilsrch.cfm posts to gildate2.cfm with this relevant code:
CFQUERY NAME=gilwayc  DATASOURCE=cgi2

SELECT count(t.File) as file3, t.Clock, g.File, t.File
FROM tblfile4d t, gilway12 g
WHERE Clock BETWEEN #CreateODBCDate(Form.Clock1)# AND
#CreateODBCDate(Form.Clock2)#
  AND t.File=g.File
  GROUP BY g.File, t.File, t.Clock
  ORDER BY file3 DESC
 
/CFQUERY

CFQUERY NAME=GetQuery DATASOURCE=cgi2
SELECT count(File) AS file2
FROM tblfile4d
WHERE Clock BETWEEN #CreateODBCDate(Form.Clock1)# AND
#CreateODBCDate(Form.Clock2)#
/cfquery
CFQUERY NAME=GetQueryc DATASOURCE=cgi2
SELECT count(t.File) as file4
FROM tblfile4d t, gilway12 g
WHERE Clock BETWEEN #CreateODBCDate(Form.Clock1)# AND
#CreateODBCDate(Form.Clock2)#
AND t.File=g.File
/cfquery

Why is it doing this I can give you the links...
http://www.cheshiregroup.com/gilway/gilwaydb.cfm
http://www.cheshiregroup.com/gilway/gilsrch.cfm
Can someone help me with this?  Why does it return other years?  Please cc
me at
[EMAIL PROTECTED] if you can
Julia Green
 
 
 
 
 
 


Julia Computer Consulting
Web Design @ Reasonable Prices
Email:  [EMAIL PROTECTED]
www.juliagreen.com
Phone:  617-926-3413
Cell:  617-596-6003
Fax:   1-617-812-8148

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Page is Loading message...

2002-12-15 Thread Peter Bagnato
Thanks, Dave!

Your code works PERFECTLY

Peter Bagnato


-Original Message-
From: Dave Babbitt [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 14, 2002 11:51 AM
To: CF-Talk
Subject: RE: Page is Loading message...
Importance: High


body
!--- Your header here ---
cfflush
table
border=0
cellpadding=0
cellspacing=0
id=PleaseWaitMessage
width=100%
trtd
align=center
valign=bottom
span
style=font-size: 17px; font-family:
verdana,arial,helvetica,sans-serif;
font-weight: 400;
b
br /
br /
Processing #Variables.PageTitle#
!--- Paypal's animated gif, for instance...
---
img
align=baseline
border=0
height=12

src=http://www.paypal.com/images/period_ani.gif;
width=20
/
/b/span/td/tr/table
cfflush
!--- All the stuff that takes a long to process here
---
script type=text/jscript

document.all.PleaseWaitMessage.style.display='none';
/script
!--- Your footer here ---
/body

-Original Message-
[snip]

I have several CF templates that take quite some time to process.

Can someone tell me how I can include an animated gif to display 'Page
is loading' while the template is being processed so that the page
visitors don't have to stare at a blank screen while it is being
processed?

[]snip]

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Page is Loading message...

2002-12-14 Thread Peter Bagnato
Hello,

I have several CF templates that take quite some time to process.

Can someone tell me how I can include an animated gif to display 'Page
is loading' while the template is being processed so that the page
visitors don't have to stare at a blank screen while it is being
processed?

A pop-up window displaying the same message would work just fine also...

Thanks!
Peter Bagnato

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: MS Word/CFOBJECT Help

2002-12-09 Thread Peter Bagnato
Hi Matt,

Thanks so much for the code! I'll try it out at work tomorrow and let
you know how it works!!

Peter Bagnato

-Original Message-
From: Matthew Small [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 09, 2002 9:31 AM
To: CF-Talk
Subject: RE: MS Word/CFOBJECT Help
Importance: High

Here is some actual code that I currently use- it's not pretty, but it
does the job for CF.  I'll be happy to try to answer any questions for
you. 

Matt Small



cftry
cfobject action=CONNECT
class=Word.Application name=objWord type=COM
cfcatch
cfobject action=CREATE
class=Word.Application name=objWord type=COM 
/cfcatch
/cftry
cftry
cfscript
objDoc = objWord.Documents;  
newDoc =
objDoc.open(#path_documents#\announcerscoresheet_#form.show#.htm);
po = newDoc.PageSetup;
po.Orientation = 1;
po.TopMargin = 36;
po.BottomMargin = 36;
po.LeftMargin = 36;
po.RightMargin = 36;

objSecs = newDoc.Sections;
objSec1 = objSecs.Item(1);
objSec1Headers =
objSec1.Headers;
objSec1Header1 =
objSec1Headers.Item(1);
objRange = objSec1Header1.Range;

// Set the paragraph format
// Values for alignment are
{0=Left,1=Center,2=Right,3=Justify}
objParaFormat =
objRange.ParagraphFormat;
objParaFormat.Alignment = 2;

// Set a right-tab at 6 inches
// Tab positions are in points,
where 72 points = 1 inch
// Arguments to the TabStops.Add
function:
//Position: 6 inches * 72
points/inch = 432 points
//Alignment: values include
{0=Left,1=Center,2=Right}
objTabStops =
objParaFormat.TabStops;
objTabStops.ClearAll();
objTabStops.Add(432,2);
 
objRange.Select();
objSelection = objWord.Selection;
objFont = objSelection.Font;
objFont.Name = Arial;
 objFont.Size = 10;

// Insert the page number
// Page number is field type 33
// Story is unit type 6
objRange.Collapse(0);
objFields = objRange.Fields;
objFields.Add(objRange,33);

 
/cfscript
cflock name=printout type=exclusive
timeout=300
cfscript
switch (form.printer) {
case 1:
{objWord.ActivePrinter = #printer_princess#; break;}
case 2:
{objWord.ActivePrinter = #printer_lana#; break;}
case 3:
{objWord.ActivePrinter = #printer_3#; break;}
case 4:
{objWord.ActivePrinter = #printer_4#; break;}
case 5:
{objWord.ActivePrinter = #printer_5#; break;}}
newDoc.PrintOut(); 
/cfscript
/cflock   
cfscript
newDoc.Close();
/cfscript
cfcatch
cfscript
newDoc.Close();
objWord.Quit

MS Word/CFOBJECT Help

2002-12-06 Thread Peter Bagnato
Hello,

Does anyone have any example code or documentation (other than the basic
templates found on CFCOMET) that can show me how to create, set footers,
margins, etc. in MS Word files using CFOBJECT?

Thanks!
Peter 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: cfmx and FORM file oddity

2002-12-05 Thread Peter Bagnato
You might want to try something like this instead:

!---Code in the upload form---

form enctype=multipart/form-data action=upload_action.cfm
method=post

File to upload:
input type=file name=uploadfile size=40

input type=submit name=Upload value=Upload
/form

!--- code in the action form---

cffile action=upload filefield=UploadFile destination=d:\temp\
nameconflict=unique

File uploaded successfully:
Filename on client: cfoutput#cffile.clientfile#/cfoutputbr
Filename on server: cfoutput#cffile.serverfile#/cfoutputbr
File Size: cfoutput#cffile.filesize#/cfoutputbr

!--- move file to another folder ---

cffile action=move source=D:\temp\#cffile.serverfile#
destination=d:\junk\#cffile.serverfile#

br
File successfully moved to
D:\Junk\cfoutput#cffile.serverfile#/cfoutput



Peter Bagnato



-Original Message-
From: Jaye Morris - jayeZERO.com [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 05, 2002 9:48 AM
To: CF-Talk
Subject: cfmx and FORM file oddity

I am using something relative to the following code:
 
form action=blahblahblah.cfm method=post
enctype=multipart/form-data
input type=File name=uploadedFileNamebr
input type=Submit value=Upload Now

/form
 
During the process, I am attempting to catch the variable
uploadedFileName,  but instead of getting a file name like
myfilename.zip or whatever, I get something like:
 
R:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\neotmp1
6991.tmp
 
Being that neotmp16991.tmp is not the file name and is really something
like myfilename.zip, how do I get that actual file name as opposed to
what is seen above. 
 
 
-//-  Jaye Morris - Multimedia Developer
-//-  [EMAIL PROTECTED] - www.navtrak.net
-//-  [EMAIL PROTECTED] - www.jayezero.com
 


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.