setting up team games

2014-02-04 Thread Chad Gray

I am working on a website to keep track of baseball teams.  once section will 
be to take like 10 teams and set them up to play each other over 10 games.
 
I would like to figure out a way to programmatically to take the 10 teams and 
match them up with the other teams over the 10 games so they only play each 
other once over the course of the 10 games.
 
Make sense?  I am sure it is something simple, but I can't get my head wrapped 
around it.
 
Thanks!
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357579
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: setting up team games

2014-02-04 Thread Chad Gray

So like on Friday night
Team1 vs. Team2
Team3 vs.Team4
Team5 vs.Team6
Team7 vs. Team8
Team9 vs.Team10

On Saturday
Team1 vs. team3
Team2 vs  this is where I choke...  :)

There has to be a way to loop over this and add one or something then when you 
hit 11 reset that to 1

See where I am going?



-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com] 
Sent: Tuesday, February 04, 2014 11:06 AM
To: cf-talk
Subject: RE: setting up team games


I assume you're using a data base and some sort of random generator program to 
match up the teams.  If this is the case, just keep a history table of who has 
played who, then when you run the random play generator, check the history and 
do not allow repeats.  

If you're going to get 10 teams to play each other, it's going to take more 
than 10 games to get them to play each other... I think that would take 90 
games... unless not everyone is playing everyone.

Robert Harrison
Director of Interactive Services

Austin  Williams
Advertising I Branding I Digital I Direct
125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X 119   F 
631.434.7022 http://www.austin-williams.com

Blog:  http://www.austin-williams.com/blog
Twitter:  http://www.twitter.com/austin_williams 

-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com]
Sent: Tuesday, February 04, 2014 11:00 AM
To: cf-talk
Subject: setting up team games


I am working on a website to keep track of baseball teams.  once section will 
be to take like 10 teams and set them up to play each other over 10 games.
 
I would like to figure out a way to programmatically to take the 10 teams and 
match them up with the other teams over the 10 games so they only play each 
other once over the course of the 10 games.
 
Make sense?  I am sure it is something simple, but I can't get my head wrapped 
around it.
 
Thanks!
Chad





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357581
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: setting up team games

2014-02-04 Thread Chad Gray

It is youth league so not beer but who is in charge of snacks.  :)

-Original Message-
From: Roger Austin [mailto:raust...@nc.rr.com] 
Sent: Tuesday, February 04, 2014 11:20 AM
To: cf-talk
Subject: RE: setting up team games


You also need to add in the constraints of who is home team and who has to 
bring the beer.

 Chad Gray cg...@careyweb.com wrote: 
 
 So like on Friday night
 Team1 vs. Team2
 Team3 vs.Team4
 Team5 vs.Team6
 Team7 vs. Team8
 Team9 vs.Team10
 
 On Saturday
 Team1 vs. team3
 Team2 vs  this is where I choke...  :)
 
 There has to be a way to loop over this and add one or something then when 
 you hit 11 reset that to 1
 
 See where I am going?
 
 
 
 -Original Message-
 From: Robert Harrison [mailto:rob...@austin-williams.com] 
 Sent: Tuesday, February 04, 2014 11:06 AM
 To: cf-talk
 Subject: RE: setting up team games
 
 
 I assume you're using a data base and some sort of random generator program 
 to match up the teams.  If this is the case, just keep a history table of who 
 has played who, then when you run the random play generator, check the 
 history and do not allow repeats.  
 
 If you're going to get 10 teams to play each other, it's going to take more 
 than 10 games to get them to play each other... I think that would take 90 
 games... unless not everyone is playing everyone.
 
 Robert Harrison
 Director of Interactive Services
 
 Austin  Williams
 Advertising I Branding I Digital I Direct
 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X 119   
 F 631.434.7022 http://www.austin-williams.com
 
 Blog:  http://www.austin-williams.com/blog
 Twitter:  http://www.twitter.com/austin_williams 
 
 -Original Message-
 From: Chad Gray [mailto:cg...@careyweb.com]
 Sent: Tuesday, February 04, 2014 11:00 AM
 To: cf-talk
 Subject: setting up team games
 
 
 I am working on a website to keep track of baseball teams.  once section will 
 be to take like 10 teams and set them up to play each other over 10 games.
  
 I would like to figure out a way to programmatically to take the 10 teams and 
 match them up with the other teams over the 10 games so they only play each 
 other once over the course of the 10 games.
  
 Make sense?  I am sure it is something simple, but I can't get my head 
 wrapped around it.
  
 Thanks!
 Chad
 
 
 
 
 
 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357588
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: setting up team games

2014-02-04 Thread Chad Gray

Ya rounds...  like there will be 10 days that all 10 teams will play each other 
on that day

I need to pair up the teams so they don't repeat playing each other over the 
course of the 10 days of games.



-Original Message-
From: Will Swain [mailto:w...@hothorse.com] 
Sent: Tuesday, February 04, 2014 11:16 AM
To: cf-talk
Subject: Re: setting up team games


Sorry, 9 rounds of games, or 9 games each.


On 4 February 2014 16:15, Chad Gray cg...@careyweb.com wrote:


 So like on Friday night
 Team1 vs. Team2
 Team3 vs.Team4
 Team5 vs.Team6
 Team7 vs. Team8
 Team9 vs.Team10

 On Saturday
 Team1 vs. team3
 Team2 vs  this is where I choke...  :)

 There has to be a way to loop over this and add one or something then 
 when you hit 11 reset that to 1

 See where I am going?



 -Original Message-
 From: Robert Harrison [mailto:rob...@austin-williams.com]
 Sent: Tuesday, February 04, 2014 11:06 AM
 To: cf-talk
 Subject: RE: setting up team games


 I assume you're using a data base and some sort of random generator 
 program to match up the teams.  If this is the case, just keep a 
 history table of who has played who, then when you run the random play 
 generator, check the history and do not allow repeats.

 If you're going to get 10 teams to play each other, it's going to take 
 more than 10 games to get them to play each other... I think that 
 would take 90 games... unless not everyone is playing everyone.

 Robert Harrison
 Director of Interactive Services

 Austin  Williams
 Advertising I Branding I Digital I Direct
 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X
 119   F 631.434.7022 http://www.austin-williams.com

 Blog:  http://www.austin-williams.com/blog
 Twitter:  http://www.twitter.com/austin_williams

 -Original Message-
 From: Chad Gray [mailto:cg...@careyweb.com]
 Sent: Tuesday, February 04, 2014 11:00 AM
 To: cf-talk
 Subject: setting up team games


 I am working on a website to keep track of baseball teams.  once 
 section will be to take like 10 teams and set them up to play each 
 other over 10 games.

 I would like to figure out a way to programmatically to take the 10 
 teams and match them up with the other teams over the 10 games so they 
 only play each other once over the course of the 10 games.

 Make sense?  I am sure it is something simple, but I can't get my head 
 wrapped around it.

 Thanks!
 Chad





 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357589
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: setting up team games

2014-02-04 Thread Chad Gray

OH!  there is a term for it..   thanks!

-Original Message-
From: Roger Austin [mailto:raust...@nc.rr.com] 
Sent: Tuesday, February 04, 2014 11:38 AM
To: cf-talk
Subject: RE: setting up team games


Google Round Robin scheduling
 Chad Gray cg...@careyweb.com wrote: 
 
 Ya rounds...  like there will be 10 days that all 10 teams will play each 
 other on that day
 
 I need to pair up the teams so they don't repeat playing each other over the 
 course of the 10 days of games.

--
LinkedIn: http://www.linkedin.com/pub/roger-austin/8/a4/60
Twitter:  http://twitter.com/RogerTheGeek
Blog:  http://RogerTheGeek.wordpress.com/




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357592
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: setting up team games

2014-02-04 Thread Chad Gray

I think I figured something out.  I found this chunk of code on Ray's blog.
http://www.raymondcamden.com/index.cfm/2009/11/17/Ask-a-Jedi-Round-robin-display-of-data
Thank you Ray as always!

And tweaked it out to model the table structure of a round robin schedule.  
http://en.wikipedia.org/wiki/Round-robin_tournament 

Now I just need to take it and convert it to a query object or something like 
that so I can ask it Team 1 plays who in the 4th round?

!--- team names ---
cfset data = [ 
[team1, team2, team3, team4, team5, team6, team7, team8, 
team9, team10]
]

!--- number of rounds to play ---
cfset rounds = 12
  

cfscript
function render(arr) {
for(var i=1; i=arrayLen(arr); i++) {
for(var x=1; x=arrayLen(arr[i]); x++) {
writeOutput(arr[i][x]   );
}
}
}
/cfscript


cfoutput
#render(data)#
p/
/cfoutput

cfloop from=1 to=#variables.rounds# index=ii


cfset movingItem = data[1][1]
cfset arrayDeleteAt(data[1],1)
cfset arrayAppend(data[1], movingItem)


cfoutput
#render(data)#
p/
/cfoutput
/cfloop


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357594
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Windows 8.1 Pro 64

2014-01-29 Thread Chad Gray

Anyone know if we can run CF 9 and IIS on Windows 8.1 Pro?
 
I am looking at getting a Lenovo Carbon Ultrabook.
 
Thanks!
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357518
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Barcodes

2013-08-29 Thread Chad Gray

Well since Efflare's CFX gFont does not work with 64 bit systems I need to find 
a new way to make a barcodes on my websites.
 
Anyone recommend a way to create and display barcodes on a webpage?
 
Thanks,
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356649
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Barcodes

2013-08-29 Thread Chad Gray

Cool!  I should have known there would be a jQuery solution.

Thanks!
Chad

-Original Message-
From: Rob Parkhill [mailto:robert.parkh...@gmail.com] 
Sent: Thursday, August 29, 2013 11:41 AM
To: cf-talk
Subject: Re: Barcodes


You can use jQuery:

http://barcode-coder.com/en/barcode-jquery-plugin-201.html

There might be others too



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356651
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Barcodes

2013-08-29 Thread Chad Gray

Just regular old code 39 type of barcodes.  I will check out the java library 
also.

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Thursday, August 29, 2013 11:44 AM
To: cf-talk
Subject: Re: Barcodes


 Anyone recommend a way to create and display barcodes on a webpage?

What kind of barcodes, exactly? QR codes? UPC? The zxing library is a free, 
open-source Java library that's commonly used (in the Java world at least) - 
that's probably what I'd try first.

https://code.google.com/p/zxing/

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and 
provides the highest caliber vendor-authorized instruction at our training 
centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356653
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Efflare and ImageCR

2013-07-31 Thread Chad Gray

Anyone know how to get a hold of the developers of ImageCR?  It is an image 
processing CFX extension writing for CF.
 
Their website is a parked and expired.
 
Thanks,
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356346
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Efflare and ImageCR

2013-07-31 Thread Chad Gray

I know... I love using it.  It is super-fast and has processed thousands maybe 
millions of images for me.

I need to upgrade a server and I cannot find an installer for imageCR3.

I guess I have to convert my code to use cfimage instead.

Chad



-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com] 
Sent: Wednesday, July 31, 2013 10:50 AM
To: cf-talk
Subject: Re: Efflare and ImageCR


It's been many years since I've gotten any kind of response out of them. It was 
a great tag at the time, but long since dead in my experience.

On Wed, Jul 31, 2013 at 10:47 AM, Chad Gray cg...@careyweb.com wrote:


 Anyone know how to get a hold of the developers of ImageCR?  It is an 
 image processing CFX extension writing for CF.

 Their website is a parked and expired.

 Thanks,
 Chad

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356348
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Efflare and ImageCR

2013-07-31 Thread Chad Gray

I tried that, but it's installer must have installed supporting DLL's or 
something.

Of course this is on a 64 bit box, maybe I need to put it in the Program Files 
(x86).

I will keep poking at it.

Thanks,
Chad

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Wednesday, July 31, 2013 10:58 AM
To: cf-talk
Subject: Re: Efflare and ImageCR


 I need to upgrade a server and I cannot find an installer for imageCR3.

I don't think I've ever used ImageCR, but if you have it installed on your 
existing server, and it's just a CFX DLL, you shouldn't really need an 
installer. Copy the DLL to the new server, then register it within the CF 
Administrator.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and 
provides the highest caliber vendor-authorized instruction at our training 
centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356350
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Efflare and ImageCR

2013-07-31 Thread Chad Gray

Thanks for all the help, I was able to find an installer and got it running on 
our server.

We started working on a replacement with CFImage and man is that tag SLOW!

I will try to find the creators of ImageCR.  Maybe they will open source it if 
they are not going to sell it anymore. I know I emailed them a lot when it came 
out.  Hopefully I can find one of their personal emails.

