show if condition?

2002-12-15 Thread Dave Lyons
Any good tutorials or scripts that explain how to display page elements depending on the person either being logged in or by their password level? In asp it would be like this % MM_authorizedUsers=3 MM_grantAccess=false If Session(MM_Username) Then If (false Or

Re: show if condition?

2002-12-15 Thread Charlie Griefer
check http://www.easycfm.com I believe they have a tutorial on creating password-protected areas. - Original Message - From: Dave Lyons [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, December 15, 2002 2:05 AM Subject: show if condition? Any good tutorials or scripts

RE: For the gurus: Question about state management with CLIENT sc ope

2002-12-15 Thread paul smith
Well guys, looking at the numbers in my app, I see I could reduce the 31ms spent maintaining state using client variables if I used session variables instead, but I would be much happier if I could reduce the 1625ms spent doing a full-text search using SQL7 by 10%. best, paul At 09:55 PM

CFerror

2002-12-15 Thread Tim Laureska
This must be easy but. if I have reference to an error display page in the application.cfm file such as: cferror type=request template=error_page.cfm mailto=[EMAIL PROTECTED] how can I get an email sent to the administrator with the error details? I tried putting a CFMail tag in the

RE: Page is Loading message...

2002-12-15 Thread Peter Bagnato
Thanks, Dave! Your code works PERFECTLY Peter Bagnato -Original Message- From: Dave Babbitt [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 11:51 AM To: CF-Talk Subject: RE: Page is Loading message... Importance: High body !--- Your header

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
Why use a pop-up? When the form's submitted and validated, just output the preview page, passing all values through with CF. Gyrus [EMAIL PROTECTED] work: http://www.tengai.co.uk play: http://www.norlonto.net PGP key available - Original Message - From: Russ [EMAIL PROTECTED] To: CF-Talk

RE: Login/Password screen

2002-12-15 Thread Kola Oyedeji
Why is that? Is CFCONTENT resource intensive? Kola For example, put all of your images in a folder that is not within the wwwroot and request them like this: img src=getImage.cfm?imagePath=storeFront/header.gif And then in the CFM use CFCONTENT to send back the image.

Parsing XML with CF 4.5

2002-12-15 Thread Frank Mamone
I am receiving this XML packet and I need to parse out the Payload. The XML is not standard as it contains the DTD line. MSXML parser works fine if I remove that line. Is there a workaround? ?xml version=1.0? !DOCTYPE wctp-Operation SYSTEM http://dtd.wctp.org/wctp-dtd-v1r1.dtd; wctp-Operation

RE: Login/Password screen

2002-12-15 Thread Samuel Neff
It's not the cfcontent is resource intensive, but using it for security like I suggested causes 5-10 times as many requests to go through CF whereas before they would just go to the web server. Typical request for CFM page = one request to CF. Request for CFM page with all images going through CF

RE: Parsing XML with CF 4.5

2002-12-15 Thread Samuel Neff
Use regexp or find -Original Message- From: Frank Mamone [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 1:35 PM To: CF-Talk Subject: Parsing XML with CF 4.5 I am receiving this XML packet and I need to parse out the Payload. The XML is not standard as it contains

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
Because it's a preview for that purpose--to PREview it to ensure that what's being sent out is correct. I want the users to be able to preview the letter as it's being sent so they can see if there are errors, see if they're sending the correct content, make sure what they write doesn't overlap

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
- Original Message - From: Russ [EMAIL PROTECTED] Because it's a preview for that purpose--to PREview it to ensure that what's being sent out is correct. --- Still not clear why this has to be in a pop-up. In some apps I do, I have previews of content before

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
Because it's a preview for that purpose--to PREview it to ensure that what's being sent out is correct. --- Still not clear why this has to be in a pop-up. Really, WHY is irrelevant. It's the fact that it's going to be that way because it's been found to work

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
- Original Message - From: Russ [EMAIL PROTECTED] Really, WHY is irrelevant. It's the fact that it's going to be that way because it's been found to work the best for this audience and it's their request. --- Why is central. If it's down to the idiosyncratic

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
Why is central. If it's down to the idiosyncratic preferences of a client you can't argue with, or the results of extensive user testing that you likewise can't really argue with - well, there's no argument! There's a reason that I posted my question the way that it was posted. There

RE: Login/Password screen

2002-12-15 Thread Kola Oyedeji
Kevin Thanks for the explanation. I didn't realise this was so simple. What advantage (if any) does rolling your own login page in coldfusion have over this? Kola -Original Message- From: Kevin Graeme [mailto:[EMAIL PROTECTED]] Sent: 13 December 2002 21:45 To: CF-Talk Subject: RE:

RE: how do i do this in cf?

2002-12-15 Thread Andy Ousterhout
How about: cfset Age = year(Now()) - year(BDay) I didn't test this. Andy -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 5:22 PM To: CF-Talk Subject: how do i do this in cf? I need to take a user entered date (date of birthday) (ex:

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
Clients, eh? As for using the TARGET attribute, I assume you can set this programmatically with JS, like ACTION, so you could target the form at the preview popup by default, then set a JS var in the opener from within the popup if 'Confirm' is pressed, thus alerting the submit script to make the

Re: how do i do this in cf?

2002-12-15 Thread Jesse Houwing
Andy Ousterhout wrote: How about: cfset Age = year(Now()) - year(BDay) That almost works... but if someones birthday it the 15th of march, and you're doing the comparison before the 14th, then you'll make that person 1 year to old in your system, so you need to compensate for that. Jesse

Re: Login/Password screen

2002-12-15 Thread Jann VanOver
Cross platform/cross browser. If you have people using non-microsoft browsers, server authentication can be problematic. Rolling your own with CF can more easily be made friendly for all heterogeneous situations. And could give you one app that could be run on Windoze, Linux, and MacOSX (if

Re: Login/Password screen

2002-12-15 Thread Jochem van Dieten
Jann VanOver wrote: Cross platform/cross browser. No problem. If you have people using non-microsoft browsers, server authentication can be problematic. Just stick to Basic HTTP authentication (RFC 2617), I have yet to see the browser that doesn't support it. But if you use NTLM, you are

RE: Login/Password screen

2002-12-15 Thread Kola Oyedeji
Samuel Thanks for pointing that out for me. KOla -Original Message- From: Samuel Neff [mailto:[EMAIL PROTECTED]] Sent: 15 December 2002 18:39 To: CF-Talk Subject: RE: Login/Password screen It's not the cfcontent is resource intensive, but using it for security like I

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Jon Hall
Your making it to complex I think. Just submit the form using target=new. Something like this... script function setFormParams(elem, type) { if (type == 'preview') { elem.action = 'letterPreview.cfm'; elem.target = 'new'; else if (type == 'complete') { elem.action =

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
- Original Message - From: Jon Hall [EMAIL PROTECTED] Your making it to complex I think. Just submit the form using target=new. Something like this... script function setFormParams(elem, type) { if (type == 'preview') { elem.action = 'letterPreview.cfm'; elem.target =

RE: CFerror

2002-12-15 Thread Tilbrook, Peter
Try something like this in your error_page.cfm file: cfparam name=Error.MailTo default=[EMAIL PROTECTED] cfif Error.MailTo NEQ cfmail to=#Error.MailTo# from=[EMAIL PROTECTED] subject=Error on page #Error.Template# type=html pError Date/Time: #Error.DateTime# pUser's

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
I did find this, but want to try Jon's way: http://www.designf1.webcentral.com.au/tutorials/form008.html I'll be plugging away again shortly and will let you know my results... R -Original Message- From: Gyrus [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 4:37 PM To:

RE: CFerror

2002-12-15 Thread Joe Eugene
I tried putting a CFMail tag in the error_page.cfm file, but that doesn't do it I am not sure..if you can use CFMAIL in the exception handler page. try prefixing variables with cferror. However..this is what i have done.. put the code try-catch-exception handler.. and you can email the

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Jon Hall
The opener stays should stay as is. There is a problem with my code though that I didn't see until now. The elem.target should be changed to '' if elem.type = complete, because if the close the window after previewing, the target needs to be reset. Also the onclick event may need to return true

mySQL CF

2002-12-15 Thread Rick Faircloth
Hi, all. I'm learning to use mySQL with CF instead of Access... Access had a yes/no field type...in mySQL, I'm using tinyint...is that appropriate? In Access, a value of Yes passed in a checkbox formfield put a 1 value in the field with a CFINSERT... Now, the value has been changed to 1 when

RE: mySQL CF

2002-12-15 Thread Mark A. Kruger - CFG
Rick, You should put in a zero in my opinion. 1 = true and 0 = false. Using tinyint in this way is fairly common on most DB platforms. -Mark -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 6:40 PM To: CF-Talk Subject: mySQL CF Hi,

Upload insert ?

2002-12-15 Thread Dave Lyons
I have ? on uploading pix I have tried both hand coding following the tutorial on macromedia and using Massimo's extension. And I have looked at sever tutorials but they only explain the upload part, what about the insert the file path into the db? I know it sounds silly but its just not working.

RE: mySQL CF

2002-12-15 Thread Rick Faircloth
Thanks, Mark. I guess the zerofill option is there to prevent a null, if desired? Rick -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 8:37 PM To: CF-Talk Subject: RE: mySQL CF Rick, You should put in a zero in my opinion. 1

RE: For the gurus: Question about state management with CLIENT sc ope

2002-12-15 Thread Stacy Young
I'm looking forward to replicated sessions on CFMX with J2EE...and hope they properly add the capability in Enterprise. As for client variables I still use them in some instancesas to whether there's a DB hit on every page...it may only happen when client values change. I remember doing a

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Jon Hall
Resend...didn't see it hit the list, sry if it's a repeat The opener stays should stay as is. There is a problem with my code though that I didn't see until now. The elem.target should be changed to '' if elem.type = complete, because if the close the window after previewing, the target needs to

RE: For the gurus: Question about state management with CLIENT sc ope

2002-12-15 Thread Tilbrook, Peter
Dave, is using the JSessionID a reasonable work around (in Session scope)? Do we still need CFID/CFToken (or URLToken) to be appended to URL's or embedded in forms? == Peter Tilbrook Project Officer Strategic Development Australian Building Codes Board Department of Industry, Tourism and

test

2002-12-15 Thread Joe Eugene
test ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread S . Isaac Dealey
Also the onclick event may need to return true for the form to actually submit. I didn't test this :) onclick=setFormParams(this.form, 'complete'); return true; My understanding / experience is that an onclick event only prevents a form from submitting when it's in a submit button with

RE: Upload insert ?

2002-12-15 Thread Josh Trefethen
When you use cffile to upload a file to the server, there is a structure of file info that is available... cffile.serverFile contains the filename of the file saved on the server Just write that variable to your database after you upload the file and your set! HTH -- Josh Trefethen :[

RE: mySQL CF

2002-12-15 Thread Mark A. Kruger - CFG
That's the way I do it. -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 8:15 PM To: CF-Talk Subject: RE: mySQL CF Thanks, Mark. I guess the zerofill option is there to prevent a null, if desired? Rick -Original Message-

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
Okay, I've gotten it to work now... Javascript as follows: script language=JavaScript type=text/JavaScript function Preview() { //'LetterPreview','toolbar=yes,location=yes,status=yes,menubar=yes,scrol lbars=yes,resizable=yes' var previewWindow; previewWindow =

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
Sorry... Outlook snafu; probably my fault, entirely... Okay, I've gotten it to work now... Javascript as follows: script language=JavaScript type=text/JavaScript function Preview() { //'LetterPreview','toolbar=yes,location=yes,status=yes,menubar=yes,scrol lbars=yes,resizable=yes' var

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Jim Davis
-Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 11:04 PM To: CF-Talk Subject: Re: Mildly OT: JS, Form, Passing Vars Also the onclick event may need to return true for the form to actually submit. I didn't test this :)

RE: mySQL CF

2002-12-15 Thread Matt Robertson
Rick, I noticed you mention that you use CFINSERT. From your earlier postings I know you are on CF 4.5x, as I am. You're likely to discover that CFINSERT and/or CFUPDATE sometimes blow sky-high on CF 4.5x (at least) when working with mySQL (3.23 for sure, and maybe 4.0x). In threads on the

OT - Dreamweaver 4 Trial

2002-12-15 Thread Jillian Carroll
Sorry for the OT post, but I'm wondering if anybody happens to have a copy of Dreamweaver 4 (30 day trial) still kicking around? -- Jillian ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription:

RE: What does U2 actually update?

2002-12-15 Thread Anthony Wong
Hi mike, does it work with Apache 2.0.41 and above only or do you mean all versions till 2.0.42? A -Original Message- From: Haggerty, Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 10:45 PM To: CF-Talk Subject: RE: What does U2 actually update? Read the release notes.