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
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
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
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
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
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
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.
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
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
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
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
- 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
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
- 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
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
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:
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:
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
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
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
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
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
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 =
- 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 =
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
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:
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
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
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
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,
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.
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
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
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
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
~|
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
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
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
:[
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-
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 =
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
-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 :)
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
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:
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.
45 matches
Mail list logo