There a way to looks at the domain names previous ownership?

Chad

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Wednesday, July 31, 2013 12:55 PM
To: cf-talk
Subject: Re: Efflare and ImageCR


 I tried that, but it's installer must have installed supporting DLL's or 
 something.

 Of course this is on a 64 bit box, maybe I need to put it in the Program 
 Files (x86).

In general, when you have one DLL that needs a function in another DLL, you can 
identify the second DLL by opening the first one in Dependency Checker 
(depends.exe). The DLLs don't need to be in a specific folder, as long as 
they're in the path. Find the missing DLL in Dependency Checker, then search 
the existing system for it, then copy it to a directory within the path on the 
new system. You can download Dependency Checker from somewhere on the web, I'm 
sure.

It may be the case that these DLLs simply won't work in a 64-bit environment - 
maybe they have a dependency on a Windows system component.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and 
provides the highest caliber vendor-authorized instruction at our training 
centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356359
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


dragon dictation and CF

2013-03-22 Thread Chad Gray

Has anyone tried to use Dragon dictation software to write CF code?

 

I saw this video and it got my brain going.

https://www.youtube.com/watch?feature=player_embeddedv=8SkdfdXWYaI

 

My fingers are developing some numbness and I need to be pro-active.

 

Chad



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355136
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


SOT: Graphic Artist Software for HTML CSS

2013-02-22 Thread Chad Gray

I have not kept track of all the graphic artist software adobe has come out 
with to go from mockups to HTML/CSS.

 

If I were to tell a graphic designer to design me some mockups for a web site, 
what is the best adobe software that will export out to _CLEAN_ (looks like 
hand written J) HTML/CSS that I can inject my CF code easily into?

 

Muse?

 

Thanks!

 

 

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354629
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


append with cfset

2012-12-27 Thread Chad Gray

I thought CF could appended data in a cfset tag like:

 

cfset foo = boo

cfset foo =+ moo

 

So if you output foo you would get boomoo.

 

Or am I thinking of another language?



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353702
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: append with cfset

2012-12-27 Thread Chad Gray

I do it that way and it tries to use addition (math) not append.


-Original Message-
From: DURETTE, STEVEN J [mailto:sd1...@att.com] 
Sent: Thursday, December 27, 2012 2:05 PM
To: cf-talk
Subject: RE: append with cfset


I believe that should be += and I think that started working in CF9.

-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, December 27, 2012 2:04 PM
To: cf-talk
Subject: append with cfset




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353704
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: append with cfset

2012-12-27 Thread Chad Gray

AH!  Good guess.  That worked.

Thanks!

-Original Message-
From: DURETTE, STEVEN J [mailto:sd1...@att.com] 
Sent: Thursday, December 27, 2012 2:11 PM
To: cf-talk
Subject: RE: append with cfset


Oh, good point... try = that is a guess so I don't guarantee it.

-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, December 27, 2012 2:10 PM
To: cf-talk
Subject: RE: append with cfset


I do it that way and it tries to use addition (math) not append.




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353706
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF10 and IIS 7.5

2012-12-21 Thread Chad Gray

OK I figured out my permissions stuff from yesterday.

 

Here is a new one.

 

CFM files that are in subfolders of a web site I get an IIS 404 error.

 

http://Site.dev/test.cfm -- Works great

 

http://Site.dev/subfolder/test.cfm -- i get a 404

 

http://Site.dev/subfolder/test.html -- works great

 

CF use to be so easy to setup on IIS 5/6 now it is a complete pain in the butt!

 

Any ideas?

 

Thanks!

Chad



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353595
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS 7.5

2012-12-21 Thread Chad Gray

Thank for the feedback Russ.  I am just a little frustrated.

This is a new website in IIS.  I started from scratch now that I understand the 
changes in 7.5.  This document helped me go from IIS 5/6 to 7.
http://www.iis.net/learn/get-started/planning-for-security/understanding-built-in-user-and-group-accounts-in-iis

This new website is just a plane old setup.  The SYSTEM group has full 
permissions.  I also have IIS_IUSRS and IUSR with read/write.

Any ideas on how to debug why I am getting a 404 on subfolders for CFM files 
only?  I don't see anything in the IIS log files or CF log files.

I will give the server a reboot for luck.  :)

Thanks,
Chad


-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Friday, December 21, 2012 12:10 PM
To: cf-talk
Subject: Re: CF10 and IIS 7.5


to be clear these issues are nothing to do with ColdFusion, these are problems 
on your server. ColdFusion has no control at all over server permissions.
I would suggest to just start from scratch, create a new site in IIS, put a 
test.cfm file in and make sure it works.
If it does, copy over the other site.
If you are just creating a site in the normal way with no custom permissions or 
authentication then all you need is the folder where you are storing your sites 
needs to have  IIS_IUSRS with Read, list and execute permissions.
And if you are running a vanilla CF install, then the SYSTEM account needs FULL 
access on that folder as well.
Just take a look at the c:\inetpub\wwwroot folder, these are the permissions to 
copy.



On Fri, Dec 21, 2012 at 4:59 PM, Chad Gray cg...@careyweb.com wrote:


 OK I figured out my permissions stuff from yesterday.



 Here is a new one.



 CFM files that are in subfolders of a web site I get an IIS 404 error.



 http://Site.dev/test.cfm -- Works great



 http://Site.dev/subfolder/test.cfm -- i get a 404



 http://Site.dev/subfolder/test.html -- works great



 CF use to be so easy to setup on IIS 5/6 now it is a complete pain in 
 the butt!



 Any ideas?



 Thanks!

 Chad



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353597
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS 7.5

2012-12-21 Thread Chad Gray

The folders are inheriting the same permissions as the root.

It is a virtual machine so I am thinking about wiping it out and starting over. 
 I understand more about the whole process now and I probably threw some switch 
I should not have.

Hmm I just noticed something else.  Only index.cfm files are running on the 
root of the website.

http://Site.dev/test.cfm -- i get a 404
http://Site.dev/index.cfm -- works



-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Friday, December 21, 2012 12:26 PM
To: cf-talk
Subject: Re: CF10 and IIS 7.5


check that the sub folder doesn't have different permissions. If you copied it 
from elsewhere then it may have been copied with permissions intact.
If you feel like giving me access then I could take a look for you.


On Fri, Dec 21, 2012 at 5:21 PM, Chad Gray cg...@careyweb.com wrote:


 Thank for the feedback Russ.  I am just a little frustrated.

 This is a new website in IIS.  I started from scratch now that I 
 understand the changes in 7.5.  This document helped me go from IIS 
 5/6 to 7.

 http://www.iis.net/learn/get-started/planning-for-security/understandi
 ng-built-in-user-and-group-accounts-in-iis

 This new website is just a plane old setup.  The SYSTEM group has full 
 permissions.  I also have IIS_IUSRS and IUSR with read/write.

 Any ideas on how to debug why I am getting a 404 on subfolders for CFM 
 files only?  I don't see anything in the IIS log files or CF log files.

 I will give the server a reboot for luck.  :)

 Thanks,
 Chad


 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Friday, December 21, 2012 12:10 PM
 To: cf-talk
 Subject: Re: CF10 and IIS 7.5


 to be clear these issues are nothing to do with ColdFusion, these are 
 problems on your server. ColdFusion has no control at all over server 
 permissions.
 I would suggest to just start from scratch, create a new site in IIS, 
 put a test.cfm file in and make sure it works.
 If it does, copy over the other site.
 If you are just creating a site in the normal way with no custom 
 permissions or authentication then all you need is the folder where 
 you are storing your sites needs to have  IIS_IUSRS with Read, list 
 and execute permissions.
 And if you are running a vanilla CF install, then the SYSTEM account 
 needs FULL access on that folder as well.
 Just take a look at the c:\inetpub\wwwroot folder, these are the 
 permissions to copy.



 On Fri, Dec 21, 2012 at 4:59 PM, Chad Gray cg...@careyweb.com wrote:

 
  OK I figured out my permissions stuff from yesterday.
 
 
 
  Here is a new one.
 
 
 
  CFM files that are in subfolders of a web site I get an IIS 404 error.
 
 
 
  http://Site.dev/test.cfm -- Works great
 
 
 
  http://Site.dev/subfolder/test.cfm -- i get a 404
 
 
 
  http://Site.dev/subfolder/test.html -- works great
 
 
 
  CF use to be so easy to setup on IIS 5/6 now it is a complete pain 
  in the butt!
 
 
 
  Any ideas?
 
 
 
  Thanks!
 
  Chad
 
 
 
 



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353599
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS 7.5

2012-12-21 Thread Chad Gray

I think it is the Jakarta and CFIDE virtual folders...  I forgot about those.



-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Friday, December 21, 2012 12:38 PM
To: cf-talk
Subject: RE: CF10 and IIS 7.5


The folders are inheriting the same permissions as the root.

It is a virtual machine so I am thinking about wiping it out and starting over. 
 I understand more about the whole process now and I probably threw some switch 
I should not have.

Hmm I just noticed something else.  Only index.cfm files are running on the 
root of the website.

http://Site.dev/test.cfm -- i get a 404 http://Site.dev/index.cfm -- works



-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk]
Sent: Friday, December 21, 2012 12:26 PM
To: cf-talk
Subject: Re: CF10 and IIS 7.5


check that the sub folder doesn't have different permissions. If you copied it 
from elsewhere then it may have been copied with permissions intact.
If you feel like giving me access then I could take a look for you.


On Fri, Dec 21, 2012 at 5:21 PM, Chad Gray cg...@careyweb.com wrote:


 Thank for the feedback Russ.  I am just a little frustrated.

 This is a new website in IIS.  I started from scratch now that I 
 understand the changes in 7.5.  This document helped me go from IIS 
 5/6 to 7.

 http://www.iis.net/learn/get-started/planning-for-security/understandi
 ng-built-in-user-and-group-accounts-in-iis

 This new website is just a plane old setup.  The SYSTEM group has full 
 permissions.  I also have IIS_IUSRS and IUSR with read/write.

 Any ideas on how to debug why I am getting a 404 on subfolders for CFM 
 files only?  I don't see anything in the IIS log files or CF log files.

 I will give the server a reboot for luck.  :)

 Thanks,
 Chad


 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Friday, December 21, 2012 12:10 PM
 To: cf-talk
 Subject: Re: CF10 and IIS 7.5


 to be clear these issues are nothing to do with ColdFusion, these are 
 problems on your server. ColdFusion has no control at all over server 
 permissions.
 I would suggest to just start from scratch, create a new site in IIS, 
 put a test.cfm file in and make sure it works.
 If it does, copy over the other site.
 If you are just creating a site in the normal way with no custom 
 permissions or authentication then all you need is the folder where 
 you are storing your sites needs to have  IIS_IUSRS with Read, list 
 and execute permissions.
 And if you are running a vanilla CF install, then the SYSTEM account 
 needs FULL access on that folder as well.
 Just take a look at the c:\inetpub\wwwroot folder, these are the 
 permissions to copy.



 On Fri, Dec 21, 2012 at 4:59 PM, Chad Gray cg...@careyweb.com wrote:

 
  OK I figured out my permissions stuff from yesterday.
 
 
 
  Here is a new one.
 
 
 
  CFM files that are in subfolders of a web site I get an IIS 404 error.
 
 
 
  http://Site.dev/test.cfm -- Works great
 
 
 
  http://Site.dev/subfolder/test.cfm -- i get a 404
 
 
 
  http://Site.dev/subfolder/test.html -- works great
 
 
 
  CF use to be so easy to setup on IIS 5/6 now it is a complete pain 
  in the butt!
 
 
 
  Any ideas?
 
 
 
  Thanks!
 
  Chad
 
 
 
 



 





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353600
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS 7.5

2012-12-21 Thread Chad Gray

Ya adding the Jakarta virtual folder fixed it.

Is the CF web server configuration tool supposed to make these virtual folders 
in IIS?  Because mine does not.  It makes these folders when I run it, but does 
not make virtual folders in IIS.

C:\ColdFusion10\config\wsconfig\1
C:\ColdFusion10\config\wsconfig\2
C:\ColdFusion10\config\wsconfig\3


-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Friday, December 21, 2012 12:41 PM
To: cf-talk
Subject: RE: CF10 and IIS 7.5


I think it is the Jakarta and CFIDE virtual folders...  I forgot about those.





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353601
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF10 and IIS

2012-12-20 Thread Chad Gray

Does CF10 needs the IIS 6 Metabase?



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353568
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS

2012-12-20 Thread Chad Gray

OK new question.  IIS seems to be serving out CFM files fine.

I made a second website in IIS and HTML files returns this error:
401 - Unauthorized: Access is denied due to invalid credentials.

