Ok - so I have several standards I use that I'd like to abstract into a more
global format. Like, to always capitalize the first letter of a string I use
this method frequently:
#UCase(Left(LCase(str), 1))##Mid(LCase(str), 2, Len(LCase(str)))#
I do LCase() the string before capitalizing the
CapFirst(string)
Returns the string with the first character of each word capitalized.
http://www.cflib.org/udf.cfm?ID=9
Nice one RayC.
WG
-Original Message-
From: Rahmin Pavlovic [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2003 17:00
To: CF-Talk
Subject: CF: OOP, Custom
Dave W:
While this list is great and all, may I suggest that you spend more time
reading the documentation instead? I'm being completely serious.
I wouldn't want to learn a new programming language by reading a mailing
list - you'll learn bits and pieces, but not the core concepts.
I have a series of numeric codes that can be up to 5-digits
I'm keeping it as an integer to keep the table small
but when I display it, I need to lead w/zero's, padding the number up to
5-digits
So 6 becomes 6, and 374 becomes 00374
Right now I'm looping through the length of each string,
lowercase p for parent
but it's better to drill down from the top: top.framename.location
- Original Message -
From: Darren Adams [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 1:40 PM
Subject: [offtopic] Javascript to open a url in another frame
When you say 'top', do you mean the top level frameset in the JS hierarchy,
or do you mean the first frame that's visually displayed vertically?
Changing the top level JS frameset may give you a security issue, and/or
including pages from separate domains within your frameset. JS allows very
Ya - the cookie dies once the user kills the browser session
- Original Message -
From: Tangorre,Michael [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 1:26 PM
Subject: RE: Session Swapping
The cookie is never written to the user's hard disk... they
Has anyone here experienced Macs taking a /really/ long time loading some
.cfm documents, but not others?
Any thoughts on why that is? It can be really frustrating when you're trying
to capture an onLoad event..
~|
Archives:
You have to POST a form or build a GET string - a new page has to load
either way.
If you want to eliminate the 'appearance' of a new page load, you can build
a frameset with a hidden frame, or use a 1x1 IFRAME to load the newly
deserialized content, which you can then 're-grab' from your JS.
You have to close it from the page that opened it - the next page won't know
that popup exists.
Try
BODY onUnLoad=if(windowname windowname.document)windowname.close()
- Original Message -
From: Eric Hoffman [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, January 22,
I recently migrated my CF sites from NT/Access to a Linux/MySQL box running
Chilisoft.
Everything runs alot faster, but I get this error when the user is idle for
too long:
[TCX][MyODBC]Lost connection to MySQL server during query
Can someone suggest a painless way to reconnect to MySQL in this
[TCX][MyODBC]Lost connection to MySQL server during query
Can someone suggest a painless way to reconnect to MySQL in this case?
Wrap the call in a try/catch block that retrys till it works.
Ugh, so I'd have to do that for all my queries? Lame.
I was hoping for something more along the
Form elements always rise to the top..
You have to do something tricky like make the form field disappear and/or
replace it with a screenshot of the form field - just when the menu is over
it..
Or redesign your HTML
- Original Message -
From: Bosky, Dave [EMAIL PROTECTED]
To: CF-Talk
Are you inserting large blobs by any chance?
I'm not, but I do think the problem is somewhere in the CF administrator
since the mySQL server is on the same machine. Maybe the CF server is on a
remote machine, but either way I'm looking into this. Thanks for the tips.
So you think I should find a better way than what I am trying because its
very, very wrong :)
I haven't been following, but I know paypal makes you send the returning
page as a URL param, and you can attach your own params to that URL.
The one I did works fine - looks like:
15 matches
Mail list logo