Re: Where to put your code

2010-11-13 Thread Paul Alkema

I second this. : )

On Fri, Nov 12, 2010 at 8:05 PM, James Holmes james.hol...@gmail.comwrote:


 I'd argue that CF didn't allow for well written applications before
 CFCs came along.

 --
 WSS4CF - WS-Security framework for CF
 http://wss4cf.riaforge.org/



 On 13 November 2010 02:16, Dave Watts dwa...@figleaf.com wrote:
  Functions existed well before CFCs - does that mean that
  well-written applications predating the use of CFCs are now
  poorly-written?

 

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


Getting AD logged in user

2010-11-13 Thread Robert Filipovich

So what I want to do is see the logged in AD username from an intranet user 
hitting my page, so that I can make queries based on that information without 
them having to log in again.  I have done several things that I thought should 
work.  I have Annonymous off and windows auth turned on in IIS.  I have set 
NTFS permissions on the directory.  The Intranet user is allowed to the site 
and non are not, but the AUTH_USER is never populated unless I force them to 
log in with browser prompt.  I know there are ways to do it as we have a 3rd 
party CFML app in our environment that recognizes you and passes you through.  
Any ideas on the process to take to do this.  I have tried also redirets to 
other pages to see if it populates it then.

Thanks in advance,
/Robert 

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


Re: Where to put your code

2010-11-13 Thread Dave Watts

 I'd argue that CF didn't allow for well written applications before
 CFCs came along.

That's absurd on its face. There are no well-written applications in
any procedural languages, then? You need OO for a well-written
application? Operating systems are written in C - nothing well-written
in there?

CFCs, OO, etc - these are things to help you map concepts outside of
your program to the program itself. They are aids to the programmer.
They may help programmers who are using shared concepts work together.
They are not essential for good programming. Nice to have, maybe - but
not essential.

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


RE: CF Blog software

2010-11-13 Thread Russ Michaels

This new function

-Original Message-
From: Sean Corfield [mailto:seancorfi...@gmail.com] 
Sent: 13 November 2010 07:44
To: cf-talk
Subject: Re: CF Blog software


On Thu, Nov 11, 2010 at 1:40 AM, Russ Michaels r...@michaels.me.uk wrote:
 could we have an example ?

An example of what?
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood



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


Re: CF Blog software

2010-11-13 Thread James Holmes

http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS61C07B60-3D65-4d71-8F2A-8411D8010E60.html

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 13 November 2010 20:19, Russ Michaels r...@michaels.me.uk wrote:

 This new function

 -Original Message-
 From: Sean Corfield [mailto:seancorfi...@gmail.com]
 Sent: 13 November 2010 07:44
 To: cf-talk
 Subject: Re: CF Blog software


 On Thu, Nov 11, 2010 at 1:40 AM, Russ Michaels r...@michaels.me.uk wrote:
 could we have an example ?

 An example of what?
 --
 Sean A Corfield -- (904) 302-SEAN
 Railo Technologies, Inc. -- http://getrailo.com/
 An Architect's View -- http://corfield.org/

 If you're not annoying somebody, you're not really alive.
 -- Margaret Atwood



 

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


cf8, flex and mxml files

2010-11-13 Thread rex

I have CF8.0.1, and when I request an mxml file, it compiles to a 
actionscript/swf a la FLEX, and I get the flash file.

When I have a missing CFM file, I get a 404.

But, when I have a missing MXML file, I get a 500 server error, and I 
get an error message that displays the full system path:


--
Compilation Results

Errors, warnings or exceptions were found while compiling 
/yyy/zzz/xxx/webroot/sss.mxml. Visit the online Flex documentation or 
API reference for further information.



1 Exception found.

Exception java.io.FileNotFoundException
File not found: /yyy/zzz/xxx/webroot/sss.mxml

---

How do I make it generate a friendly 404 error, or at least not show the 
system path?

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


Coldfusion and Jquery UI Dialog

2010-11-13 Thread fun and learning

HI All -

I am trying to create a login popup form using Jquery UI Dialog plugin and 
coldfusion. I am not able to understand how to authenticate the user on the 
popup. Whenever I say login, the form is submitted with form variables appended 
to the url. Can anyone let me know the flow that has to be followed? Below is 
the code