CFMs work fine, but HTML files do not?

Ideas?

Anonymous Authentication is enabled.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353579
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF 9 Scheduled Task Not Sending Emails

2012-12-20 Thread Chad Gray

Is there an application.cfm for cfc that is preventing the file from running?

Like some websites I setup a login/password code in the application.cfm page.  
No page will run unless that code is happy that someone is logged in. 



-Original Message-
From: Torrent Girl [mailto:moniqueb...@gmail.com] 
Sent: Thursday, December 20, 2012 3:33 PM
To: cf-talk
Subject: Re: CF 9 Scheduled Task Not Sending Emails


If you browse the task manually does an error appear on the screen, or 
anything in the logs to indicate this. Look in the undil folder and see 
if any are there and match the dates with the logs and see what turns up.

But it might be just as simple as running the page manually and seeing 
what error you are getting first.

--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:  http://plus.google.com/113032480415921517411







When I browse it manually I don't receive any errors and the email is sent.

I did check the error logs. Will check the undil folder.

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353581
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS

2012-12-20 Thread Chad Gray

OK this is really strange.  I had to add Windows Authentication to get the 
HTML files to be served.

Now my CFM files are served (never asked for a login/password)
The HTML files you have to enter a login and password, but they are served.

How are CFM pages skipping the windows authentication?

Chad


-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, December 20, 2012 4:27 PM
To: cf-talk
Subject: RE: CF10 and IIS


OK new question.  IIS seems to be serving out CFM files fine.

I made a second website in IIS and HTML files returns this error:
401 - Unauthorized: Access is denied due to invalid credentials.

CFMs work fine, but HTML files do not?

Ideas?

Anonymous Authentication is enabled.




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353585
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cftransaction

2012-11-01 Thread Chad Gray

Say I have code that is accesses multiple datasources.  CFTransaction cannot be 
used across multiple datasources.

 

My question is can I make two CFTransaction blocks and on the first one set a 
CFTransaction SavePoint.

 

Then if the second CFTransation errors can I roll back the first CFTransaction 
save point?

 

 

Dummmy code:

 

Cftransaction start

Cftransaction set a save point1

Do some queries on datasource 1

Cftransaction end

 

 

Cftransaction start

Cftry

Cftransaction set save point2

Do some queries on datasource 2

Cfcatch

Cftransaction rollback save point 1

Cftransaction rollback save point 2

Cftransaction end



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353039
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFFTP Date

2012-09-20 Thread Chad Gray

I have never had a problem with the LastModified date that cfftp action = 
listDir returns until today.

CuteFTP, Command Line FTP and several other FTP clients return today date for 
these images 9/20/2012.

CFFTP returns 9/20/2011.  It is a year off!?!

Check the snapshot.  The top is CuteFTP and the bottom if my CF page that used 
CFFTP to get the directory listing.

http://chadgray.info/misc/untitled-1.jpg

The FTP server is Linux.

Any ideas?  I have never had a problem in the past.

Chad




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352681
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Issue with CF Barcode39

2012-09-20 Thread Chad Gray

This is a guess, because I have no experience with the custom tag to make the 
barcode image, but you may want to save the content out at a variable first.  
Then put it in the cfdocument tag.  This has always worked best for me.


cfsavecontent variable=voucher

table width=900 border=0 cellspacing=1 cellpadding=1
  tr
td width=420 align=left valign=bottomimg src=Images/logo.png 
//td
td width=473 align=left valign=middle class=TEXTLEFT4840 PERL 
EAST CIRCLE, 210 W. span class=ORANGE| /spanBOULDER span 
class=ORANGE|/span CO span class=ORANGE|/span 80301/td
  etc

/cfsavecontent


cfdocument format=PDF filename=Voucher.pdf overwrite=Yes localUrl=Yes
#variables. Voucher#
/cfdocument


-Original Message-
From: Bruce Sorge [mailto:sor...@gmail.com] 
Sent: Thursday, September 20, 2012 1:03 PM
To: cf-talk
Subject: Issue with CF Barcode39


Has anyone here used CFBARCODE? I am having a small issue with it.

Basically, I am creating a PDF using CFDOCUMENT and inside the PDF I am using 
CF_Barcdode39 to insert a barcode into the document that will be emailed to a 
customer. When I put the code into CFMAIL all works fine, images including 
barcode are there. But because someone can get that emal and put it into a word 
doc and change the barcode, they want to use a PDF instead. With the PDF, the 
logo and signature images are fine. But the barcode will not insert into the 
PDF and I really cannot figure out why. I have tried cfinclude as well as just 
putting cf_barcode in the code as I did below. Since the barcode is basically 
an image that is being created based on the actual barcode in the database, I 
put it in an IMG tag but still get the nice little red x on the document. Below 
is the code I am using. 
 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352682
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFFTP Date

2012-09-20 Thread Chad Gray

Our CF server time is fine
{ts '2012-09-20 14:48:30'}


-Original Message-
From: Alan Rother [mailto:alan.rot...@gmail.com] 
Sent: Thursday, September 20, 2012 2:41 PM
To: cf-talk
Subject: Re: CFFTP Date


Have you checked the time and date on your CF server to make sure it's correct 
first?

Drop a Now() in your code as a comparison



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352684
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF10 on Win7

2012-09-05 Thread Chad Gray

OK I got CF10 64bit running in IIS on Windows 7 on the default website.  CF 
admin is working great etc.

 

I created a new website in IIS and it runs the index.cfm file just fine if I 
don't type it into the URL.

 

http://foo/

 

If I type index.cfm into the URL I get a 404.

 

http://foo/index.cfm

 

I am using a host name of foo in IIS and I have an entry in the 
C:\Windows\System32\drivers\etc\hosts file to point it to 127.0.0.1.

127.0.0.1  foo

 

This has always worked in the past.

 

It works fine on the default website in IIS

http://localhost/index.cfm

 

Anyone have any ideas why I get a 404 when I type the file name in the URL?

 

Thanks,

Chad



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352411
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 on Win7

2012-09-05 Thread Chad Gray

Nope...  nothing fancy here.  Just a index.cfm with Hello World no 
application.cfm or application.cfc.



-Original Message-
From: Brian Thornton [mailto:br...@cfdeveloper.com] 
Sent: Wednesday, September 05, 2012 3:42 PM
To: cf-talk
Subject: Re: CF10 on Win7


Do you have a url rewriter installed by chance?
On Sep 5, 2012 3:40 PM, Chad Gray cg...@careyweb.com wrote:


 OK I got CF10 64bit running in IIS on Windows 7 on the default website.
  CF admin is working great etc.



 I created a new website in IIS and it runs the index.cfm file just 
 fine if I don't type it into the URL.



 http://foo/



 If I type index.cfm into the URL I get a 404.



 http://foo/index.cfm



 I am using a host name of foo in IIS and I have an entry in the 
 C:\Windows\System32\drivers\etc\hosts file to point it to 127.0.0.1.

 127.0.0.1  foo



 This has always worked in the past.



 It works fine on the default website in IIS

 http://localhost/index.cfm



 Anyone have any ideas why I get a 404 when I type the file name in the URL?



 Thanks,

 Chad



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352413
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 on Win7

2012-09-05 Thread Chad Gray

This is kind of interesting.  If I type a real missing html file like 
http://foo/missingFile.html

I get this in the 404 response:
Requested URL   http://foo:80/missingFile.html
Physical Path   E:\webSite1\missingFile.html


If I type the same URL only with CFM http://foo/missingFile.cfm 
I get this:
Requested URL   http://foo:80/jakarta/isapi_redirect.dll
Physical Path   E:\webSite1\jakarta\isapi_redirect.dll

Isapi_redirect.dll?  what does that have to do with the Requested URL?

Hmm now I wonder if I need that Jakarta folder!  I bet that is what is missing!
Chad

-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Wednesday, September 05, 2012 3:49 PM
To: cf-talk
Subject: RE: CF10 on Win7


Nope...  nothing fancy here.  Just a index.cfm with Hello World no 
application.cfm or application.cfc.



-Original Message-
From: Brian Thornton [mailto:br...@cfdeveloper.com] 
Sent: Wednesday, September 05, 2012 3:42 PM
To: cf-talk
Subject: Re: CF10 on Win7


Do you have a url rewriter installed by chance?
On Sep 5, 2012 3:40 PM, Chad Gray cg...@careyweb.com wrote:


 OK I got CF10 64bit running in IIS on Windows 7 on the default website.
  CF admin is working great etc.



 I created a new website in IIS and it runs the index.cfm file just 
 fine if I don't type it into the URL.



 http://foo/



 If I type index.cfm into the URL I get a 404.



 http://foo/index.cfm



 I am using a host name of foo in IIS and I have an entry in the 
 C:\Windows\System32\drivers\etc\hosts file to point it to 127.0.0.1.

 127.0.0.1  foo



 This has always worked in the past.



 It works fine on the default website in IIS

 http://localhost/index.cfm



 Anyone have any ideas why I get a 404 when I type the file name in the URL?



 Thanks,

 Chad



 





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352414
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 on Win7

2012-09-05 Thread Chad Gray

Adding the virtual directory called Jakarta and pointing it to this folder got 
the web site working right.
C:\ColdFusion10\config\wsconfig\1

I guess I just have to remember to create this folder for each new web site we 
create in IIS?  Anyway to automate the creation of this virtual folder?

Thanks,
Chad



-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Wednesday, September 05, 2012 4:33 PM
To: cf-talk
Subject: RE: CF10 on Win7


This is kind of interesting.  If I type a real missing html file like 
http://foo/missingFile.html

I get this in the 404 response:
Requested URL   http://foo:80/missingFile.html
Physical Path   E:\webSite1\missingFile.html


If I type the same URL only with CFM http://foo/missingFile.cfm I get this:
Requested URL   http://foo:80/jakarta/isapi_redirect.dll
Physical Path   E:\webSite1\jakarta\isapi_redirect.dll

Isapi_redirect.dll?  what does that have to do with the Requested URL?

Hmm now I wonder if I need that Jakarta folder!  I bet that is what is missing!
Chad

-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com]
Sent: Wednesday, September 05, 2012 3:49 PM
To: cf-talk
Subject: RE: CF10 on Win7


Nope...  nothing fancy here.  Just a index.cfm with Hello World no 
application.cfm or application.cfc.



-Original Message-
From: Brian Thornton [mailto:br...@cfdeveloper.com] 
Sent: Wednesday, September 05, 2012 3:42 PM
To: cf-talk
Subject: Re: CF10 on Win7


Do you have a url rewriter installed by chance?
On Sep 5, 2012 3:40 PM, Chad Gray cg...@careyweb.com wrote:


 OK I got CF10 64bit running in IIS on Windows 7 on the default website.
  CF admin is working great etc.



 I created a new website in IIS and it runs the index.cfm file just 
 fine if I don't type it into the URL.



 http://foo/



 If I type index.cfm into the URL I get a 404.



 http://foo/index.cfm



 I am using a host name of foo in IIS and I have an entry in the 
 C:\Windows\System32\drivers\etc\hosts file to point it to 127.0.0.1.

 127.0.0.1  foo



 This has always worked in the past.



 It works fine on the default website in IIS

 http://localhost/index.cfm



 Anyone have any ideas why I get a 404 when I type the file name in the URL?



 Thanks,

 Chad



 







~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352416
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 on Win7

2012-09-05 Thread Chad Gray

Thanks for the response Carl.  

I selected the option IIS ALL web sites.  Why would I need to re-run the 
connector if I choose this option?

Maybe what they meant is ALL current websites in IIS, not ALL future websites 
created in IIS?

Chad

-Original Message-
From: Carl Von Stetten [mailto:vonner.li...@vonner.net] 
Sent: Wednesday, September 05, 2012 4:50 PM
To: cf-talk
Subject: Re: CF10 on Win7


Chad,

Every IIS host that serves ColdFusion content needs the jakarta virtual 
directory.  It sounds like you didn't rerun the web connector tool after you 
created your foo site.  Run the web connector tool and connect ColdFusion to 
your foo site.  This will add the jakarta virtual directory, and configure 
the IIS request handler.

The reason http://foo/ worked is that IIS is falling back to the global CF 
wildcard handler to route the request through CF.

