Re: Secure Image Uploads

2012-12-20 Thread Russ Michaels

Do a daily cleanup of uploaded files

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Dec 20, 2012 1:55 AM, Pete Freitag p...@foundeo.com wrote:


 From a security perspective you don't want to skip the file extension
 test(s) - that is critical. Also make sure you upload to a directory
 outside of the webroot, then perform your validation. Only move it under
 the webroot if you are sure it is a valid image and has an approved file
 extension. Finally use your web server and/or CF sandbox security to
 prevent execution on the image upload folder.

 I also wrote a blog entry a while with some tips for secure file uploads:
 http://www.petefreitag.com/item/701.cfm

 --
 Pete Freitag - Adobe Community Professional
 http://foundeo.com/ - ColdFusion Consulting  Products
 http://hackmycf.com - Is your ColdFusion Server Secure?
 http://www.youtube.com/watch?v=ubESB87vl5U - FuseGuard your CFML in 10
 minutes




 On Tue, Dec 18, 2012 at 10:35 PM, Dan Baughman dan.baugh...@gmail.com
 wrote:

 
  skip all the nonsense and just try to resize the image.
 
  If that fails its either  a color pallete java can't handle or it
  isn't an image.
 
  - Dan
 
  On Tue, Dec 18, 2012 at 8:12 PM, Terry Troxel terry.tro...@gmail.com
  wrote:
  
   I am looking for a safe and secure way to put an example page on my
 site
   that will allow a potential client to upload a JPG in order to see an
   example of a responsive photo gallery he can create using my new
  responsive
   web template I am in the process of building.
   Here is what I am considering in the upload process:
   1...JPG extension only
   2...file size limit
   3...remove exif data if it exists
   4...Convert file to PNG and save after doing the resizing, etc. that I
  need
   to.
  
   I would like some opinions, suggestions, etc. to tell me if I am
 missing
   something or there is any other avenues I can persue to accomplish my
  goal
   to stop anyone from using this to hack my site.
  
   Terry
  
  
  
 
 

 

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


Re: cfftp with SSL (Coldfusion 8)

2012-12-20 Thread Steve Milburn

Really?  I've used CF8 with Bitvise and Tumbleweed sFTP servers for a while
and it works a treat.  I used a blog post by Ben Nadel as a guide:
http://www.bennadel.com/blog/1337-My-First-ColdFusion-8-CFFTP-Experience-Rocky-But-Triumphant.htm

Anyway, this doesn't address the initial question of using CF with FTPS
which is a whole other can of worms. I just wanted to throw that out there.

Steve


On Wed, Dec 19, 2012 at 3:34 PM, Dan Crouch stario...@yahoo.com wrote:


 I have never had much luck when dealing with sftp or ftps through CF. We
 set up a test sftp server using Bitvise and I could not for the life of me
 connect to it. Using Chilkat's ssh/sftp .dll in a vb.net application, I
 was able to connect to it in minutes. So we just created an .exe and had
 the CF server call it as a scheduled task.




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


Script Issue

2012-12-20 Thread Bruce Sorge

I needed a way to check a database when someone enters a code into a form 
field, and I ran across an old posting from Ray Camden using SPRY assets to 
accomplish this. (I know that I should probably use AJAX or jQuery, but I have 
not learned these languages yet so I am stuck going off of what I can find on 
line).
Anyway, when I enter a code into the field, I get an error Exception caught 
while loading checkcode.cfm?orgname=AA; Cannot set property 'innerHTML' of null.

Here is the code below:

script
Spry.Data.Region.debug = true;

function checkorgname() {

var uvalue = document.getElementById(orgname).value;
if(uvalue.length  2) { status(''); return; }


Spry.Utils.loadURL(GET,checkcode.cfm?orgname=+encodeURIComponent(uvalue), 
false, orgcheck);
}