!DOCTYPE html
html lang=en
head
meta charset=utf-8
titlejQuery UI Dialog - Modal form/title
link rel=stylesheet href=../../themes/base/jquery.ui.all.css
script src=../../jquery-1.4.3.js/script
script src=../../external/jquery.bgiframe-2.1.2.js/script
script src=../../ui/jquery.ui.core.js/script
script src=../../ui/jquery.ui.widget.js/script
script src=../../ui/jquery.ui.mouse.js/script
script src=../../ui/jquery.ui.button.js/script
script src=../../ui/jquery.ui.draggable.js/script
script src=../../ui/jquery.ui.position.js/script
script src=../../ui/jquery.ui.resizable.js/script
script src=../../ui/jquery.ui.dialog.js/script
script src=../../ui/jquery.effects.core.js/script
link rel=stylesheet href=../demos.css
style
body { font-size: 62.5%; }
label, input { display:block; }
input.text { margin-bottom:12px; width:95%; padding: .4em; }
fieldset { padding:0; border:0; margin-top:25px; }
h1 { font-size: 1.2em; margin: .6em 0; }
div#users-contain { width: 350px; margin: 20px 0; }
div#users-contain table { margin: 1em 0; border-collapse: 
collapse; width: 100%; }
div#users-contain table td, div#users-contain table th { 
border: 1px solid #eee; padding: .6em 10px; text-align: left; }
.ui-dialog .ui-state-error { padding: .3em; }
.validateTips { border: 1px solid transparent; padding: 0.3em; }
/style
script
$(function() {
// a workaround for a flaw in the demo system 
(http://dev.jqueryui.com/ticket/4375), ignore!
$( #dialog:ui-dialog ).dialog( destroy );

var name = $( #username ),
//email = $( #email ),
password = $( #password ),
allFields = $( [] ).add( name ).add( password ),
tips = $( .validateTips );

function updateTips( t ) {
tips
.text( t )
.addClass( ui-state-highlight );
setTimeout(function() {
tips.removeClass( ui-state-highlight, 1500 );
}, 500 );
}

function checkLength( o, n, min, max ) {
if ( o.val().length  max || o.val().length  min ) {
o.addClass( ui-state-error );
updateTips( Length of  + n +  must be 
between  +
min +  and  + max + . );
return false;
} else {
return true;
}
}

function checkRegexp( o, regexp, n ) {
if ( !( regexp.test( o.val() ) ) ) {
o.addClass( ui-state-error );
updateTips( n );
return false;
} else {
return true;
}
}

$( #dialog-form ).dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons: {
Create an account: function() {
var bValid = true;
allFields.removeClass( ui-state-error 
);

//bValid = bValid  checkLength( name, 
username, 3, 16 );
bValid = bValid  checkLength( 
username, username, 6, 80 );
bValid = bValid  checkLength( 
password, password, 5, 16 );

//bValid = bValid  checkRegexp( name, 
/^[a-z]([0-9a-z_])+$/i, Username may consist of a-z, 0-9, underscores, begin 
with a letter. );
// From jquery.validate.js (by joern), 
contributed by Scott Gonzalez: 
http://projects.scottsplayground.com/email_address_validation/
bValid = bValid  checkRegexp( 
username, 

Re: Where to put your code

2010-11-13 Thread Gerald Guido

 I'd argue that CF didn't allow for well written applications before CFCs
came along.

Swapping out well written applications for well made tools, I would
argue that there were no well made tools before the advent of fire, flint,
copper, bronze, iron, steel, interchangeable parts, computers etc. etc
extrapolate, rearrange and fill in the blanks as needed.

Humans are just as smart/ingenious/resourceful/creative (and of course, the
flip side dumb, foolish, flawed etc) as they were since the beginning of
recorded history. We just stand on the shoulders of those who came before
us.

G!


On Fri, Nov 12, 2010 at 8:05 PM, James Holmes james.hol...@gmail.comwrote:


 I'd argue that CF didn't allow for well written applications before
 CFCs came along.

 --
 WSS4CF - WS-Security framework for CF
 http://wss4cf.riaforge.org/



 On 13 November 2010 02:16, Dave Watts dwa...@figleaf.com wrote:
  Functions existed well before CFCs - does that mean that
  well-written applications predating the use of CFCs are now
  poorly-written?

 

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


Re: Where to put your code

2010-11-13 Thread James Holmes

When was the last time you wrote a web app with a flint axe?

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 14 November 2010 12:01, Gerald Guido gerald.gu...@gmail.com wrote:

 I'd argue that CF didn't allow for well written applications before CFCs
 came along.

 Swapping out well written applications for well made tools, I would
 argue that there were no well made tools before the advent of fire, flint,
 copper, bronze, iron, steel, interchangeable parts, computers etc. etc
 extrapolate, rearrange and fill in the blanks as needed.

 Humans are just as smart/ingenious/resourceful/creative (and of course, the
 flip side dumb, foolish, flawed etc) as they were since the beginning of
 recorded history. We just stand on the shoulders of those who came before
 us.

 G!


 On Fri, Nov 12, 2010 at 8:05 PM, James Holmes james.hol...@gmail.comwrote:


 I'd argue that CF didn't allow for well written applications before
 CFCs came along.

 --
 WSS4CF - WS-Security framework for CF
 http://wss4cf.riaforge.org/



 On 13 November 2010 02:16, Dave Watts dwa...@figleaf.com wrote:
  Functions existed well before CFCs - does that mean that
  well-written applications predating the use of CFCs are now
  poorly-written?



 

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


Re: Where to put your code

2010-11-13 Thread Gerald Guido

When was the last time you wrote a web app with a flint axe?

Right around PHP 3  or CF 2  :-)

G!

On Sun, Nov 14, 2010 at 12:02 AM, James Holmes james.hol...@gmail.comwrote:


 When was the last time you wrote a web app with a flint axe?

 --
 WSS4CF - WS-Security framework for CF
 http://wss4cf.riaforge.org/



 On 14 November 2010 12:01, Gerald Guido gerald.gu...@gmail.com wrote:
 
  I'd argue that CF didn't allow for well written applications before
 CFCs
  came along.
 
  Swapping out well written applications for well made tools, I would
  argue that there were no well made tools before the advent of fire,
 flint,
  copper, bronze, iron, steel, interchangeable parts, computers etc.
 etc
  extrapolate, rearrange and fill in the blanks as needed.
 
  Humans are just as smart/ingenious/resourceful/creative (and of course,
 the
  flip side dumb, foolish, flawed etc) as they were since the beginning of
  recorded history. We just stand on the shoulders of those who came before
  us.
 
  G!
 
 
  On Fri, Nov 12, 2010 at 8:05 PM, James Holmes james.hol...@gmail.com
 wrote:
 
 
  I'd argue that CF didn't allow for well written applications before
  CFCs came along.
 
  --
  WSS4CF - WS-Security framework for CF
  http://wss4cf.riaforge.org/
 
 
 
  On 13 November 2010 02:16, Dave Watts dwa...@figleaf.com wrote:
   Functions existed well before CFCs - does that mean that
   well-written applications predating the use of CFCs are now
   poorly-written?
 
 
 
 

 

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


Re: Where to put your code

2010-11-13 Thread James Holmes

Or any version of Perl...

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 14 November 2010 13:40, Gerald Guido gerald.gu...@gmail.com wrote:

When was the last time you wrote a web app with a flint axe?

 Right around PHP 3  or CF 2  :-)

 G!

 On Sun, Nov 14, 2010 at 12:02 AM, James Holmes james.hol...@gmail.comwrote:


 When was the last time you wrote a web app with a flint ax

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


Re: Coldfusion and Jquery UI Dialog

2010-11-13 Thread James Holmes

Have you tried putting method=post on the form (and an action of
it's supposed to go somewhere else)?

form id=dialog-form title=Login method=post action=login_page_here.cfm
--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 14 November 2010 10:58, fun and learning funandlrnn...@gmail.com wrote:

 HI All -

 I am trying to create a login popup form using Jquery UI Dialog plugin and 
 coldfusion. I am not able to understand how to authenticate the user on the 
 popup. Whenever I say login, the form is submitted with form variables 
 appended to the url. Can anyone let me know the flow that has to be followed? 
 Below is the code

 form id=dialog-form title=Login
        h3Login/h3


        !--- form ---
        fieldset

                input type=text name=username id=username 
 value=username/

                input type=password name=password id=password 
 value=Password /

                input type=submit name=btn_login id=btn_login 
 value=Login

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