HTH,
-Carl
On 9/5/2012 1:33 PM, Chad Gray wrote:
 This is kind of interesting.  If I type a real missing html file like 
 http://foo/missingFile.html

 I get this in the 404 response:
 Requested URL http://foo:80/missingFile.html
 Physical Path E:\webSite1\missingFile.html


 If I type the same URL only with CFM http://foo/missingFile.cfm I get 
 this:
 Requested URL http://foo:80/jakarta/isapi_redirect.dll
 Physical Path E:\webSite1\jakarta\isapi_redirect.dll

 Isapi_redirect.dll?  what does that have to do with the Requested URL?

 Hmm now I wonder if I need that Jakarta folder!  I bet that is what is 
 missing!
 Chad

 -Original Message-
 From: Chad Gray [mailto:cg...@careyweb.com]
 Sent: Wednesday, September 05, 2012 3:49 PM
 To: cf-talk
 Subject: RE: CF10 on Win7


 Nope...  nothing fancy here.  Just a index.cfm with Hello World no 
 application.cfm or application.cfc.



 -Original Message-
 From: Brian Thornton [mailto:br...@cfdeveloper.com]
 Sent: Wednesday, September 05, 2012 3:42 PM
 To: cf-talk
 Subject: Re: CF10 on Win7


 Do you have a url rewriter installed by chance?
 On Sep 5, 2012 3:40 PM, Chad Gray cg...@careyweb.com wrote:

 OK I got CF10 64bit running in IIS on Windows 7 on the default website.
   CF admin is working great etc.



 I created a new website in IIS and it runs the index.cfm file just 
 fine if I don't type it into the URL.



 http://foo/



 If I type index.cfm into the URL I get a 404.



 http://foo/index.cfm



 I am using a host name of foo in IIS and I have an entry in the 
 C:\Windows\System32\drivers\etc\hosts file to point it to 127.0.0.1.

 127.0.0.1  foo



 This has always worked in the past.



 It works fine on the default website in IIS

 http://localhost/index.cfm



 Anyone have any ideas why I get a 404 when I type the file name in the URL?



 Thanks,

 Chad








 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:352418
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF10 and IIS

2012-06-15 Thread Chad Gray

I have no kept up on the latest news with CF10 so please fill me in.

CF10 by default does not appear to have an option of installing on IIS when I 
run the installer... ?

Did they drop the IIS support all together?

My options are Self Contained Server and EAR or WAR file.

I will start reading the documentation.

Thanks!
Chad


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351576
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS

2012-06-15 Thread Chad Gray

OH... you get to the IIS stuff later in the installer... never mind.  It has 
been a while since I have done this.

 -Original Message-
 From: Chad Gray [mailto:cg...@careyweb.com]
 Sent: Friday, June 15, 2012 10:01 AM
 To: cf-talk
 Subject: CF10 and IIS
 
 
 I have no kept up on the latest news with CF10 so please fill me in.
 
 CF10 by default does not appear to have an option of installing on IIS when I
 run the installer... ?
 
 Did they drop the IIS support all together?
 
 My options are Self Contained Server and EAR or WAR file.
 
 I will start reading the documentation.
 
 Thanks!
 Chad
 
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:351576
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351577
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS

2012-06-15 Thread Chad Gray

Thanks Russ, I remember three options at the beginning I think that is what 
threw me off.  The last install I did was with CF8 so maybe it was there.

Now I just have to jump through some hoops with turning on ASP.NET and ISAPI 
extensions in Windows Features

So far so good.

Chad

 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Friday, June 15, 2012 10:10 AM
 To: cf-talk
 Subject: Re: CF10 and IIS
 
 
 thats because you haven't got the web server page yet.
 you first need to choose what type of installation you want, this is exaqctly
 the same as previous versions.
 
 On Fri, Jun 15, 2012 at 3:01 PM, Chad Gray cg...@careyweb.com wrote:
 
 
  I have no kept up on the latest news with CF10 so please fill me in.
 
  CF10 by default does not appear to have an option of installing on IIS
  when I run the installer... ?
 
  Did they drop the IIS support all together?
 
  My options are Self Contained Server and EAR or WAR file.
 
  I will start reading the documentation.
 
  Thanks!
  Chad
 
 
 
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:351578
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351580
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS

2012-06-15 Thread Chad Gray

Is there a reason you need the new Jakarta folder?  I know I need CFIDE for 
certain CF tags to work right.

What is in the Jakarta folder?

Thanks!
Chad

 -Original Message-
 From: Casey Dougall - Uber Website Solutions
 [mailto:ca...@uberwebsitesolutions.com]
 Sent: Friday, June 15, 2012 10:25 AM
 To: cf-talk
 Subject: Re: CF10 and IIS
 
 
 On Fri, Jun 15, 2012 at 10:09 AM, Russ Michaels r...@michaels.me.uk
 wrote:
 
  thats because you haven't got the web server page yet.
  you first need to choose what type of installation you want, this is
  exaqctly the same as previous versions.
 
 
 Not exactly... It installs the same and works on all current sites out of the
 box, but I keep needing to add that new /jakarta virtual directory every time
 I add a new site. But outside of that, yeah works like previous versions.
 
 Might be a IIS micro or automation that can be done there.
 
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:351579
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351582
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS

2012-06-15 Thread Chad Gray

The one made in the default web site points here:
C:\ColdFusion10\config\wsconfig\1

I noticed if I don't have that virtual folder the web site cannot run CFM 
pages.  I had to add it to execute a CFM page.