function orgcheck(request) {

var result = request.xhRequest.responseText;

if(result == 0) status('You have entered an invalid code. 
Please try again!');
 else status('');

}

function status(str) {

var resultblock = document.getElementById(resultblock);
resultblock.innerHTML = str;

}
/script

form field in question:

 input type=text name=orgname id=orgname size=10 required 
class=upper onKeyUp=checkorgname();  /

The checkcode.cfm page works fine though. When I call it on it's own I get 
either a 0 or 1 depending if the orgname in the URL variable is in the database.


Thanks,

Bruce

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


Re: Script Issue

2012-12-20 Thread Brian McCairn

I might have missed it scanning through but have you got a form field called 
resultblock? 

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


Re: Script Issue

2012-12-20 Thread Raymond Camden

The error is on this line,

   var resultblock = document.getElementById(resultblock);

So ensure you have a div or span with that ID.


On Thu, Dec 20, 2012 at 9:06 AM, Bruce Sorge sor...@gmail.com wrote:


 I needed a way to check a database when someone enters a code into a form
 field, and I ran across an old posting from Ray Camden using SPRY assets to
 accomplish this. (I know that I should probably use AJAX or jQuery, but I
 have not learned these languages yet so I am stuck going off of what I can
 find on line).
 Anyway, when I enter a code into the field, I get an error Exception
 caught while loading checkcode.cfm?orgname=AA; Cannot set property
 'innerHTML' of null.

 Here is the code below:

 script
 Spry.Data.Region.debug = true;

 function checkorgname() {

 var uvalue = document.getElementById(orgname).value;
 if(uvalue.length  2) { status(''); return; }


 Spry.Utils.loadURL(GET,checkcode.cfm?orgname=+encodeURIComponent(uvalue),
 false, orgcheck);
 }

 function orgcheck(request) {

 var result = request.xhRequest.responseText;

 if(result == 0) status('You have entered an invalid code.
 Please try again!');
  else status('');

 }

 function status(str) {

 var resultblock = document.getElementById(resultblock);
 resultblock.innerHTML = str;

 }
 /script

 form field in question:

  input type=text name=orgname id=orgname size=10 required
 class=upper onKeyUp=checkorgname();  /

 The checkcode.cfm page works fine though. When I call it on it's own I get
 either a 0 or 1 depending if the orgname in the URL variable is in the
 database.


 Thanks,

 Bruce

 

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


Re: Script Issue

2012-12-20 Thread Bruce Sorge

Yeah, I forgot that. Thanks. Now the issue is that when I enter a code in the 
database, I don't get any message at all. This is driving me nuts. And again, I 
know that the calling CFM file works and I also know that the script is calling 
the checkorgname.cfm file because if I change the name of it it throws a 404 
error. 

Bruce
On Dec 20, 2012, at 10:14 AM, Raymond Camden raymondcam...@gmail.com wrote:

 
 The error is on this line,
 
   var resultblock = document.getElementById(resultblock);
 
 So ensure you have a div or span with that ID.
 
 


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


Re: Script Issue

2012-12-20 Thread Brian Thornton

I love how raymond answers this question...
On Dec 20, 2012 10:14 AM, Raymond Camden raymondcam...@gmail.com wrote:


 The error is on this line,

var resultblock = document.getElementById(resultblock);

 So ensure you have a div or span with that ID.


 On Thu, Dec 20, 2012 at 9:06 AM, Bruce Sorge sor...@gmail.com wrote:

 
  I needed a way to check a database when someone enters a code into a form
  field, and I ran across an old posting from Ray Camden using SPRY assets
 to
  accomplish this. (I know that I should probably use AJAX or jQuery, but I
  have not learned these languages yet so I am stuck going off of what I
 can
  find on line).
  Anyway, when I enter a code into the field, I get an error Exception
  caught while loading checkcode.cfm?orgname=AA; Cannot set property
  'innerHTML' of null.
 
  Here is the code below:
 
  script
  Spry.Data.Region.debug = true;
 
  function checkorgname() {
 
  var uvalue = document.getElementById(orgname).value;
  if(uvalue.length  2) { status(''); return; }
 
 
 
 Spry.Utils.loadURL(GET,checkcode.cfm?orgname=+encodeURIComponent(uvalue),
  false, orgcheck);
  }
 
  function orgcheck(request) {
 
  var result = request.xhRequest.responseText;
 
  if(result == 0) status('You have entered an invalid code.
  Please try again!');
   else status('');
 
  }
 
  function status(str) {
 
  var resultblock = document.getElementById(resultblock);
  resultblock.innerHTML = str;
 
  }
  /script
 
  form field in question:
 
   input type=text name=orgname id=orgname size=10 required
  class=upper onKeyUp=checkorgname();  /
 
  The checkcode.cfm page works fine though. When I call it on it's own I
 get
  either a 0 or 1 depending if the orgname in the URL variable is in the
  database.
 
 
  Thanks,
 
  Bruce
 
 

 

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


Re: Script Issue

2012-12-20 Thread Raymond Camden

? Did I make a funny and not know it? ;)


On Thu, Dec 20, 2012 at 9:20 AM, Brian Thornton br...@cfdeveloper.comwrote:


 I love how raymond answers this question...
 On Dec 20, 2012 10:14 AM, Raymond Camden raymondcam...@gmail.com
 wrote:

 
  The error is on this line,
 
 var resultblock = document.getElementById(resultblock);
 
  So ensure you have a div or span with that ID.
 
 
  On Thu, Dec 20, 2012 at 9:06 AM, Bruce Sorge sor...@gmail.com wrote:
 
  
   I needed a way to check a database when someone enters a code into a
 form
   field, and I ran across an old posting from Ray Camden using SPRY
 assets
  to
   accomplish this. (I know that I should probably use AJAX or jQuery,
 but I
   have not learned these languages yet so I am stuck going off of what I
  can
   find on line).
   Anyway, when I enter a code into the field, I get an error Exception
   caught while loading checkcode.cfm?orgname=AA; Cannot set property
   'innerHTML' of null.
  
   Here is the code below:
  
   script
   Spry.Data.Region.debug = true;
  
   function checkorgname() {
  
   var uvalue = document.getElementById(orgname).value;
   if(uvalue.length  2) { status(''); return; }
  
  
  
 
 Spry.Utils.loadURL(GET,checkcode.cfm?orgname=+encodeURIComponent(uvalue),
   false, orgcheck);
   }
  
   function orgcheck(request) {
  
   var result = request.xhRequest.responseText;
  
   if(result == 0) status('You have entered an invalid
 code.
   Please try again!');
else status('');
  
   }
  
   function status(str) {
  
   var resultblock =
 document.getElementById(resultblock);
   resultblock.innerHTML = str;
  
   }
   /script
  
   form field in question:
  
input type=text name=orgname id=orgname size=10 required
   class=upper onKeyUp=checkorgname();  /
  
   The checkcode.cfm page works fine though. When I call it on it's own I
  get
   either a 0 or 1 depending if the orgname in the URL variable is in the
   database.
  
  
   Thanks,
  
   Bruce
  
  
 
 

 

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


Re: Script Issue

2012-12-20 Thread Raymond Camden

Have you looked at your web console to examine the XHR hit and see the
response?


On Thu, Dec 20, 2012 at 9:20 AM, Bruce Sorge sor...@gmail.com wrote:


 Yeah, I forgot that. Thanks. Now the issue is that when I enter a code in
 the database, I don't get any message at all. This is driving me nuts. And
 again, I know that the calling CFM file works and I also know that the
 script is calling the checkorgname.cfm file because if I change the name of
 it it throws a 404 error.

 Bruce
 On Dec 20, 2012, at 10:14 AM, Raymond Camden raymondcam...@gmail.com
 wrote:

 
  The error is on this line,
 
var resultblock = document.getElementById(resultblock);
 
  So ensure you have a div or span with that ID.
 
 


 

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


Re: Script Issue

2012-12-20 Thread Bruce Sorge

I didn't see anything that stands out. What's interesting is that if I change 
this line from this:

if(result == 0) status('You have entered an invalid code. Please try again!');
 else status('');

to this:

if(result == 0) status('You have entered an invalid code. Please try again!');
 else status('Code is valid');

no matter what code I put in, valid or invalid, I get the response Code is 
valid. I'll have to dig into this deeper to see what's going on.

Bruce


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


Re: cfobject .net assembly

2012-12-20 Thread Randy Smith

Akos,

Did you ever figure this out? I'm at the exact same spot now as you were then.

Thanks!

RLS

 wondering if anyone has experience with using cfobject with .net 
 assembly
 
 this is the testing code so far:
 
 cfset ApiDirectory = c:\windows\system32\inetsrv\
 
 cfobject type=.NETassembly=#ApiDirectory#Microsoft.Web.
 Administration.dll name=thisObj class=Microsoft.Web.Administration.
 SiteCollection
 
 cfdump var = #thisObj#
 
 This dumps out a list of methods can be used such as Add(), Delete() 
 etc
 I'm interested in the Add() method which takes 3 parameters 2 strings 
 and
 an integer like Add(param1,param2,param3)
 
 So I have:
 cfset result = thisObj.Add(somesite.com,e:\Domains\,80)
 
 cfdump var = #result#
 
 this gives:
 Object instantiation exception.
 An exception occurred while instantiating a Java object. The class 
 must not
 be an interface or an abstract class. If the class has a constructor 
 that
 accepts an argument, you must call the constructor explicitly using 
 the
 init(args) method. Error : Microsoft.Web.Administration.
 SiteCollection
 
 How can I invoke any of those methods?
 Any help would be greatly appreciated. 

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


Re: Script Issue

2012-12-20 Thread Raymond Camden

So what is result? If you use the XHR portion of your JS console you can
see it, or just plain alert() it.


On Thu, Dec 20, 2012 at 10:32 AM, Bruce Sorge sor...@gmail.com wrote:


 I didn't see anything that stands out. What's interesting is that if I
 change this line from this:

 if(result == 0) status('You have entered an invalid code. Please try
 again!');
  else status('');

 to this:

 if(result == 0) status('You have entered an invalid code. Please try
 again!');
  else status('Code is valid');

 no matter what code I put in, valid or invalid, I get the response Code is
 valid. I'll have to dig into this deeper to see what's going on.

 Bruce


 

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


Re: Script Issue

2012-12-20 Thread Bruce Sorge

No matter what I put in, I get a 1 as the result var.
On Dec 20, 2012, at 12:00 PM, Raymond Camden raymondcam...@gmail.com wrote:

 
 So what is result? If you use the XHR portion of your JS console you can
 see it, or just plain alert() it.
 
 


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


Re: Script Issue

2012-12-20 Thread Raymond Camden

Then you need to debug in your CFM.


On Thu, Dec 20, 2012 at 11:10 AM, Bruce Sorge sor...@gmail.com wrote:


 No matter what I put in, I get a 1 as the result var.
 On Dec 20, 2012, at 12:00 PM, Raymond Camden raymondcam...@gmail.com
 wrote:

 
  So what is result? If you use the XHR portion of your JS console you can
  see it, or just plain alert() it.
 
 


 

~|
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:353567
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: cfftp with SSL (Coldfusion 8)

2012-12-20 Thread James Davis

Neither CF8 or CF9 support SFTP using CFFTP. 

However, like Russ mentioned, you can use some java libraries as an 
alternative. One project I worked on that required connecting to an sftp server 
we used the apache commons-net library (commons.apache.org/net) and it worked 
like a charm. Not nearly as simple as a cfftp tag, but once I got it working, 
it's been rock solid. Being an apache project, their documentation is pretty 
good, although geared towards a java dev, so you'll have to translate it into 
your cf code. 

Good luck!

James

~|
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:353569
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 Wil Genovese

It hasn't needed any II6 extensions for the installations I've done. 


Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Dec 20, 2012, at 2:13 PM, Chad Gray cg...@careyweb.com wrote:

 
 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:353570
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 Andrew Scott

no

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


On Fri, Dec 21, 2012 at 7:13 AM, Chad Gray cg...@careyweb.com wrote:


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


CF 9 Scheduled Task Not Sending Emails

2012-12-20 Thread Torrent Girl

Hi All

I have a scheduled task that runs with no problem. It is set up to send an 
email. The email is not being sent.

Any suggestions?

TIA 

~|
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:353572
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 Andrew Scott

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



On Fri, Dec 21, 2012 at 7:18 AM, Torrent Girl moniqueb...@gmail.com wrote:


 Hi All

 I have a scheduled task that runs with no problem. It is set up to send an
 email. The email is not being sent.

 Any suggestions?

 TIA

 

~|
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:353573
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 Torrent Girl

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:353574
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 Andrew Scott

Aside from those options, something else to consider. I would assume that
there is no conditionally logic in the template, that is failing and
skipping the sending of the email.

Just another thing to double check, just to be on the safe side.

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



On Fri, Dec 21, 2012 at 7:33 AM, Torrent Girl moniqueb...@gmail.com wrote:


 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:353575
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 DURETTE, STEVEN J

You might also want to check and make sure that the email addresses you are 
sending to are valid. It could be failing on that. There is a java switch that 
will let an email go out to valid emails even if there are invalid ones, but I 
don't remember the switch at the moment.

Steve


~|
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:353576
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 Claude Schnéegans

You could also check in the logs, if something wrong happens, it should be 
tracable in the mail log.


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


Redirecting PDF documents

2012-12-20 Thread fun and learning

Just wondering if it possible to redirect a pdf document. In coldfusion, I am 
assuming no since we need to have some kind of redirect code on that particular 
page we want to redirect? 

~|
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:353578
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: CF10 and IIS

2012-12-20 Thread Andrew Scott

The only thing I can think of, is that the IIS mime and handlers are not
working globally. I can't say I have ever come across that, and to be
honest the last time I server an HTML file is well over 16 years now.

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


On Fri, Dec 21, 2012 at 8:26 AM, Chad Gray cg...@careyweb.com wrote:


 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:353580
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 Russ Michaels

You have permission issues on the website folder. Does the users group have
read, write, execite

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Dec 20, 2012 9:27 PM, Chad Gray cg...@careyweb.com wrote:


 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:353582
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 Dave Watts

 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.

Ensure that the Authenticated Users group has read/execute right on
the folder.

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


Re: Redirecting PDF documents

2012-12-20 Thread Dave Watts

 Just wondering if it possible to redirect a pdf document. In coldfusion, I am 
 assuming no since we need to have some kind of
 redirect code on that particular page we want to redirect?

I'm not sure what you're trying to accomplish, exactly. But no, PDFs
don't support redirection by default.

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:353584
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


Re: CF10 and IIS

2012-12-20 Thread Dave Watts

 How are CFM pages skipping the windows authentication?

By default, CF URLs are passed by IIS to CF before IIS checks the filesystem.

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


Re: Redirecting PDF documents

2012-12-20 Thread .jonah

Would need to be done at the web server level.

On 12/20/12 1:59 PM, Dave Watts wrote:
 Just wondering if it possible to redirect a pdf document. In coldfusion, I 
 am assuming no since we need to have some kind of
 redirect code on that particular page we want to redirect?
 I'm not sure what you're trying to accomplish, exactly. But no, PDFs
 don't support redirection by default.

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


Recommendations for audio video players

2012-12-20 Thread Rob Voyle

Hi Folks

Any recommendationns for audio/video player integration with CF9 
using cfmediaplayer

Thanks
Rob

PS the image upload/cropping etc. is workig well. thanks for all the help 


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


Re: Script Issue

2012-12-20 Thread Bruce Sorge

What is really pissing me off about this issue is that even if I copy your 
example verbatim and it does not work. I even went to the source of your 
example and copied and pasted and it did not work on my test machine. I might 
just roll it out to the production site since it's not done yet and see. What's 
weird is I can go directly to the page that is being called in the background, 
and dump the names, add the username=victor or whatever and it returns the 
value 0 which I is what it is supposed to do. Even when I just my db query and 
enter an invalid code it works fine. Just when I call it from the form it 
returns 1 every time. Frustrating. But I won't let it kick my ass.

Bruce


On Dec 20, 2012, at 12:58 PM, Raymond Camden raymondcam...@gmail.com wrote:

 
 Then you need to debug in your 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:353589
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


AJAX Issue

2012-12-20 Thread Bruce Sorge

OK, so I gave up on the Spry version of the database validation and moved onto 
AJAX (a language I really don't know a lot about but I am slowly figuring it 
out). Anyway, I have the code working the way I want with the exception that 
when the validation is done, whether the code is valid or not, the page is 
reloading and showing an overlay or something of the page. If you go to 
http://www.makeaherodonations.com/themovement/ you'll see what I am talking 
about. It's weird and I have been trying to figure this out. Here is the script:

script src=js/jquery.js type=text/javascript/script
script type=text/javascript
pic1 = new Image(16, 16); 
pic1.src = images/loader.gif;

$(document).ready(function(){

$(#orgname).change(function() { 

var usr = $(#orgname).val();

if(usr.length = 2)
{
$(#status).html('img align=absmiddle src=images/loader.gif / Checking 
Code...');

$.ajax({ 
type: POST, 
url: checkcode.cfm, 
data: orgname=+ usr, 
success: function(msg){ 

$(#status).ajaxComplete(function(event, request, settings){ 

if(msg == 'OK')
{ 
$(#orgname).removeClass('object_error'); // if necessary
$(#orgname).addClass(object_ok);
$(this).html(' img align=absmiddle src=images/accepted.png / ');
} 
else 
{ 
$(#orgname).removeClass('object_ok'); // if necessary
$(#orgname).addClass(object_error);
$(this).html(msg);
}});}});}
else
{
$(#status).html('The Code should have at least 2 characters.');
$(#orgname).removeClass('object_ok'); // if necessary
$(#orgname).addClass(object_error);
}});});

//--

/script

I think that I'll have to head to the bookstore tomorrow and get me an AJAX 
book. It seems pretty cool and something that I can use in the future.

Bruce

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


Re: AJAX Issue

2012-12-20 Thread Raymond Camden

I'll take a look, but I need to nitpick something. AJAX isn't a language.
It is simply the name of a technique used in JavaScript to communicate with
a server. Spry uses AJAX too. (But don't use Spry anymore. It's old like
Donkey Kong.)


On Thu, Dec 20, 2012 at 7:49 PM, Bruce Sorge sor...@gmail.com wrote:


 OK, so I gave up on the Spry version of the database validation and moved
 onto AJAX (a language I really don't know a lot about but I am slowly
 figuring it out). Anyway, I have the code working the way I want with the
 exception that when the validation is done, whether the code is valid or
 not, the page is reloading and showing an overlay or something of the page.
 If you go to http://www.makeaherodonations.com/themovement/ you'll see
 what I am talking about. It's weird and I have been trying to figure this
 out. Here is the script:

 script src=js/jquery.js type=text/javascript/script
 script type=text/javascript
 pic1 = new Image(16, 16);
 pic1.src = images/loader.gif;

 $(document).ready(function(){

 $(#orgname).change(function() {

 var usr = $(#orgname).val();

 if(usr.length = 2)
 {
 $(#status).html('img align=absmiddle src=images/loader.gif /
 Checking Code...');

 $.ajax({
 type: POST,
 url: checkcode.cfm,
 data: orgname=+ usr,
 success: function(msg){

 $(#status).ajaxComplete(function(event, request, settings){

 if(msg == 'OK')
 {
 $(#orgname).removeClass('object_error'); // if necessary
 $(#orgname).addClass(object_ok);
 $(this).html(' img align=absmiddle src=images/accepted.png / ');
 }
 else
 {
 $(#orgname).removeClass('object_ok'); // if necessary
 $(#orgname).addClass(object_error);
 $(this).html(msg);
 }});}});}
 else
 {
 $(#status).html('The Code should have at least 2 characters.');
 $(#orgname).removeClass('object_ok'); // if necessary
 $(#orgname).addClass(object_error);
 }});});

 //--

 /script

 I think that I'll have to head to the bookstore tomorrow and get me an
 AJAX book. It seems pretty cool and something that I can use in the future.

 Bruce

 

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


Re: AJAX Issue

2012-12-20 Thread Raymond Camden

As to your error, it is very obvious if you use the Chrome Dev Tools. I
cannot stress this enough. You *need* to learn how to use your browser dev
tools as it makes this stuff a heck of a lot easier.

I opened it up in Chrome, went to the Network panel, filtered on XHR. I
then entered 88 in the first form field.

I then saw a big ole graphic load. Why? It's obvious if you look at the
result in the Network panel. Your server returned this:

!doctype html
html
head
meta charset=UTF-8
meta name=Keywords content=The Movement, Make A Hero, makeahero.org,
veterans, disabled american veterans, veterans of forign wars, Iraq
veteran, Afghanistan veteran, disabled veteran, disabilities, the movement
DVD/
meta name=Description content=For The Movement DVD Free Download/
link type=text/css
href=Styles/Movement.csshttp://www.makeaherodonations.com/themovement/Styles/Movement.css
 rel=stylesheet
link rel=shortcut icon type=image/x-icon
href=favicon.icohttp://www.makeaherodonations.com/themovement/favicon.ico




titleThe Movement DVD Download - Information/title
/head

header
div id=head
 /div
 DIV id=navbar
 /DIV
 /header



nav
img 
src=images/MAH-ski.jpeghttp://www.makeaherodonations.com/themovement/images/MAH-ski.jpeg
 alt=The Movement Movie Poster Image /
/nav span style=color: red;The Code b 88/b is an invalid code.
Please ree-enter your code./span footer
pa href=http://www.makeahero.org; target=newimg
src=images/logo.pnghttp://www.makeaherodonations.com/themovement/images/logo.png
 alt=Make A Hero Logo //aBR /
emHelping individuals with disabilities enjoy the freedom of sports and
recreation/em/p
p class=align
Thank you for your interest in Make A Hero's first film, The Movement! If
you would like to use this film as a fund-raiser please email a href=
mailto:i...@makeahero.orghttp://www.makeaherodonations.com/themovement/mailto:i...@makeahero.org
i...@makeahero.org/a. For more information about our organization or
ways that you can support our cause, please visit a href=
http://www.makeahero.org; target=newhttp://makeahero.org/a or email a
href=mailto:i...@makeahero.orghttp://www.makeaherodonations.com/themovement/mailto:i...@makeahero.org
i...@makeahero.org/a.
/footer

/body
/html

Most likely you ONLY wanted the The code... part. Most likely your CF
code is wrapping everything with a header and footer. You need to stop
doing that. :)



On Thu, Dec 20, 2012 at 8:51 PM, Raymond Camden raymondcam...@gmail.comwrote:

 I'll take a look, but I need to nitpick something. AJAX isn't a language.
 It is simply the name of a technique used in JavaScript to communicate with
 a server. Spry uses AJAX too. (But don't use Spry anymore. It's old like
 Donkey Kong.)


 On Thu, Dec 20, 2012 at 7:49 PM, Bruce Sorge sor...@gmail.com wrote:


 OK, so I gave up on the Spry version of the database validation and moved
 onto AJAX (a language I really don't know a lot about but I am slowly
 figuring it out). Anyway, I have the code working the way I want with the
 exception that when the validation is done, whether the code is valid or
 not, the page is reloading and showing an overlay or something of the page.
 If you go to http://www.makeaherodonations.com/themovement/ you'll see
 what I am talking about. It's weird and I have been trying to figure this
 out. Here is the script:

 script src=js/jquery.js type=text/javascript/script
 script type=text/javascript
 pic1 = new Image(16, 16);
 pic1.src = images/loader.gif;

 $(document).ready(function(){

 $(#orgname).change(function() {

 var usr = $(#orgname).val();

 if(usr.length = 2)
 {
 $(#status).html('img align=absmiddle src=images/loader.gif /
 Checking Code...');

 $.ajax({
 type: POST,
 url: checkcode.cfm,
 data: orgname=+ usr,
 success: function(msg){

 $(#status).ajaxComplete(function(event, request, settings){

 if(msg == 'OK')
 {
 $(#orgname).removeClass('object_error'); // if necessary
 $(#orgname).addClass(object_ok);
 $(this).html(' img align=absmiddle src=images/accepted.png / ');
 }
 else
 {
 $(#orgname).removeClass('object_ok'); // if necessary
 $(#orgname).addClass(object_error);
 $(this).html(msg);
 }});}});}
 else
 {
 $(#status).html('The Code should have at least 2 characters.');
 $(#orgname).removeClass('object_ok'); // if necessary
 $(#orgname).addClass(object_error);
 }});});

 //--

 /script

 I think that I'll have to head to the bookstore tomorrow and get me an
 AJAX book. It seems pretty cool and something that I can use in the future.

 Bruce

 

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


Re: AJAX Issue

2012-12-20 Thread Raymond Camden

Here is a video demonstrating chrome dev tools:

http://www.raymondcamden.com/index.cfm/2011/6/15/Example-of-using-Chrome-Dev-tools-to-solve-Ajax-issues


On Thu, Dec 20, 2012 at 8:54 PM, Raymond Camden raymondcam...@gmail.comwrote:

 As to your error, it is very obvious if you use the Chrome Dev Tools. I
 cannot stress this enough. You *need* to learn how to use your browser dev
 tools as it makes this stuff a heck of a lot easier.

 I opened it up in Chrome, went to the Network panel, filtered on XHR. I
 then entered 88 in the first form field.

 I then saw a big ole graphic load. Why? It's obvious if you look at the
 result in the Network panel. Your server returned this:

 !doctype html
 html
 head
 meta charset=UTF-8
 meta name=Keywords content=The Movement, Make A Hero, makeahero.org,
 veterans, disabled american veterans, veterans of forign wars, Iraq
 veteran, Afghanistan veteran, disabled veteran, disabilities, the movement
 DVD/
 meta name=Description content=For The Movement DVD Free Download/
 link type=text/css 
 href=Styles/Movement.csshttp://www.makeaherodonations.com/themovement/Styles/Movement.css
  rel=stylesheet
 link rel=shortcut icon type=image/x-icon 
 href=favicon.icohttp://www.makeaherodonations.com/themovement/favicon.ico
 



 titleThe Movement DVD Download - Information/title
 /head

 header
 div id=head
  /div
  DIV id=navbar
  /DIV
  /header



 nav
  img 
 src=images/MAH-ski.jpeghttp://www.makeaherodonations.com/themovement/images/MAH-ski.jpeg
  alt=The Movement Movie Poster Image /
 /nav span style=color: red;The Code b 88/b is an invalid code.
 Please ree-enter your code./span footer
  pa href=http://www.makeahero.org; target=newimg src=
 images/logo.pnghttp://www.makeaherodonations.com/themovement/images/logo.png
  alt=Make A Hero Logo //aBR /
  emHelping individuals with disabilities enjoy the freedom of sports
 and recreation/em/p
  p class=align
  Thank you for your interest in Make A Hero's first film, The Movement! If
 you would like to use this film as a fund-raiser please email a href=
 mailto:i...@makeahero.orghttp://www.makeaherodonations.com/themovement/mailto:i...@makeahero.org
 i...@makeahero.org/a. For more information about our organization or
 ways that you can support our cause, please visit a href=
 http://www.makeahero.org; target=newhttp://makeahero.org/a or email 
 a 
 href=mailto:i...@makeahero.orghttp://www.makeaherodonations.com/themovement/mailto:i...@makeahero.org
 i...@makeahero.org/a.
 /footer

 /body
 /html

 Most likely you ONLY wanted the The code... part. Most likely your CF
 code is wrapping everything with a header and footer. You need to stop
 doing that. :)



 On Thu, Dec 20, 2012 at 8:51 PM, Raymond Camden 
 raymondcam...@gmail.comwrote:

 I'll take a look, but I need to nitpick something. AJAX isn't a language.
 It is simply the name of a technique used in JavaScript to communicate with
 a server. Spry uses AJAX too. (But don't use Spry anymore. It's old like
 Donkey Kong.)


 On Thu, Dec 20, 2012 at 7:49 PM, Bruce Sorge sor...@gmail.com wrote:


 OK, so I gave up on the Spry version of the database validation and
 moved onto AJAX (a language I really don't know a lot about but I am slowly
 figuring it out). Anyway, I have the code working the way I want with the
 exception that when the validation is done, whether the code is valid or
 not, the page is reloading and showing an overlay or something of the page.
 If you go to http://www.makeaherodonations.com/themovement/ you'll see
 what I am talking about. It's weird and I have been trying to figure this
 out. Here is the script:

 script src=js/jquery.js type=text/javascript/script
 script type=text/javascript
 pic1 = new Image(16, 16);
 pic1.src = images/loader.gif;

 $(document).ready(function(){

 $(#orgname).change(function() {

 var usr = $(#orgname).val();

 if(usr.length = 2)
 {
 $(#status).html('img align=absmiddle src=images/loader.gif /
 Checking Code...');

 $.ajax({
 type: POST,
 url: checkcode.cfm,
 data: orgname=+ usr,
 success: function(msg){

 $(#status).ajaxComplete(function(event, request, settings){

 if(msg == 'OK')
 {
 $(#orgname).removeClass('object_error'); // if necessary
 $(#orgname).addClass(object_ok);
 $(this).html(' img align=absmiddle src=images/accepted.png / ');
 }
 else
 {
 $(#orgname).removeClass('object_ok'); // if necessary
 $(#orgname).addClass(object_error);
 $(this).html(msg);
 }});}});}
 else
 {
 $(#status).html('The Code should have at least 2 characters.');
 $(#orgname).removeClass('object_ok'); // if necessary
 $(#orgname).addClass(object_error);
 }});});

 //--

 /script

 I think that I'll have to head to the bookstore tomorrow and get me an
 AJAX book. It seems pretty cool and something that I can use in the future.

 Bruce

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 

Re: AJAX Issue

2012-12-20 Thread Bruce Sorge

Thanks Ray, I'll look into this for sure. And yeah, I am wrapping all the pages 
in a header, footer and nab in the application.cfc. I'll switch it to an 
include in the page instead. I've been out of web development for about 4 years 
and have obviously fallen behind the knowledge curve. Thanks for the input I'll 
work on this stuff tomorrow. 

Sent from my iPhone 4S. 

On Dec 20, 2012, at 9:55 PM, Raymond Camden raymondcam...@gmail.com wrote:

 
 Here is a video demonstrating chrome dev tools:
 
 http://www.raymondcamden.com/index.cfm/2011/6/15/Example-of-using-Chrome-Dev-tools-to-solve-Ajax-issues
 
 
 On Thu, Dec 20, 2012 at 8:54 PM, Raymond Camden 
 raymondcam...@gmail.comwrote:
 
 As to your error, it is very obvious if you use the Chrome Dev Tools. I
 cannot stress this enough. You *need* to learn how to use your browser dev
 tools as it makes this stuff a heck of a lot easier.
 
 I opened it up in Chrome, went to the Network panel, filtered on XHR. I
 then entered 88 in the first form field.
 
 I then saw a big ole graphic load. Why? It's obvious if you look at the
 result in the Network panel. Your server returned this:
 
 !doctype html
 html
 head
 meta charset=UTF-8
 meta name=Keywords content=The Movement, Make A Hero, makeahero.org,
 veterans, disabled american veterans, veterans of forign wars, Iraq
 veteran, Afghanistan veteran, disabled veteran, disabilities, the movement
 DVD/
 meta name=Description content=For The Movement DVD Free Download/
 link type=text/css 
 href=Styles/Movement.csshttp://www.makeaherodonations.com/themovement/Styles/Movement.css
  rel=stylesheet
 link rel=shortcut icon type=image/x-icon 
 href=favicon.icohttp://www.makeaherodonations.com/themovement/favicon.ico
 
 
 
 
 titleThe Movement DVD Download - Information/title
 /head
 
 header
 div id=head
 /div
 DIV id=navbar
 /DIV
 /header
 
 
 
 nav
 img 
 src=images/MAH-ski.jpeghttp://www.makeaherodonations.com/themovement/images/MAH-ski.jpeg
  alt=The Movement Movie Poster Image /
 /nav span style=color: red;The Code b 88/b is an invalid code.
 Please ree-enter your code./span footer
 pa href=http://www.makeahero.org; target=newimg src=
 images/logo.pnghttp://www.makeaherodonations.com/themovement/images/logo.png
  alt=Make A Hero Logo //aBR /
 emHelping individuals with disabilities enjoy the freedom of sports
 and recreation/em/p
 p class=align
 Thank you for your interest in Make A Hero's first film, The Movement! If
 you would like to use this film as a fund-raiser please email a href=
 mailto:i...@makeahero.orghttp://www.makeaherodonations.com/themovement/mailto:i...@makeahero.org
 i...@makeahero.org/a. For more information about our organization or
 ways that you can support our cause, please visit a href=
 http://www.makeahero.org; target=newhttp://makeahero.org/a or email 
 a 
 href=mailto:i...@makeahero.orghttp://www.makeaherodonations.com/themovement/mailto:i...@makeahero.org
 i...@makeahero.org/a.
 /footer
 
 /body
 /html
 
 Most likely you ONLY wanted the The code... part. Most likely your CF
 code is wrapping everything with a header and footer. You need to stop
 doing that. :)
 
 
 
 On Thu, Dec 20, 2012 at 8:51 PM, Raymond Camden 
 raymondcam...@gmail.comwrote:
 
 I'll take a look, but I need to nitpick something. AJAX isn't a language.
 It is simply the name of a technique used in JavaScript to communicate with
 a server. Spry uses AJAX too. (But don't use Spry anymore. It's old like
 Donkey Kong.)
 
 
 On Thu, Dec 20, 2012 at 7:49 PM, Bruce Sorge sor...@gmail.com wrote:
 
 
 OK, so I gave up on the Spry version of the database validation and
 moved onto AJAX (a language I really don't know a lot about but I am slowly
 figuring it out). Anyway, I have the code working the way I want with the
 exception that when the validation is done, whether the code is valid or
 not, the page is reloading and showing an overlay or something of the page.
 If you go to http://www.makeaherodonations.com/themovement/ you'll see
 what I am talking about. It's weird and I have been trying to figure this
 out. Here is the script:
 
 script src=js/jquery.js type=text/javascript/script
 script type=text/javascript
 pic1 = new Image(16, 16);
 pic1.src = images/loader.gif;
 
 $(document).ready(function(){
 
 $(#orgname).change(function() {
 
 var usr = $(#orgname).val();
 
 if(usr.length = 2)
 {
 $(#status).html('img align=absmiddle src=images/loader.gif /
 Checking Code...');
 
 $.ajax({
 type: POST,
 url: checkcode.cfm,
 data: orgname=+ usr,
 success: function(msg){
 
 $(#status).ajaxComplete(function(event, request, settings){
 
 if(msg == 'OK')
 {
 $(#orgname).removeClass('object_error'); // if necessary
 $(#orgname).addClass(object_ok);
 $(this).html(' img align=absmiddle src=images/accepted.png / ');
 }
 else
 {
 $(#orgname).removeClass('object_ok'); // if necessary
 $(#orgname).addClass(object_error);
 $(this).html(msg);
 }});}});}
 else
 {
 $(#status).html('The Code should have at least 2 characters.');