Chad


 -Original Message-
 From: Eric Roberts [mailto:ow...@threeravensconsulting.com]
 Sent: Friday, June 15, 2012 12:28 PM
 To: cf-talk
 Subject: RE: CF10 and IIS
 
 
 Where is Jakarta directory?   I have been looking, but can't seem to find it
 :-(
 
 
  Eric Roberts
 Owner/Developer
 Three Ravens Consulting
 ow...@threeravensconsulting.com
 http://www.threeravensconsulting.com
 tel: 630-881-1515
 
 
 
 
 
 -Original Message-
 From: Casey Dougall - Uber Website Solutions
 [mailto:ca...@uberwebsitesolutions.com]
 Sent: Friday, June 15, 2012 9:25 AM
 To: cf-talk
 Subject: Re: CF10 and IIS
 
 
 On Fri, Jun 15, 2012 at 10:09 AM, Russ Michaels r...@michaels.me.uk
 wrote:
 
  thats because you haven't got the web server page yet.
  you first need to choose what type of installation you want, this is
  exaqctly the same as previous versions.
 
 
 Not exactly... It installs the same and works on all current sites out of
 the box, but I keep needing to add that new /jakarta virtual directory every
 time I add a new site. But outside of that, yeah works like previous
 versions.
 
 Might be a IIS micro or automation that can be done there.
 
 
 
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:351584
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351585
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF10 and IIS

2012-06-15 Thread Chad Gray

It was strange. Without the Jakarta folder, if I hit http://test/ it would run 
the index.cfm file that was in there

If I hit http://test/index.cfm it would say 404 file not found.

Chad


 -Original Message-
 From: Eric Roberts [mailto:ow...@threeravensconsulting.com]
 Sent: Friday, June 15, 2012 12:45 PM
 To: cf-talk
 Subject: RE: CF10 and IIS
 
 
 That was the issue I was having...yay.  I have been beating my head against
 the desk for about a week on this one.
 
 
 Your ColdFusion Development Solution
 
 
 Eric Roberts
 Owner/Developer
 Three Ravens Consulting
 ow...@threeravensconsulting.com
 http://www.threeravensconsulting.com
 tel:
 630-881-1515
 
 
 
 
 
 Want to always have my latest info?
 Want a signature like this?
 
 
 
 
 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Friday, June 15, 2012 11:47 AM
 To: cf-talk
 Subject: Re: CF10 and IIS
 
 
 this vdir is required by tomcat so that IIS can pass the cfm requests.
 Railo ha sthe same Requirement.
 I thought Adobe had found a way round this like they did with JRUN.
 
 
 On Fri, Jun 15, 2012 at 5:43 PM, Chad Gray cg...@careyweb.com wrote:
 
 
  The one made in the default web site points here:
  C:\ColdFusion10\config\wsconfig\1
 
  I noticed if I don't have that virtual folder the web site cannot run
  CFM pages.  I had to add it to execute a CFM page.
 
  Chad
 
 
   -Original Message-
   From: Eric Roberts [mailto:ow...@threeravensconsulting.com]
   Sent: Friday, June 15, 2012 12:28 PM
   To: cf-talk
   Subject: RE: CF10 and IIS
  
  
   Where is Jakarta directory?   I have been looking, but can't seem to
  find it
   :-(
  
  
Eric Roberts
   Owner/Developer
   Three Ravens Consulting
   ow...@threeravensconsulting.com
   http://www.threeravensconsulting.com
   tel: 630-881-1515
  
  
  
  
  
   -Original Message-
   From: Casey Dougall - Uber Website Solutions
   [mailto:ca...@uberwebsitesolutions.com]
   Sent: Friday, June 15, 2012 9:25 AM
   To: cf-talk
   Subject: Re: CF10 and IIS
  
  
   On Fri, Jun 15, 2012 at 10:09 AM, Russ Michaels
   r...@michaels.me.uk
   wrote:
  
thats because you haven't got the web server page yet.
you first need to choose what type of installation you want, this
is exaqctly the same as previous versions.
   
  
   Not exactly... It installs the same and works on all current sites
   out of the box, but I keep needing to add that new /jakarta virtual
   directory
  every
   time I add a new site. But outside of that, yeah works like previous
   versions.
  
   Might be a IIS micro or automation that can be done there.
  
  
  
  
  
 ~~~
   ~~|
   Order the Adobe Coldfusion Anthology now!
   http://www.amazon.com/Adobe-Coldfusion-
   Anthology/dp/1430272155/?tag=houseoffusion
   Archive: http://www.houseoffusion.com/groups/cf-
   talk/message.cfm/messageid:351584
   Subscription:
   http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
   Unsubscribe: http://www.houseoffusion.com/groups/cf-
   talk/unsubscribe.cfm
 
 
 
 
 
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:351587
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351588
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF Header to Serve a File

2012-06-14 Thread Chad Gray

Is your variable a typo?  #Get_file# vs. #GetFile#  in the cfcontent tag?  You 
typed it up two different ways in the post.


 -Original Message-
 From: Robert Harrison [mailto:rob...@austin-williams.com]
 Sent: Thursday, June 14, 2012 11:21 AM
 To: cf-talk
 Subject: CF Header to Serve a File
 
 
 I have the following code to serve a file for download:
 
   cfheader name=Content-Disposition value=attachment;
 filename=#attach_file#
   cfheader name=Content-Length value=#file_size#
   cfcontent type=#mime_type# file=#getfile#
 
 All the variables are correct.
 
   #attach_file# = the name of the file
   #file_size# = the size of the file in bytes
   #mime_type# = the correct mime type
   #get_file# = the full physical path to the file and the file name
 
 No matter what I do it does not seem to know where the file is (get_file) is
 the full drive path and file name. It always tries to download from the web
 root.
 
 What am I missing here?
 
 Thanks,
 
 
 Robert Harrison
 Director of Interactive Services
 
 Austin  Williams
 Advertising I Branding I Digital I Direct
 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X
 119   F 631.434.7022 http://www.austin-williams.com
 
 Blog:  http://www.austin-williams.com/blog
 Twitter:  http://www.twitter.com/austin_wi
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:351569
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubs

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351570
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Label Printer

2011-08-03 Thread Chad Gray

I have an inventory website and it would be nice to be able to print barcodes 
and product data to a label printer.

Has anyone tried sending webpage content to a label printer?  Or maybe there 
are some printers that can take XML content??

Looks like Zebra printers have their own printer language, but I dont see any 
way of using it with ColdFusion or any web browser content.
http://www.zebra.com/id/zebra/na/en/index/products/software.html

They also mention using XML with their printers, but I have not read up on how 
it works and the way it talks the printers that support this may be out of our 
price range.
http://www.zebra.com/id/zebra/na/en/index/resource_library/getting_started/introduction_to_bar_code_printing/xml_enabled_printing.html

If anyone has ideas or has done this let me know.
Chad


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346481
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: code sharing in IIS

2011-07-06 Thread Chad Gray

Thanks for everyone's feedback.

I have a question now that I am experimenting with it.

I have two web sites that have these files in them:

C:\wwwroot\site1\Application.cfc
C:\wwwroot\site1\foo\index.cfm

C:\wwwroot\site2\Application.cfc
C:\wwwroot\site2\foo --(virtual directory to C:\wwwroot\site1\foo)

When I load
http://site2/foo/index.cfm

The application.cfc fromSite1 is being used, not the application.cfc from 
site2...

Any way to get the site2 application.cfc to be used instead of site1?

Thanks,
Chad





 -Original Message-
 From: eric.da...@vmmc.org eric.da...@vmmc.org
 [mailto:eric.da...@vmmc.org]
 Sent: Wednesday, July 06, 2011 12:22 PM
 To: cf-talk
 Subject: Re: code sharing in IIS
 
 
 We do this all the time, and its also how we create multiple IIS sites bound
 to their own CF instances to create multiple instances of a website that we
 then load balance.  I've found this the best way to utilize beefy hardware
 with ColdFusion
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:346108
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346116
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


code sharing in IIS

2011-07-05 Thread Chad Gray

I have not experimented yet, but can you use a virtual directory in IIS to 
share code to other website on the server?

Like I have a folder of code for user login on one website.  Rather than 
copying the code and maintaining two sets of code can I just make a IIS virtual 
directory on the second website?

Thanks!
Chad


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346068
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Automated File Deployment/Replication

2011-07-05 Thread Chad Gray

Repliweb.com has some great software.  Very reliable and professional.  Can be 
pricey, but if you want great software this is one to look at.

We dont use it for web site code, but for large image repository's we have to 
keep in sync at multiple locations.

HTH


 -Original Message-
 From: Brian Polackoff [mailto:bpolack...@gmx.com]
 Sent: Tuesday, July 05, 2011 12:34 PM
 To: cf-talk
 Subject: Automated File Deployment/Replication
 
 
 Hey everyone. I have been tasked recently with coming up with an
 automated deployment/file replication system for our newly built
 infrastructure. We have a hardware load balancer that spreads the traffic
 over 5 real servers.
 We are looking for a way to place the production web files and assets on a
 single server and let that server then replicate the files over to the 
 other 4
 servers instantly. Can anyone recommend software to accomplish this or
 just some best practices for this type of scenario?
 
 Thanks!
 Brian
 
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:346075
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346079
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFPDFForm

2011-05-11 Thread Chad Gray

Is there any way to make sure when you use CFPDFForm with a populate action 
that the PDF opens in the browser?

I have some users the PDF opens in Acrobat pro external to the web browser.

Thanks,
Chad


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344455
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFPDFForm Submit

2011-05-11 Thread Chad Gray

Another question about CFPDFForm.  When the PDF does open in Acrobat pro and 
they click submit on the form.  The cookie for the users session appears to be 
killed.

So the action page that PDF Form is submitting to will not have that users 
session and the form fields never arrive at the action page .

Seems populating PDF forms and using them to submit data to an action page is 
not very reliable. 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344457
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFPDFForm Submit

2011-05-11 Thread Chad Gray

Can I edit the PDF Form's submit button URL with CFPDFForm to add the session 
data on the URL?

I will read the documentation on CFPDFForm and see if I can change the URL of 
the Form.

Thanks,
Chad


 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Wednesday, May 11, 2011 11:59 AM
 To: cf-talk
 Subject: Re: CFPDFForm Submit
 
 
 I suspect this only works if the PDF has been opened in the browser, most
 external programs do not have the ability to store cookies.
 Why not just append the session information tot he action URL instead ?
 
 
 On Wed, May 11, 2011 at 4:51 PM, Chad Gray cg...@careyweb.com wrote:
 
 
  Another question about CFPDFForm.  When the PDF does open in Acrobat
  pro and they click submit on the form.  The cookie for the users
  session appears to be killed.
 
  So the action page that PDF Form is submitting to will not have that
  users session and the form fields never arrive at the action page .
 
  Seems populating PDF forms and using them to submit data to an action
  page is not very reliable.
 
 
 
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:344458
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344459
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


UTF-8 Languages

2010-12-09 Thread Chad Gray

Hello,
 
If I paste some foreign characters into an HTML file on my IIS server the 
characters display just fine.
 
If I paste the same foreign characters into a CFM page they display wrong.
 
You can grab some text from this Lorem Ipsum generator if you want to try 
yourself.
http://uk.lipsum.com/
 
Both the HTML and CFM pages has UTF-8 content type.
 
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
titleUntitled Document/title
/head
 
Is there something in CF Admin I need to switch on for the foreign characters 
to display correctly?
 
This is CF8 on IIS.  It is just straight up text on the page.  I am not pulling 
it from a database or anything like that.
 
Thanks!
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339942
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: UTF-8 Languages

2010-12-09 Thread Chad Gray

A long time ago I did a foreign language app in CF5 or CF6 and I never needed 
cfprocessingdirective.

Thanks Leigh!  That fixed it.





-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com] 
Sent: Thursday, December 09, 2010 3:01 PM
To: cf-talk
Subject: Re: UTF-8 Languages


 Both the HTML and CFM pages has UTF-8 content type.

Are you using cfprocessingdirective pageEncoding=utf-8 along with the 
proper font?



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339945
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


(ot) jQuery get() and 401 Unauthorized

2010-11-03 Thread Chad Gray

Has anyone seen this?  I have some jQuery that is runninga get() to a cold 
fusion page.
 
The website is locked down with an NTFS user because it isunder development and 
we don't want the public to get in yet.
 
On most calls to this get() in Firebug I see three 401Unauthorized errors.  
The get() works and I get the data from thecoldfusion page.  Sometimes I get a 
200 OK, it is not very consistent.
 
This does not happen on my development site, but it does nothave an NTFS user 
locking down the site.  Anonymous users are allowed in.
 
These three errors are slowing down the page and making mycode look bad to the 
customer.
 
Thanks,
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338794
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFFTP lastModified bug

2010-10-21 Thread Chad Gray

I noticed some dates that CFFTP returns when doing a ListDirwere wrong.
 
I found this blog post and they report it as a bug.
http://bakuenryu.blogspot.com/2008/09/obscure-cfftp-lastmodified-bug.html
 
Anyone know if CF8 has a fix for this bug?
 
Thanks,
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338425
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


USPS rate service

2010-10-21 Thread Chad Gray

Anyone else not able to connect to 
http://production.shippingapis.com/ShippingAPI.dll?
 
I have code that is returning Connection Failure.
 
First time I have ever had problems connecting to USPS forrates.
 
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338439
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


(ot) jQuery

2010-10-21 Thread Chad Gray

I am trying to write some jQuery that will go get a resizedimage from a CF page 
then show that data in a div (#beautyImage) slowly.  Iwant it to fade in.
 
This works, but it does not fade in.  I just quicklyreplaces the image.
 
script
function swapImages(imageName) {
$.get('/shop/act_getBeautyImage.cfm?beautyImage='+ imageName + 
'width=372height=465',{},
  function(data,status) {
 
$(#beautyImage).show('slow').html(data);
  });
}
/script
 
Any suggestions?
 
Thanks
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338450
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: (ot) jQuery

2010-10-21 Thread Chad Gray

Ya I tried fadeIn() also, but the image just snaps into place.  It does not 
fade in slowly.

-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Thursday, October 21, 2010 2:27 PM
To: cf-talk
Subject: Re: (ot) jQuery


http://api.jquery.com/fadeIn/
http://api.jquery.com/fadeIn/

On Thu, Oct 21, 2010 at 2:23 PM, Chad Gray cg...@careyweb.com wrote:


 I am trying to write some jQuery that will go get a resizedimage from a CF
 page then show that data in a div (#beautyImage) slowly.  Iwant it to fade
 in.

 This works, but it does not fade in.  I just quicklyreplaces the image.

 script
 function swapImages(imageName) {
$.get('/shop/act_getBeautyImage.cfm?beautyImage='+ imageName
 + 'width=372height=465',{},
  function(data,status) {

 $(#beautyImage).show('slow').html(data);
  });
 }
 /script

 Any suggestions?

 Thanks
 Chad

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338452
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: (ot) jQuery

2010-10-21 Thread Chad Gray

I tried that also.  Still no luck.



-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Thursday, October 21, 2010 2:31 PM
To: cf-talk
Subject: Re: (ot) jQuery


Perhaps try changing your chain.

$(#beautyImage).html(data).show('slow');


On Thu, Oct 21, 2010 at 2:29 PM, Chad Gray cg...@careyweb.com wrote:


 Ya I tried fadeIn() also, but the image just snaps into place.  It does not
 fade in slowly.

 -Original Message-
 From: Michael Grant [mailto:mgr...@modus.bz]
 Sent: Thursday, October 21, 2010 2:27 PM
 To: cf-talk
 Subject: Re: (ot) jQuery


 http://api.jquery.com/fadeIn/
 http://api.jquery.com/fadeIn/

 On Thu, Oct 21, 2010 at 2:23 PM, Chad Gray cg...@careyweb.com wrote:

 
  I am trying to write some jQuery that will go get a resizedimage from a
 CF
  page then show that data in a div (#beautyImage) slowly.  Iwant it to
 fade
  in.
 
  This works, but it does not fade in.  I just quicklyreplaces the image.
 
  script
  function swapImages(imageName) {
 $.get('/shop/act_getBeautyImage.cfm?beautyImage='+
 imageName
  + 'width=372height=465',{},
   function(data,status) {
 
  $(#beautyImage).show('slow').html(data);
   });
  }
  /script
 
  Any suggestions?
 
  Thanks
  Chad
 
 



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338454
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: (ot) jQuery

2010-10-21 Thread Chad Gray

Thanks for the suggestions, but still now luck.  Maybe the get() is not 
compatible with fadeIn()?



-Original Message-
From: Tony Bentley [mailto:cascadefreehee...@gmail.com] 
Sent: Thursday, October 21, 2010 2:39 PM
To: cf-talk
Subject: Re: (ot) jQuery


function swapImages(imageName) {
$.get('/shop/act_getBeautyImage.cfm?beautyImage='+ imageName +
'width=372height=465',{},function(data) {
$(#beautyImage).html(data).fadeIn('slow');
});
}




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338456
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: (ot) jQuery

2010-10-21 Thread Chad Gray

Basically the action page is using a function I built to resize the image then 
display the image in a img tag.


cfsetting showdebugoutput=no
cfif len(URL.beautyImage)
cfoutput
cfset imageName = 
application.page.imageResizer(imagePath=/EcomProductPageImages/#URL.beautyImage#,width=val(#URL.Width#),height=#val(URL.Height)#)
img src=/output/#variables.imageName# style=margin-left:5px;
/cfoutput
/cfif




-Original Message-
From: Tony Bentley [mailto:cascadefreehee...@gmail.com] 
Sent: Thursday, October 21, 2010 2:44 PM
To: cf-talk
Subject: Re: (ot) jQuery


Show the code on your request page. It's probably because you need an event
to fire from the request page after the image is finished loading.




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338459
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: (ot) jQuery

2010-10-21 Thread Chad Gray

If I do this it snaps into place also.  No fade in.

function swapImages(imageName) {
$(#beautyImage).html('img src=/output/9305B06559F4D04C37ED27103EBFB959.jpg 
style=margin-left:5px;').fadeIn('slow');
}



-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Thursday, October 21, 2010 2:43 PM
To: cf-talk
Subject: Re: (ot) jQuery


I don't see why it wouldn't be. Does fadeIn() work if you do it on it's own?

On Thu, Oct 21, 2010 at 2:40 PM, Chad Gray cg...@careyweb.com wrote:


 Thanks for the suggestions, but still now luck.  Maybe the get() is not
 compatible with fadeIn()?



 -Original Message-
 From: Tony Bentley [mailto:cascadefreehee...@gmail.com]
 Sent: Thursday, October 21, 2010 2:39 PM
 To: cf-talk
 Subject: Re: (ot) jQuery


 function swapImages(imageName) {
$.get('/shop/act_getBeautyImage.cfm?beautyImage='+ imageName +
 'width=372height=465',{},function(data) {
$(#beautyImage).html(data).fadeIn('slow');
});
 }




 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338460
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: (ot) jQuery

2010-10-21 Thread Chad Gray

I mocked up some test code.  Just place an image beautyImage1.jpg in the same 
folder as the code.  The image is placed in the DIV but does not fade in.


script src=jquery-1.4.3.min.js/script

script
function swapImages() {
$(#beautyImage).html('img src=beautyImage1.jpg').fadeIn('slow');
}
/script

div id=beautyImage style=margin:0px; padding:0px;
img src=image.jpg border=0 style=margin-left:5px; /
/div

img src=image2.jpg border=0 style=margin:5px; onclick=swapImages();/





-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, October 21, 2010 2:52 PM
To: cf-talk
Subject: RE: (ot) jQuery


If I do this it snaps into place also.  No fade in.

function swapImages(imageName) {
$(#beautyImage).html('img src=/output/9305B06559F4D04C37ED27103EBFB959.jpg 
style=margin-left:5px;').fadeIn('slow');
}



-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Thursday, October 21, 2010 2:43 PM
To: cf-talk
Subject: Re: (ot) jQuery


I don't see why it wouldn't be. Does fadeIn() work if you do it on it's own?

On Thu, Oct 21, 2010 at 2:40 PM, Chad Gray cg...@careyweb.com wrote:


 Thanks for the suggestions, but still now luck.  Maybe the get() is not
 compatible with fadeIn()?



 -Original Message-
 From: Tony Bentley [mailto:cascadefreehee...@gmail.com]
 Sent: Thursday, October 21, 2010 2:39 PM
 To: cf-talk
 Subject: Re: (ot) jQuery


 function swapImages(imageName) {
$.get('/shop/act_getBeautyImage.cfm?beautyImage='+ imageName +
 'width=372height=465',{},function(data) {
$(#beautyImage).html(data).fadeIn('slow');
});
 }




 





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338463
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: (ot) jQuery

2010-10-21 Thread Chad Gray

AH... son of gun...  You have to .hide() first.

$(#beautyImage).hide().html(data).fadeIn('slow');

Thanks for all the help guys.  I just needed to bounce this off someone.

Chad


-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, October 21, 2010 3:00 PM
To: cf-talk
Subject: RE: (ot) jQuery


I mocked up some test code.  Just place an image beautyImage1.jpg in the same 
folder as the code.  The image is placed in the DIV but does not fade in.


script src=jquery-1.4.3.min.js/script

script
function swapImages() {
$(#beautyImage).html('img src=beautyImage1.jpg').fadeIn('slow');
}
/script

div id=beautyImage style=margin:0px; padding:0px;
img src=image.jpg border=0 style=margin-left:5px; /
/div

img src=image2.jpg border=0 style=margin:5px; onclick=swapImages();/





-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, October 21, 2010 2:52 PM
To: cf-talk
Subject: RE: (ot) jQuery


If I do this it snaps into place also.  No fade in.

function swapImages(imageName) {
$(#beautyImage).html('img src=/output/9305B06559F4D04C37ED27103EBFB959.jpg 
style=margin-left:5px;').fadeIn('slow');
}



-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Thursday, October 21, 2010 2:43 PM
To: cf-talk
Subject: Re: (ot) jQuery


I don't see why it wouldn't be. Does fadeIn() work if you do it on it's own?

On Thu, Oct 21, 2010 at 2:40 PM, Chad Gray cg...@careyweb.com wrote:


 Thanks for the suggestions, but still now luck.  Maybe the get() is not
 compatible with fadeIn()?



 -Original Message-
 From: Tony Bentley [mailto:cascadefreehee...@gmail.com]
 Sent: Thursday, October 21, 2010 2:39 PM
 To: cf-talk
 Subject: Re: (ot) jQuery


 function swapImages(imageName) {
$.get('/shop/act_getBeautyImage.cfm?beautyImage='+ imageName +
 'width=372height=465',{},function(data) {
$(#beautyImage).html(data).fadeIn('slow');
});
 }




 







~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338465
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: (ot) jQuery

2010-10-21 Thread Chad Gray

Thanks Tony, your code looks a lot better than mine.  I will try it out.

Chad

-Original Message-
From: Tony Bentley [mailto:cascadefreehee...@gmail.com] 
Sent: Thursday, October 21, 2010 3:41 PM
To: cf-talk
Subject: Re: (ot) jQuery


Really, you need to detect when the image is finished loading completely.

Here, check out my source code: http://tonybentley.com/test/test.html




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338468
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


parse XML

2010-09-10 Thread chad gray

I have some XML being sent back to me and i am having a hard time reading 
information out of it.

There are colons in the node names and i think that is what is causing it.  
Anyway to escape the colons?

Here is a snippet of the XML:

?xpacket begin= id=W5M0MpCehiHzreSzNTczkc9d?
x:xmpmeta xmlns:x=adobe:ns:meta/ x:xmptk=XMP Core 4.1.1
   rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336931
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


hot folder

2010-09-10 Thread Chad Gray

I thought there was a hot folder in CF8 thatwould take action on files placed 
in it.  Is that CF9?
 
Thanks,
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336935
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


(ot) 3rd party DNS

2010-06-03 Thread Chad Gray

Hello, we are going through the pain of switching our internet providers.  We 
got a great deal from a cable company that is about half the price of our 
current ATT provider and triple the bandwidth.
 
So now we will have a new IP range and have to switch all the web sites to a 
new DNS server.
 
Makes sense to use a 3rd party to host the DNS so the records at netsol.com, 
godaddy.com will not need to be changed if we were to switch internet providers 
again in the future.
 
Anyone use or recommend a 3rd party DNS service?
 
Thanks,
Chad

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334251
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


PDF multi-line input

2010-06-01 Thread Chad Gray

I have a PDF with a text field that is “Multi-Line”.  You can type into it and 
use carriage return to write paragraphs of text.
 
So I type in it and use a carriage return.  Submit the form to a CFQuery and 
insert the data into a varchar field.
 
I use CFPDF and CFPDFformparam to take the field from the database and put it 
back into the PDF form.  Everything looks fine.
 
Submit the form again to a CFQuery and update the database.
 
When I go to view the PDF again with the data I have two carriage returns 
instead of just one.  If I keep updating the database I keep getting even more 
carriage returns.  They almost seem to double with each update.
 
How can I prevent this?  Do I need to search for LF and replace with CR?  Or 
something similar?
 
I tried this on the update query and it does not help.
#replace(FORM.Contact_Name, chr(10), chr(13))#
 
Thanks,
Chad
 
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334182
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: PDF multi-line input

2010-06-01 Thread Chad Gray

Either way, it seems to be when I pull the data from the database and use 
CFPDFFORM and insert it back into the PDF.

If I submit the PDF there are extra carriage returns in the data.

Using the replace of chr(10) and chr(13) did not help either.

It is like the PDF displays single carriage returns, but it submits to the 
update as double carriage returns.

Im stumped!
Chad


-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Tuesday, June 01, 2010 3:05 PM
To: cf-talk
Subject: Re: PDF multi-line input


On 6/1/2010 11:48 AM, Robert Harrison wrote:
 #replace(FORM.Contact_Name, #chr(10)#, #chr(13)#)#

 You need the ## around the characters. Otherwise you're looking to replace
 the literal string 'chr(10)'.


No you don't.

#replace(FORM.Contact_Name, chr(10), chr(13))#

Is perfectly fine and clean code.

If you where to enclose the chr() functions in quotes, making them stings, then 
you would need hash characters, but there is little reason to do that, unless 
you have other characters in your string.


#replace(FORM.Contact_Name, #chr(10)#, #chr(13)#)#




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334188
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: PDF multi-line input

2010-06-01 Thread Chad Gray

AH HA!  Found it.

replace(FORM.Customer_Name, Chr(13)  Chr(10), chr(13), ALL)

Apprently chr(13)  chr(10) represents a Windows newline.

Looks like this works.  I will keep testing.
Chad

-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Tuesday, June 01, 2010 3:32 PM
To: cf-talk
Subject: RE: PDF multi-line input


Either way, it seems to be when I pull the data from the database and use 
CFPDFFORM and insert it back into the PDF.

If I submit the PDF there are extra carriage returns in the data.

Using the replace of chr(10) and chr(13) did not help either.

It is like the PDF displays single carriage returns, but it submits to the 
update as double carriage returns.

Im stumped!
Chad


-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Tuesday, June 01, 2010 3:05 PM
To: cf-talk
Subject: Re: PDF multi-line input


On 6/1/2010 11:48 AM, Robert Harrison wrote:
 #replace(FORM.Contact_Name, #chr(10)#, #chr(13)#)#

 You need the ## around the characters. Otherwise you're looking to replace
 the literal string 'chr(10)'.


No you don't.

#replace(FORM.Contact_Name, chr(10), chr(13))#

Is perfectly fine and clean code.

If you where to enclose the chr() functions in quotes, making them stings, then 
you would need hash characters, but there is little reason to do that, unless 
you have other characters in your string.


#replace(FORM.Contact_Name, #chr(10)#, #chr(13)#)#






~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334191
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CGI.SERVER_NAME

2010-05-28 Thread Chad Gray

While going through PCI compliance it appears that CGI.SERVER_NAME can leak the 
internal private IP address.

Does CGI.SERVER_NAME default to the internal IP setup in IIS?

I have a re-direct in Application.cfm that if the user is on HTTPS to 
cflocation them to http://#CGI.SERVER_NAME#/ and this leaks the private IP 
10.1.0.0 when using CURL

curl -0 -k --head -v -H Host: https://1.1.1.1

Could this be DNS setup?

Thanks,
Chad


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334099
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: XPATH

2010-05-27 Thread Chad Gray

Thanks Dominic, that worked like a charm.  I swear I tried that notation, but 
apparently I did not.

I tried a multi-record query and if you want the first record you would just 
add [1] to the second data.

//data[1]/data[1]/data

If you don’t you return all the records in the first data[1].

Thanks again for the help!
Chad


-Original Message-
From: Dominic Watson [mailto:watson.domi...@googlemail.com] 
Sent: Thursday, May 27, 2010 4:33 AM
To: cf-talk
Subject: Re: XPATH


Tested on CF8, this will give you an array of the ProductionStatus column
elements:

//data[1]/data/data

This works for your example but may need tweaking depending on the format of
other results of course. Would like to see what it looks like with more than
one result / column.

Dom

On 27 May 2010 04:31, Mark Mandel mark.man...@gmail.com wrote:


 Chad,

 There is a great discussion of exactly this issue here:

 http://www.bennadel.com/blog/494-Stripping-XML-Name-Spaces-And-Node-Prefixes-From-ColdFusion-XML-Data-To-Simplify-XPath-.htm

 Basically - xpath and namespaces are a pain in cf.

 Check the comments of the blog post, they offer a good number of good
 ideas.

 Mark

 On Thu, May 27, 2010 at 3:06 AM, Chad Gray cg...@careyweb.com wrote:

 
  Can someone help me figure out the XPATH of the node that contains “DISK
  SENT”?
 
  Thanks!
  Chad
 
  ?xml version=1.0 encoding=UTF-8?
  soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=
  http://www.w3.org/2001/XMLSchema-instance;
   soapenv:Body
   ns1:jobStatusResponse soapenv:encodingStyle=
  http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=
  http://DefaultNamespace;
jobStatusReturn xsi:type=ns2:QueryBean xmlns:ns2=
  http://rpc.xml.coldfusion;
 columnList soapenc:arrayType=xsd:string[1] xsi:type=soapenc:Array
  xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
  columnList xsi:type=xsd:stringPRODUCTIONSTATUS/columnList
 /columnList
 data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array
  xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
  data soapenc:arrayType=xsd:anyType[1] xsi:type=soapenc:Array
   data xsi:type=soapenc:stringDISK SENT/data
  /data
 /data
/jobStatusReturn
   /ns1:jobStatusResponse
   /soapenv:Body
  /soapenv:Envelop
 
 

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334036
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


XPATH

2010-05-26 Thread Chad Gray

Can someone help me figure out the XPATH of the node that contains “DISK SENT”?
 
Thanks!
Chad
 
?xml version=1.0 encoding=UTF-8?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 soapenv:Body
  ns1:jobStatusResponse 
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:ns1=http://DefaultNamespace;
   jobStatusReturn xsi:type=ns2:QueryBean 
xmlns:ns2=http://rpc.xml.coldfusion;
columnList soapenc:arrayType=xsd:string[1] xsi:type=soapenc:Array 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
 columnList xsi:type=xsd:stringPRODUCTIONSTATUS/columnList
/columnList
data soapenc:arrayType=xsd:anyType[][1] xsi:type=soapenc:Array 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
 data soapenc:arrayType=xsd:anyType[1] xsi:type=soapenc:Array
  data xsi:type=soapenc:stringDISK SENT/data
 /data
/data
   /jobStatusReturn
  /ns1:jobStatusResponse
 /soapenv:Body
/soapenv:Envelop

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334006
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


upgrade from 7 to 8

2010-05-08 Thread Chad Gray

I just upgraded our server from 7 to 8.  It said I needed to run wsconfig to 
finish the installation and there was a problem with port 2930.

ERROR - JNDI port 2930 for server coldfusion is not active

I don’t see anything using 2930 and I ran wsconfig to hook it up to IIS.

I don’t see any MX8 ODBC services in the list.  The MX8 application service is 
there and the CF8 .net service.

What is going on?

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333522
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: upgrade from 7 to 8

2010-05-08 Thread Chad Gray

I rebooted and now I can get to the CFAdmin web site and it is asking to 
migrate.  Maybe I am getting some where.


-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Saturday, May 08, 2010 10:23 AM
To: cf-talk
Subject: upgrade from 7 to 8


I just upgraded our server from 7 to 8.  It said I needed to run wsconfig to 
finish the installation and there was a problem with port 2930.

ERROR - JNDI port 2930 for server coldfusion is not active

I don’t see anything using 2930 and I ran wsconfig to hook it up to IIS.

I don’t see any MX8 ODBC services in the list.  The MX8 application service is 
there and the CF8 .net service.

What is going on?



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333524
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: upgrade from 7 to 8

2010-05-08 Thread Chad Gray

OK that was scary.  Looks like everything is working now.

Peed my pants a little.



-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Saturday, May 08, 2010 10:25 AM
To: cf-talk
Subject: RE: upgrade from 7 to 8


I rebooted and now I can get to the CFAdmin web site and it is asking to 
migrate.  Maybe I am getting some where.


-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Saturday, May 08, 2010 10:23 AM
To: cf-talk
Subject: upgrade from 7 to 8


I just upgraded our server from 7 to 8.  It said I needed to run wsconfig to 
finish the installation and there was a problem with port 2930.

ERROR - JNDI port 2930 for server coldfusion is not active

I don’t see anything using 2930 and I ran wsconfig to hook it up to IIS.

I don’t see any MX8 ODBC services in the list.  The MX8 application service is 
there and the CF8 .net service.

What is going on?





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333525
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFBuilder RDS Query Viewer max rows

2010-03-25 Thread Chad Gray

I have found if I have an error on the page where a line is checked by the 
little red X CI does not work.

Like leave a hanging # inside CFOutput and try CI after that error line.


-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Thursday, March 25, 2010 12:53 PM
To: cf-talk
Subject: Re: CFBuilder RDS Query Viewer max rows


I've found that if I click tab, by accident, the CI won't work. I've
also found that you can force the CI if you don't see it popup. On my
Mac I believe it is command+. (sorry, my muscle memory doesn't always
translate to real memory).

On Thu, Mar 25, 2010 at 11:43 AM, Casey Dougall
ca...@uberwebsitesolutions.com wrote:

 On Thu, Mar 25, 2010 at 12:30 PM, Raymond Camden rcam...@gmail.com wrote:


 I know code insight works for table/col names. I also see CI for
 cfqueryparam. For example, it showed the arguments, and when I picked
 cfsqltype, it gave me a list of types.


 when  I start to type cfqueryparam it doesn't always work. It does and
 doesn't

 Code insight is really buggy here!



-- 
===
Raymond Camden, ColdFusion Jedi Master

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

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



~|
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:332275
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cftransaction and multiple databases

2010-03-24 Thread Chad Gray

Hello, ran into this one today.

I have a CFTransaction surrounding some queries that insert data.

I am using a CFC function to get shipping total:

cfprocparam dbvarname=@ShippingTotal value=#CartObj.GetCartShipping()# 
cfsqltype=cf_sql_numeric

That function needs to query a different database then the other queries in the 
CFTransaction to help calculate shipping.

I get this error:

Datasource FOO verification failed. 
The root cause was that: java.sql.SQLException: Datasource names for all the 
database tags within the cftransaction tag must be the same. 


How can I get around this error?  The function is just doing a select... there 
is nothing even to roll back even if the other queries fail.

I have a feeling that I will not be able to do this and I will have to take a 
different approach, but wanted to ask you guys anyway.

Thanks,
Chad


~|
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:332201
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cftransaction and multiple databases

2010-03-24 Thread Chad Gray

I figured out a work around.  I made a view of the table.

So now all my tables inside of the CFTransaction are in the same database.

Chad


-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Wednesday, March 24, 2010 4:05 PM
To: cf-talk
Subject: cftransaction and multiple databases


Hello, ran into this one today.

I have a CFTransaction surrounding some queries that insert data.

I am using a CFC function to get shipping total:

cfprocparam dbvarname=@ShippingTotal value=#CartObj.GetCartShipping()# 
cfsqltype=cf_sql_numeric

That function needs to query a different database then the other queries in the 
CFTransaction to help calculate shipping.

I get this error:

Datasource FOO verification failed. 
The root cause was that: java.sql.SQLException: Datasource names for all the 
database tags within the cftransaction tag must be the same. 


How can I get around this error?  The function is just doing a select... there 
is nothing even to roll back even if the other queries fail.

I have a feeling that I will not be able to do this and I will have to take a 
different approach, but wanted to ask you guys anyway.

Thanks,
Chad




~|
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:332210
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFPDFform

2010-03-23 Thread Chad Gray

I posted yesterday about using CFPDFForm and iText, but it kind of got pushed 
to the side with all the CFBuilder chat.
 
My question now is what is the best practice when using CFPDFForm to create a 
PDF?
 
If I specify a destination the PDF is created and the form data is there, but 
it appears the PDF is not flattened.  If I open the PDF in Acrobat make no 
changes and try to close the document Acrobat asks if I want to save it.  It is 
like the PDF made by CFPDFForm is not flattened or complete.
 
I had to run CFPDF flatten=yes … after my CFPDFForm code to get iText to 
play well with the PDF.
 
Is it best practice to use CFPDF to flatten a PDF made by CFPDFForm?  It really 
slows down the page run time if I add it.
 
Thanks,
Cha

~|
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:332103
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFPDFForm and iText signature

2010-03-22 Thread Chad Gray

I am using CFPDFForm to populate a PDF form with data from a database and save 
it to the server.  This works fine. I open it and the data is in the PDF.
 
I added another step to the CFM page that after CFPDFForm saves the file I run 
iText to apply a signature to the PDF and flatten the form.
 
I open the new PDF with the signature and all my form data is gone.  Only the 
signature is on the PDF.
 
I thought maybe it was a timing issue that CFPDFForm was not saving the file 
before iText got a hold of it.  This is not the case.  I can take the CFPDFform 
generated PDF and only run the iText code on it and the form data is never 
retained.  Only the signature is on the PDF.
 
I opened the PDF with form data in Acrobat and did a save.  Ran my iText code 
on it and the form data and signature was on the PDF.
 
I am baffled.  I don’t understand why when I run the iText signature code that 
the data put into the form by CFPDFForm would be deleted.
 
Ideas?
Thanks,
Cha

~|
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:332003
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFPDFForm and iText signature

2010-03-22 Thread Chad Gray

Hmmm I had to add a CFPDF flatten=yes  tag after CFPDFForm to flatten 
the PDF before stepping into the iText code.

Slows the page WAY down, but that is the only solution I have found so far.



-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Monday, March 22, 2010 3:31 PM
To: cf-talk
Subject: CFPDFForm and iText signature


I am using CFPDFForm to populate a PDF form with data from a database and save 
it to the server.  This works fine. I open it and the data is in the PDF.
 
I added another step to the CFM page that after CFPDFForm saves the file I run 
iText to apply a signature to the PDF and flatten the form.
 
I open the new PDF with the signature and all my form data is gone.  Only the 
signature is on the PDF.
 
I thought maybe it was a timing issue that CFPDFForm was not saving the file 
before iText got a hold of it.  This is not the case.  I can take the CFPDFform 
generated PDF and only run the iText code on it and the form data is never 
retained.  Only the signature is on the PDF.
 
I opened the PDF with form data in Acrobat and did a save.  Ran my iText code 
on it and the form data and signature was on the PDF.
 
I am baffled.  I don’t understand why when I run the iText signature code that 
the data put into the form by CFPDFForm would be deleted.
 
Ideas?
Thanks,
Cha



~|
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:332015
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: ColdFusion Builder Released!

2010-03-22 Thread Chad Gray

My only .02 on the subject is I hope it is eventually bundled with Creative 
Suite for web.

Or maybe there needs to be a Creative Suite for Coder.  

I don’t use Illustrator, fireworks, soundbooth, bridge etc.  So take those out 
and put in CFB and Flash Builder.

Chad

~|
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:332017
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Repeating Data - Unsure of my use of cfquery

2010-03-16 Thread Chad Gray

You can put a CFLoop query=foo inside of a cfoutput query=moo tag.


-Original Message-
From: Steven Sprouse [mailto:sspro...@ccboe.com] 
Sent: Tuesday, March 16, 2010 10:39 AM
To: cf-talk
Subject: Re: Repeating Data - Unsure of my use of cfquery


I got my original form to output the way I wanted it to. Now, I'm trying to 
actually process and validate that form and I'm running into more errors. I 
sort of know what I'm doing wrong, but unclear how to fix it.

Here is my error: Invalid tag nesting configuration. A query driven CFOUTPUT 
tag is nested inside a CFOUTPUT tag that also has a QUERY= attribute. This is 
not allowed. Nesting these tags implies that you want to use grouped 
processing. However, only the top-level tag can specify the query that drives 
the processing. brThe error occurred on line 299.

Is there an easy way for me to send the file of my processing document on this 
forum? 



~|
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:331785
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: iText PDF signature

2010-03-12 Thread Chad Gray

Thanks for the suggestions Paul.

I don’t see any setRender or setSignatureGraphic method.  Are you on CF9?  
Maybe that is the difference.

All I have is setImage and setImageScale.  These lay an image behind the text 
in the signature.

I did find that I can do setLayer2Text to blank and it will clear the type on 
top of the image.  So maybe that is the route I will go.  I really don’t feel 
like monkey'ing around with replacing iText in CF8.

Thanks again,
Chad



-Original Message-
From: Paul Hastings [mailto:p...@sustainablegis.com] 
Sent: Thursday, March 11, 2010 8:38 PM
To: cf-talk
Subject: Re: iText PDF signature 


On 3/12/2010 5:12 AM, Chad Gray wrote:
 I want to create a signature in a PDF that has an image like this example 
 code is doing:
 http://itextpdf.com/examples/index.php?page=exampleid=221

that's for the latest version of iText not the one shipped with cf. you can 
drop 
the new version into cfs class path or use mark's javaLoader  away you go (but 
make sure you read the new licensing first). on the plus side is that the new 
version's class, etc names have changed so no classpath hell w/existing cf 
version.

---or---

if you want to use the existing version maybe this will help:

setRenderingMode === setRender Sets the rendering mode for this signature
setSignatureGraphic === setSignatureGraphic (still there), it's looking for a 
com.lowagie.text.Image



~|
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:331654
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


iText PDF signature

2010-03-11 Thread Chad Gray

Hello, I am working with iText that comes with CF8 and I don’t see these 
methods in com.lowagie.text.pdf.PdfSignatureAppearance
setRenderMode
setSignatureGraphic
 
I want to create a signature in a PDF that has an image like this example code 
is doing:
http://itextpdf.com/examples/index.php?page=exampleid=221
 
Anyone figured out how to get an image and description into a PDF signature?
 
If I use the method setImage that is in the CF8 class the image is laid on top 
of the description and you cannot read it.
 
Thanks,
Cha

~|
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:331618
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


OT JS question

2010-03-04 Thread Chad Gray

Anyone know if there is an equivalent to CF’s val() in Javascript?
 
I want to check a JS variable and set it to zero if it is blank.
 
Thanks

~|
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:331359
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: OT JS question

2010-03-04 Thread Chad Gray

Thanks for the suggestions but if I do this I get NaN (not a number I am 
guessing).

parseInt(FOO,10);
parseInt(,10);



-Original Message-
From: Jake Churchill [mailto:reyna...@gmail.com] 
Sent: Thursday, March 04, 2010 2:40 PM
To: cf-talk
Subject: Re: OT JS question


http://www.w3schools.com/jsref/jsref_parseInt.asp

var value = 15;
parseInt(value,10);

On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray cg...@careyweb.com wrote:


 Anyone know if there is an equivalent to CF’s val() in Javascript?

 I want to check a JS variable and set it to zero if it is blank.

 Thanks

 



~|
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:331365
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: OT JS question

2010-03-04 Thread Chad Gray

Ah I think I found one that will work
Number();

I will test it out.

Thanks for the help!


-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, March 04, 2010 3:04 PM
To: cf-talk
Subject: RE: OT JS question


Thanks for the suggestions but if I do this I get NaN (not a number I am 
guessing).

parseInt(FOO,10);
parseInt(,10);



-Original Message-
From: Jake Churchill [mailto:reyna...@gmail.com] 
Sent: Thursday, March 04, 2010 2:40 PM
To: cf-talk
Subject: Re: OT JS question


http://www.w3schools.com/jsref/jsref_parseInt.asp

var value = 15;
parseInt(value,10);

On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray cg...@careyweb.com wrote:


 Anyone know if there is an equivalent to CF’s val() in Javascript?

 I want to check a JS variable and set it to zero if it is blank.

 Thanks

 





~|
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:331366
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Local DEV setup, multiple projects/websites

2010-02-26 Thread Chad Gray

I do something similar but use the host headers in IIS.  I think they call it 
host name in the latest IIS.

So my Hosts files looks like:

127.0.0.1 foo
127.0.0.1 moo

Then the host header in IIS is foo and moo for each site.

So you type in http://foo/ the hosts file routes it to IIS and IIS then routes 
it to the proper web site.

Works really well.


-Original Message-
From: Tony Bentley [mailto:t...@tonybentley.com] 
Sent: Friday, February 26, 2010 2:47 PM
To: cf-talk
Subject: Re: Local DEV setup, multiple projects/websites


I just setup my hosts file to direct me: 

1.) C:\Windows\System32\drivers\etc\hosts\ (In Vista. Not sure about win7)

write the following: 127.0.0.1/devprojectA/ [tab] dev.projectA.com

Also, if you are going to push to a windows server with IIS, I suggest you use 
the IIS web server instead of the built in version locally so you can mimic the 
same mapping as you would use in production.

This is strictly a preference. There isn't anything wrong with your current 
setup at all. 



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


filemaker with CF webservice

2010-02-23 Thread Chad Gray

Hello, 
 
I am wondering if anyone has experimented with FileMaker Pro submitting data to 
a ColdFusion web service?
 
Does FileMaker send data as XML?  JSON?
 
We are looking at possibly building a B2B app and the customer is using file 
maker.  It would be nice for them to submit job data to us in FileMaker to a 
web service that I build in CF.  Like  a button in FileMaker to submit job data 
to us.
 
Thanks,
Chad

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


CFPdfForm

2010-02-18 Thread Chad Gray

Is there a best practice with CFPDFForm?
 
The first time I hit a page using it, it streamed binary into the web browser 
instead of rendering a PDF.  The second time I hit it the PDF opened in Acrobat.
 
Should I use these to be safe?
cfcontent type=application/pdf 
cfsetting enablecfoutputonly=yes
 
The documentation does not say anything.  Just to leave the destination 
attribute off.
 
Thanks,
Chad

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


RE: Can't quite figure out how to process PDF form...

2010-02-17 Thread Chad Gray

I ran into this one last week.

Dump the #FORM# object if you are using HTTP.
cfdump var=#FORM#

You don’t even need the cfpdfform tag you have running.  The PDF submits the 
form fields just like a form method=post HTML tag.



-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Wednesday, February 17, 2010 9:30 AM
To: cf-talk
Subject: RE: Can't quite figure out how to process PDF form...


Hi, Leigh...and thanks for replying.

I can only assume it's post, since the only submission options are

Submit to:

 - HTTP address
 - Email address
 - FTP address
 - FDF file

And I have HTTP address chosen as the submission method ( going to
my localhost, for now).

Suggestions?

Rick

-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com] 
Sent: Tuesday, February 16, 2010 11:26 PM
To: cf-talk
Subject: Re: Can't quite figure out how to process PDF form...


There are different ways to submit forms. POST, fdf, as pdf, etcetera.  How
is your form being submitted?






  





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


RE: Can't quite figure out how to process PDF form...

2010-02-17 Thread Chad Gray

Did you fill out the PDF with information in the form?  The PDF form does not 
work like an HTML form.  You have to have typed something into the fields for 
them to populate in the FORM object.
 
It has something to do with the form in the PDF.  You will want to edit it and 
check out how it is setup.



-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Wednesday, February 17, 2010 10:59 AM
To: cf-talk
Subject: RE: Can't quite figure out how to process PDF form...


Thanks for the reply, Chad...

When I use the following in the method:

 cffunction name=  mProcessPDFApplication
 displayName  =  mProcessPDFApplication
 hint=  Process online
PDF rental application
 output  =  false
 returnType =  struct
 access   =  remote 

cfdump var=#form#
cfabort

 /cffunction

I get the cfdump table with just the blue rectangle that
states struct [empty]...

Any idea why the form field values wouldn't be showing up?
Do I need to change the cffunction settings somehow?

Rick




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


RE: Can't quite figure out how to process PDF form...

2010-02-17 Thread Chad Gray

Ya, load it up in acrobat pro and use the form tools to view each form field 
and how it is setup.  The field Name under the general tab will be the name 
of the form field in the #FORM# object when it submits.

Sounds like that Foxit software you used did not setup the form right.

You can email it to me off list if you don’t have Acrobat Pro.



-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Wednesday, February 17, 2010 11:37 AM
To: cf-talk
Subject: RE: Can't quite figure out how to process PDF form...


Yep...I actually took the time fill in all of the 90 fields, give-or-take a
few,
just to make sure that an incomplete form, when all fields are required to
have an entry, wasn't the problem.

I tried it with the complete form filled in and with just a few
fields...same thing.

I'll double-check the form setup, although I've double-checked it 3 times
already.  :o)

Thanks,

Rick


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


RE: SOT: Preventing Link-Builders

2010-02-12 Thread Chad Gray

I don’t think you mentioned using CFFormProtect, but it is another layer that I 
have used.
http://cfformprotect.riaforge.org/


-Original Message-
From: Kris Jones [mailto:kris.jon...@verizon.net] 
Sent: Friday, February 12, 2010 12:08 PM
To: cf-talk
Subject: Re: SOT: Preventing Link-Builders


Not even suggesting it can't be done. Of course it can be done, and with
fairly basic skills. However, I can tell, from at least 2 of the most
egregious offenders, that they are getting links inserted (with success) on
other sites. So it's not just our site.

And yeah, many of the IPs (that aren't spoofed) are eastern european in
origin, or resolve to the Philippines.

Would still like to stop this in it's tracks. Thoughts?

Cheers,
Kris


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


RE: cfinsert multiple records into DB

2010-02-11 Thread Chad Gray

First the CFinsert should be avoided, it limits you.  Writing your own SQL is 
easy.

I would replace the value of the option in the player select with the ID not 
the First and Last name.  You can delete your second select since the ID 
represents the First and Last name.

cfoutput query=contacts
   option value=#contacts.contactID##contacts.FirstName# 
#contacts.LastName#/option
/cfoutput

Then before you do your insert query the FirstName and LastName with the ID 
then do your insert.  These queries are assuming your contactid in the database 
is numeric datatype and the contactID represents the first and last name.

action page:

cfquery datasource=mydatabase name=getFirstAndLast
SELECT FirstName, LastName
FROM player
WHERE contactid = #FORM.contactID#
/cfquery

cfquery datasource=mydatabase name=insertPlayer
INSERT player (contactID, player)
VALUES (#FORM.contactID#, '#getFirstAndLast.FirstName# 
#getFirstAndLast.LastName#')
/cfquery

Try to always scope your variables by adding FORM. nameOfQuery. Etc. in front 
of your variables.  This will create much more precise code for you in the 
future as you learn more.


-Original Message-
From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] 
Sent: Thursday, February 11, 2010 9:47 AM
To: cf-talk
Subject: cfinsert multiple records into DB


Hello Everybody.

I'm trying to build a form that only has one cfselect or drop-down menu option 
on my website. Right now I have two cfselect but I would like to only display 
the first cfselect (player). The second cfselect (contactID) I would like to 
hide. The player selected in the first cfselect should match the second 
cfselect contactID and go to the action page.

cfform name=AllPlayers action=AddPlayers.cfm

cfselect name=player size=1

cfoutput query=contacts
   option value=#FirstName# #LastName##FirstName# #LastName#/option
/cfoutput

/cfselect

cfselect name=contactid size=1

cfoutput query=contacts
   option value=#contactid#(#contactid#) #FirstName# #LastName#/option
/cfoutput

/cfselect

/cfform

Action page - addplayers.cfm

cfinsert datasource=mydatabase
 tablename=player
 formfields=contactID, player

Thanks,

Barry 



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


RE: cfinsert multiple records into DB

2010-02-11 Thread Chad Gray

Whoops, I noticed a bug in my code.  You should use FORM.player not 
FORM.contactid in the two CFQuery's since the name of the select is player.



-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, February 11, 2010 11:11 AM
To: cf-talk
Subject: RE: cfinsert multiple records into DB


First the CFinsert should be avoided, it limits you.  Writing your own SQL is 
easy.

I would replace the value of the option in the player select with the ID not 
the First and Last name.  You can delete your second select since the ID 
represents the First and Last name.

cfoutput query=contacts
   option value=#contacts.contactID##contacts.FirstName# 
#contacts.LastName#/option
/cfoutput

Then before you do your insert query the FirstName and LastName with the ID 
then do your insert.  These queries are assuming your contactid in the database 
is numeric datatype and the contactID represents the first and last name.

action page:

cfquery datasource=mydatabase name=getFirstAndLast
SELECT FirstName, LastName
FROM player
WHERE contactid = #FORM.contactID#
/cfquery

cfquery datasource=mydatabase name=insertPlayer
INSERT player (contactID, player)
VALUES (#FORM.contactID#, '#getFirstAndLast.FirstName# 
#getFirstAndLast.LastName#')
/cfquery

Try to always scope your variables by adding FORM. nameOfQuery. Etc. in front 
of your variables.  This will create much more precise code for you in the 
future as you learn more.


-Original Message-
From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] 
Sent: Thursday, February 11, 2010 9:47 AM
To: cf-talk
Subject: cfinsert multiple records into DB


Hello Everybody.

I'm trying to build a form that only has one cfselect or drop-down menu option 
on my website. Right now I have two cfselect but I would like to only display 
the first cfselect (player). The second cfselect (contactID) I would like to 
hide. The player selected in the first cfselect should match the second 
cfselect contactID and go to the action page.

cfform name=AllPlayers action=AddPlayers.cfm

cfselect name=player size=1

cfoutput query=contacts
   option value=#FirstName# #LastName##FirstName# #LastName#/option
/cfoutput

/cfselect

cfselect name=contactid size=1

cfoutput query=contacts
   option value=#contactid#(#contactid#) #FirstName# #LastName#/option
/cfoutput

/cfselect

/cfform

Action page - addplayers.cfm

cfinsert datasource=mydatabase
 tablename=player
 formfields=contactID, player

Thanks,

Barry 





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


RE: cfinsert multiple records into DB

2010-02-11 Thread Chad Gray

Hehe, another bug, your select query should be querying the contact table not 
the player table.

HTH, and I have not confused the heck of you.
Chad

-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, February 11, 2010 11:15 AM
To: cf-talk
Subject: RE: cfinsert multiple records into DB


Whoops, I noticed a bug in my code.  You should use FORM.player not 
FORM.contactid in the two CFQuery's since the name of the select is player.



-Original Message-
From: Chad Gray [mailto:cg...@careyweb.com] 
Sent: Thursday, February 11, 2010 11:11 AM
To: cf-talk
Subject: RE: cfinsert multiple records into DB


First the CFinsert should be avoided, it limits you.  Writing your own SQL is 
easy.

I would replace the value of the option in the player select with the ID not 
the First and Last name.  You can delete your second select since the ID 
represents the First and Last name.

cfoutput query=contacts
   option value=#contacts.contactID##contacts.FirstName# 
#contacts.LastName#/option
/cfoutput

Then before you do your insert query the FirstName and LastName with the ID 
then do your insert.  These queries are assuming your contactid in the database 
is numeric datatype and the contactID represents the first and last name.

action page:

cfquery datasource=mydatabase name=getFirstAndLast
SELECT FirstName, LastName
FROM player
WHERE contactid = #FORM.contactID#
/cfquery

cfquery datasource=mydatabase name=insertPlayer
INSERT player (contactID, player)
VALUES (#FORM.contactID#, '#getFirstAndLast.FirstName# 
#getFirstAndLast.LastName#')
/cfquery

Try to always scope your variables by adding FORM. nameOfQuery. Etc. in front 
of your variables.  This will create much more precise code for you in the 
future as you learn more.


-Original Message-
From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] 
Sent: Thursday, February 11, 2010 9:47 AM
To: cf-talk
Subject: cfinsert multiple records into DB


Hello Everybody.

I'm trying to build a form that only has one cfselect or drop-down menu option 
on my website. Right now I have two cfselect but I would like to only display 
the first cfselect (player). The second cfselect (contactID) I would like to 
hide. The player selected in the first cfselect should match the second 
cfselect contactID and go to the action page.

cfform name=AllPlayers action=AddPlayers.cfm

cfselect name=player size=1

cfoutput query=contacts
   option value=#FirstName# #LastName##FirstName# #LastName#/option
/cfoutput

/cfselect

cfselect name=contactid size=1

cfoutput query=contacts
   option value=#contactid#(#contactid#) #FirstName# #LastName#/option
/cfoutput

/cfselect

/cfform

Action page - addplayers.cfm

cfinsert datasource=mydatabase
 tablename=player
 formfields=contactID, player

Thanks,

Barry 







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


  1   2   3   4   5   6   7   8   9   >