RE: Client Variable Overhead CFMX/CF5

2004-05-18 Thread Stacy Young
Exactly what we did...haven't seen any issues.

Cheers!

Stace

  _  

From: Dave Carabetta [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 18, 2004 11:42 AM
To: CF-Talk
Subject: RE: Client Variable Overhead CFMX/CF5

>Hey,
>
>Does anyone know of why a serious performance lapse between ColdFusion
5 
>and
>ColdFusion MX exists when using a Database to store Client Variables.
In 
>CF5
>we found no real performance degredation from using DB over Registry.
>
>In MX when using the Registry parsing completion is around 0-16ms but
when
>switched to a DB it can bloat to over 2000ms...
>
>This is ONLY for the cfapplication tag within an Application.cfm
template.
>
>Querying the DB directly via QA has no performance lapse at all.
>

Have you tried testing against CDATA and CGLOBAL tables with indexes on
the 
CFID column? We did that (along with changing the column type from CHAR
to 
VARCHAR2 (VARCHAR in SQL Server) and were able to see some nice
performance 
gains.

I know that doesn't directly answer your question, but I figured you'd
might 
want a potential solution because there's nothing we can really do about

it!!

Regards,
Dave.



AVIS IMPORTANTWARNING Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Client Variable Overhead CFMX/CF5

2004-05-18 Thread Dave Carabetta
>Hey,
>
>Does anyone know of why a serious performance lapse between ColdFusion 5 
>and
>ColdFusion MX exists when using a Database to store Client Variables. In 
>CF5
>we found no real performance degredation from using DB over Registry.
>
>In MX when using the Registry parsing completion is around 0-16ms but when
>switched to a DB it can bloat to over 2000ms...
>
>This is ONLY for the cfapplication tag within an Application.cfm template.
>
>Querying the DB directly via QA has no performance lapse at all.
>

Have you tried testing against CDATA and CGLOBAL tables with indexes on the 
CFID column? We did that (along with changing the column type from CHAR to 
VARCHAR2 (VARCHAR in SQL Server) and were able to see some nice performance 
gains.

I know that doesn't directly answer your question, but I figured you'd might 
want a potential solution because there's nothing we can really do about 
it!!

Regards,
Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Client Variable Overhead CFMX/CF5

2004-05-18 Thread Robertson-Ravo, Neil (RX)
Hey,

Does anyone know of why a serious performance lapse between ColdFusion 5 and
ColdFusion MX exists when using a Database to store Client Variables. In CF5
we found no real performance degredation from using DB over Registry.

In MX when using the Registry parsing completion is around 0-16ms but when
switched to a DB it can bloat to over 2000ms...

This is ONLY for the cfapplication tag within an Application.cfm template.

Querying the DB directly via QA has no performance lapse at all.

TIA

Neil

This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cfmx & cf5

2004-02-27 Thread kelly
Tell me if there is an easier way to do this. I have a list of serial
numbers (ex. 23T2, 23T3, 23T452365789). I need to check
and see if an of the numbers are within 5 digits of each other. So, I was
taking the prefix and suffix:


and comparing them to records in the db.

Is there a way to do this without a query? Can I compare using an if
statement?

If there are serial numbers within 5 digits, I need to flag the record.

> You can't use expressions inside hashes on CF5 and less.  That's a
> CFMX-only
> thing.  You can wrap your expressions in a function (int() or evaluate()),
> or assign them to temp variables and use them in your query.  For example:
>
> 
> select
> count(*) as MyCount
> from claimdetails where serialnum >= '#prefix##int(suffix - 5)#'
> AND serialnum
> <= '#prefix##int(suffix + 5)#'
> 
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Friday, February 27, 2004 10:46 AM
>> To: CF-Talk
>> Subject: cfmx & cf5
>>
>> I have a query that works fine on MX but shows this error on 5:
>> Invalid parser construct found on line 117 at position 55.
>> ColdFusion was
>> looking at the following text:
>> -
>>
>> Here is my query:
>>
>> 
>> select
>> count(*) as MyCount
>> from claimdetails where serialnum >= '#prefix##suffix - 5#'
>> AND serialnum
>> <= '#prefix##suffix + 5#'
>> 
>>
>> How do I format for 5 and MX?
>>
>> Thanks!
>>
>>
>>
>>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cfmx & cf5

2004-02-27 Thread Dave Watts
> I'm not sure CF 5 allows this kind of math:
> #suffix + 5#

It doesn't. I believe that very early versions of CF (1, 2) did allow this,
and CFMX does.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cfmx & cf5

2004-02-27 Thread Charlie Griefer
#suffix-5# and #suffix+5# didn't work on CF5

you'd need to do a   or #evaluate(suffix -5)#

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, February 27, 2004 11:45 AM
Subject: cfmx & cf5

> I have a query that works fine on MX but shows this error on 5:
> Invalid parser construct found on line 117 at position 55. ColdFusion was
> looking at the following text:
> -
>
> Here is my query:
>
> 
> select
> count(*) as MyCount
> from claimdetails where serialnum >= '#prefix##suffix - 5#' AND serialnum
> <= '#prefix##suffix + 5#'
> 
>
> How do I format for 5 and MX?
>
> Thanks!
>
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cfmx & cf5

2004-02-27 Thread Barney Boisvert
You can't use expressions inside hashes on CF5 and less.  That's a CFMX-only
thing.  You can wrap your expressions in a function (int() or evaluate()),
or assign them to temp variables and use them in your query.  For example:


select
count(*) as MyCount
from claimdetails where serialnum >= '#prefix##int(suffix - 5)#' 
AND serialnum
<= '#prefix##int(suffix + 5)#'


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 27, 2004 10:46 AM
> To: CF-Talk
> Subject: cfmx & cf5
> 
> I have a query that works fine on MX but shows this error on 5:
> Invalid parser construct found on line 117 at position 55. 
> ColdFusion was
> looking at the following text:
> -
> 
> Here is my query:
> 
> 
> select
> count(*) as MyCount
> from claimdetails where serialnum >= '#prefix##suffix - 5#' 
> AND serialnum
> <= '#prefix##suffix + 5#'
> 
> 
> How do I format for 5 and MX?
> 
> Thanks!
> 
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cfmx & cf5

2004-02-27 Thread Bryan Stevenson
I'm not sure CF 5 allows this kind of math:
#suffix + 5#

You may need to set a var before the query like so:


and in your query use #MyCalculatedVar#

HTH

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

-
Macromedia Associate Partner
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  - Original Message - 
  From: [EMAIL PROTECTED] 
  To: CF-Talk 
  Sent: Friday, February 27, 2004 10:45 AM
  Subject: cfmx & cf5

  I have a query that works fine on MX but shows this error on 5:
  Invalid parser construct found on line 117 at position 55. ColdFusion was
  looking at the following text:
  -

  Here is my query:

  
  select
  count(*) as MyCount
  from claimdetails where serialnum >= '#prefix##suffix - 5#' AND serialnum
  <= '#prefix##suffix + 5#'
  

  How do I format for 5 and MX?

  Thanks!
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




cfmx & cf5

2004-02-27 Thread kelly
I have a query that works fine on MX but shows this error on 5:
Invalid parser construct found on line 117 at position 55. ColdFusion was
looking at the following text:
-

Here is my query:


select
count(*) as MyCount
from claimdetails where serialnum >= '#prefix##suffix - 5#' AND serialnum
<= '#prefix##suffix + 5#'


How do I format for 5 and MX?

Thanks!
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CF5 -> CFMX -> CF5

2003-02-28 Thread S . Isaac Dealey
> CFCONTENT and CFABORT did it.

> 
> I also had the CFOUTPUT wrapped in HTMLEditFormat() so
> I could look at
> it, which passed one heck of a lot of > and < tags
> back to the
> browser.  Say it with me, everybody!  "DUH"
> 

Doh! Oh wait -- I screwed that up didn't I? Duh... :)

> Thanks for the help!

what we're here for. :)

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

tapestry api is opensource http://www.turnkey.to/tapi

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: CF5 -> CFMX -> CF5

2003-02-28 Thread Jim Campbell
CFCONTENT and CFABORT did it.


I also had the CFOUTPUT wrapped in HTMLEditFormat() so I could look at
it, which passed one heck of a lot of > and < tags back to the
browser.  Say it with me, everybody!  "DUH"


Thanks for the help!

- Jim

- Original Message -
From: "S. Isaac Dealey" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 3:55 PM
Subject: RE: CF5 -> CFMX -> CF5


> >> Just as an FYI -- I'm pretty sure Dave's right -- and I'd
> >> ammend it by
> >> saying that white-space either on the beginning or end of
> >> the wddx packet
> >> will also make the packet invalid. You may need to use
> >>  to
> >> deliver the packet and  immediately following,
> >> just to be sure
> >> that's the only content the receiving server sees.
> >>
>
> > Don't worry about whitespace with CFCONTENT and CFABORT,
> > just use trim() on
> > the other side of the transfer.  Much simpler and more
> > foolproof.
>
> That's what you say until you realize that there's something like 
or
>  on either side of the wddx packet. :) Cfcontent if properly used
> should ensure that any actual non-white-space content is also removed. You
> could of course attempt to remove anything not within the wddx packet
using
> a regular expression also, but I'm more inclined to attempt cfcontent
first.
>
>
>
> s. isaac dealey954-776-0046
>
> new epoch  http://www.turnkey.to
>
> lead architect, tapestry cms   http://products.turnkey.to
>
> tapestry api is opensource http://www.turnkey.to/tapi
>
> certified advanced coldfusion 5 developer
> http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CF5 -> CFMX -> CF5

2003-02-28 Thread S . Isaac Dealey
>> Just as an FYI -- I'm pretty sure Dave's right -- and I'd
>> ammend it by
>> saying that white-space either on the beginning or end of
>> the wddx packet
>> will also make the packet invalid. You may need to use
>>  to
>> deliver the packet and  immediately following,
>> just to be sure
>> that's the only content the receiving server sees.
>>

> Don't worry about whitespace with CFCONTENT and CFABORT,
> just use trim() on
> the other side of the transfer.  Much simpler and more
> foolproof.

That's what you say until you realize that there's something like  or
 on either side of the wddx packet. :) Cfcontent if properly used
should ensure that any actual non-white-space content is also removed. You
could of course attempt to remove anything not within the wddx packet using
a regular expression also, but I'm more inclined to attempt cfcontent first.



s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

tapestry api is opensource http://www.turnkey.to/tapi

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CF5 -> CFMX -> CF5

2003-02-28 Thread Barney Boisvert
> Just as an FYI -- I'm pretty sure Dave's right -- and I'd ammend it by
> saying that white-space either on the beginning or end of the wddx packet
> will also make the packet invalid. You may need to use  to
> deliver the packet and  immediately following, just to be sure
> that's the only content the receiving server sees.
>

Don't worry about whitespace with CFCONTENT and CFABORT, just use trim() on
the other side of the transfer.  Much simpler and more foolproof.

> -Original Message-
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 1:41 PM
> To: CF-Talk
> Subject: RE: CF5 -> CFMX -> CF5
>
>
> >> My hang-up is how I return a usable structure of
> >> data to the requesting CF5 page to use it. I tried
> >> cheap tricks like outputting the WDDX packet content
> >> on the MX page and saving the cfhttp.FileContent
> >> contents to a variable and trying to convince CF5
> >> that it was a valid WDDX. That didn't work. At all.
>
> > That should work without any problems, I think. You might
> > want to make sure
> > you're getting back what you think you should be getting
> > back; in your CF 5
> > page, you can just output CFHTTP.FileContent and see if
> > there's any non-WDDX
> > stuff in there. ANY non-WDDX stuff will break the parser
> > and cause an error.
>

> > I don't know that CFHTTP is the best solution, though - I
> > know that you say
> > it's fast between servers, but keep in mind that it'll
> > keep both servers
> > busy doing work that shouldn't really be necessary in the
> > first place.
>
> I wasn't following the rest of the thread, so I can't really say
> anything on
> this in particular.
>
> s. isaac dealey954-776-0046
>
> new epoch  http://www.turnkey.to
>
> lead architect, tapestry cms   http://products.turnkey.to
>
> tapestry api is opensource http://www.turnkey.to/tapi
>
> certified advanced coldfusion 5 developer
> http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CF5 -> CFMX -> CF5

2003-02-28 Thread S . Isaac Dealey
>> My hang-up is how I return a usable structure of
>> data to the requesting CF5 page to use it. I tried
>> cheap tricks like outputting the WDDX packet content
>> on the MX page and saving the cfhttp.FileContent
>> contents to a variable and trying to convince CF5
>> that it was a valid WDDX. That didn't work. At all.

> That should work without any problems, I think. You might
> want to make sure
> you're getting back what you think you should be getting
> back; in your CF 5
> page, you can just output CFHTTP.FileContent and see if
> there's any non-WDDX
> stuff in there. ANY non-WDDX stuff will break the parser
> and cause an error.

Just as an FYI -- I'm pretty sure Dave's right -- and I'd ammend it by
saying that white-space either on the beginning or end of the wddx packet
will also make the packet invalid. You may need to use  to
deliver the packet and  immediately following, just to be sure
that's the only content the receiving server sees.

> I don't know that CFHTTP is the best solution, though - I
> know that you say
> it's fast between servers, but keep in mind that it'll
> keep both servers
> busy doing work that shouldn't really be necessary in the
> first place.

I wasn't following the rest of the thread, so I can't really say anything on
this in particular.

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

tapestry api is opensource http://www.turnkey.to/tapi

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CF5 -> CFMX -> CF5

2003-02-28 Thread Dave Watts
> My hang-up is how I return a usable structure of 
> data to the requesting CF5 page to use it. I tried 
> cheap tricks like outputting the WDDX packet content
> on the MX page and saving the cfhttp.FileContent 
> contents to a variable and trying to convince CF5 
> that it was a valid WDDX. That didn't work. At all.

That should work without any problems, I think. You might want to make sure
you're getting back what you think you should be getting back; in your CF 5
page, you can just output CFHTTP.FileContent and see if there's any non-WDDX
stuff in there. ANY non-WDDX stuff will break the parser and cause an error.

I don't know that CFHTTP is the best solution, though - I know that you say
it's fast between servers, but keep in mind that it'll keep both servers
busy doing work that shouldn't really be necessary in the first place.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



CF5 -> CFMX -> CF5

2003-02-28 Thread Jim Campbell
Due to some issues with MX and Oracle, we're holding off on rolling out MX
for all of our applications, but we've found some other uses for it.  One of
them is going to be as a web services "proxy" for an extension to an
application we're running on CF5.

Now, I've gotten pretty far on my own, testing with Amazon's SOAP interface.
CF5 creates a structure of data passed from a form, which is serialized via
WDDX and passed to MX via CFHTTP (this is where I think I might be making
things difficult).  The MX side of things deserializes the packet, passes
the structure to Amazon, and I get my result back, which I pass through
CFWDDX again.

My hang-up is how I return a usable structure of data to the requesting CF5
page to use it.  I tried cheap tricks like outputting the WDDX packet
content on the MX page and saving the cfhttp.FileContent contents to a
variable and trying to convince CF5 that it was a valid WDDX.  That didn't
work.  At all.

Is there a way I could explicitly return to the page that called CFHTTP (if
that was a good idea at all in the first place), data in tow?  CFHTTP is
pretty fast between the two servers, even with a gigantic amount of Amazon
data riding along, so there's not a lot of concern about response time so
far.  So, I'm still fiddling with possible solutions, but I'd appreciate any
suggestions you all might have.

Many thanks,

- Jim

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Samuel R. Neff
At 01:13 PM 12/4/2002, you wrote:
>It all depends on how you make use of the shared scope in question.

and in this case, it also depends on how others use of the scope, since 
Server is shared across all apps.


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Matt Liotta
Well it doesn't always move things around in memory; it is just possible
that it could, which is why rules without exceptions like "always lock
shared scopes" fall down. It is entirely possible to set some values in
a shared scope and not lock reads to them without a problem. It all
depends on how you make use of the shared scope in question.

Matt Liotta
President & CEO
Montara Software, Inc.
http://www.montarasoftware.com/
888-408-0900 x901

> -Original Message-
> From: Gyrus [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 04, 2002 1:08 PM
> To: CF-Talk
> Subject: Re: CFMX > CF5: notes on backwards compatibility
> 
> > Yes, and on CFMX you do not need locking anyway for this. On earlier
> > versions, you *should* lock all shared scope access, both read and
> > write.
> 
> Thanks for confirmation on this everyone. I didn't realise that people
> reading/writing other vars in the Server scope could end up with CF
> "moving
> the scope about". I'll lock it!
> 
> Gyrus
> [EMAIL PROTECTED]
> work: http://www.tengai.co.uk
> play: http://www.norlonto.net
> PGP key available
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Gyrus
> Yes, and on CFMX you do not need locking anyway for this. On earlier
> versions, you *should* lock all shared scope access, both read and
> write.

Thanks for confirmation on this everyone. I didn't realise that people
reading/writing other vars in the Server scope could end up with CF "moving
the scope about". I'll lock it!

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread ksuh
> > INLINE EXPRESSIONS
> > seems to work fine on CFMX, but chokes on CF5.
> 
> ISTR some conversation here that said CF5 tightened the language 
> up 
> from 4.5 and #URL.pg + 1# worked in 4.5? I would say that not 
> handling 
> it in CF5 was a bug in CF5.

Actually, this last worked in CF3.  Now I'm dating myself :)

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Sean A Corfield
On Wednesday, Dec 4, 2002, at 09:17 US/Pacific, Gyrus wrote:
> And it throws (on MX) the error "Attempted to update or delete a read 
> only
> variable PRODUCTVERSION is a reserved read-only variable in this 
> scope".

Yes, and on CFMX you do not need locking anyway for this. On earlier 
versions, you *should* lock all shared scope access, both read and 
write.

Sean A Corfield -- Director, Architecture
Web Technology Group -- Macromedia, Inc.
tel: (415) 252-2287 -- cell: (415) 717-8473
aim: seancorfield -- http://www.macromedia.com
An Architect's View -- http://www.corfield.org/blog/

Introducing Macromedia Contribute. Web publishing for everyone.
Learn more at http://www.macromedia.com/contribute

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Sean A Corfield
On Wednesday, Dec 4, 2002, at 04:03 US/Pacific, Gyrus wrote:
> INLINE EXPRESSIONS
> seems to work fine on CFMX, but chokes on CF5.

ISTR some conversation here that said CF5 tightened the language up 
from 4.5 and #URL.pg + 1# worked in 4.5? I would say that not handling 
it in CF5 was a bug in CF5.

> CFDEFAULTCASE
> CFMX doesn't seem to mind if you slip CFDEFAULTCASE in *before* any 
> CFCASE
> statements, which I did several times without thinking. CF5 does - the
> default always needs to be last in the list.

Correct. This is documented in the CFMX migration notes I believe (it's 
certainly documented somewhere). I don't like this relaxation of the 
rules, personally, because I believe it is better practice to always 
have defaultcase at the end, however, it does bring CF more in line 
with other languages.

> RESERVED WORDS
> "section" being a reserved word and square brackets escaping it. 
> However,
> CF5 chokes on the square brackets - doesn't want them at all.

This is due to the database drivers and not really a CF5/CFMX issue. 
Double-quoting your column names - as Jochem suggested - should help 
(although I'd caution that "section" will be treated as a lowercase 
column name which could cause problems so you might want to try 
"SECTION" instead!).

> UNICODE SUPPORT
> Using CFMX, for instance, #Chr(353)# will match s-circumflex, which I
> replaced with š. Characters above 255 in CF5, however, repeat 
> pre-255
> characters, and #Chr(353)# will match "a". Hence, all my "a"s were 
> replaced
> with š, which display in the browser as s-circumflex.

This should not be surprising: CF5 did not support Unicode so š 
would be an invalid character in CF5 (and would have the high bit reset 
to zero) whereas in CFMX it is handled correctly.

Sean A Corfield -- Director, Architecture
Web Technology Group -- Macromedia, Inc.
tel: (415) 252-2287 -- cell: (415) 717-8473
aim: seancorfield -- http://www.macromedia.com
An Architect's View -- http://www.corfield.org/blog/

Introducing Macromedia Contribute. Web publishing for everyone.
Learn more at http://www.macromedia.com/contribute

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Jim Davis
> - Original Message -
> From: "Bud" <[EMAIL PROTECTED]>
> > >Also, why locking? I assume Server.ColdFusion.ProductVersion is a
> read-only
> > >variable!

Server.ColdFusion.ProductVersion is a read-only variable - the problem
is that in CF v4-5 any change to the structure (SERVER) could cause
problems.  So, overly simply, if you're reading
"Server.ColdFusion.ProductVersion" at the same time somebody is writing
"Server.MyPersonalVar" there can be a problem (only in CF v4-5).

In effect the value you're reading could be "moved" during that read by
a seemingly unrelated write.

That being said the server scope is really the least likely to cause
problems (since it's used, generally, so rarely) but it's still a
potential.  In CFv4-5 you should (to be perfectly, totally safe) wrap
such accesses in a ReadOnly lock.

Jim Davis


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Gyrus
- Original Message -
From: "Bud" <[EMAIL PROTECTED]>
> >Also, why locking? I assume Server.ColdFusion.ProductVersion is a
read-only
> >variable!
>
> As long as you know the app will always be on a server with automatic
> read locking enabled. Otherwise...
---

There could be a problem? I just tried



And it throws (on MX) the error "Attempted to update or delete a read only
variable PRODUCTVERSION is a reserved read-only variable in this scope".

Surely locking would only be necessary on user-defined read/write variables
in a shared scope?

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Bud
On 12/4/02, Gyrus penned:
>Would have been much more effort to recode for a different column name than
>insert the code I posted. Obviously would do things differently in a new
>app.

ACK! I didn't take into account that you may have a zillion queries 
accessing/updating/inserting into that table. :)

>Also, why locking? I assume Server.ColdFusion.ProductVersion is a read-only
>variable!

As long as you know the app will always be on a server with automatic 
read locking enabled. Otherwise...
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Gyrus
- Original Message -
From: "Jochem van Dieten" <[EMAIL PROTECTED]>
> > "section" being a reserved word and square brackets escaping it.
>
> Small correction: section is a reserved word, "section" is not.

A joke, yeah?! I put the quotes around it as per common convention of using
quotes to... quote something! Just plain English convention, to delimit it
as a "named word or phrase" (there you go, another one!).

> Anything with double quotes around it is always an identifier, that way
> the SQL standard can always be extended to include new reserved words
> without breaking old applications.

But yeah, if quotes are used as SQL identifiers, I see where the confusion
came in.

> I would consider the behaviour of CF 5 accepting section a bug. SECTION
> is a SQL reserved word, and you shouldn't be able to use it without
> identifier delimiters.
> On the other hand, choking on the square brackets is the correct
> behaviour, double quotes are the official delimiters.

Will try with quotes, see if it works for both versions, thanks.

Could I stress again to NOT use that HTMLSafe() function I posted earlier!
It's buggy as hell, I really shouldn't have been so slapdash! A (hopefully)
more stable version has been submitted to cflib.org...

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Gyrus
- Original Message -
> Yep, except for the reserved word "section". I'd personally just
> change the database column name rather than having the extra code,
> especially since you'll have to lock the server variable, inside of a
> cfquery no less.


Would have been much more effort to recode for a different column name than
insert the code I posted. Obviously would do things differently in a new
app.

Also, why locking? I assume Server.ColdFusion.ProductVersion is a read-only
variable!

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Jochem van Dieten
Quoting Gyrus <[EMAIL PROTECTED]>:
> 
> RESERVED WORDS
> 
> In CFMX, I had to change this SQL filter:
> WHERE section  = '#attributes.section#'
> to this:
> WHERE [section]  = '#attributes.section#'
> 
> "section" being a reserved word and square brackets escaping it.

Small correction: section is a reserved word, "section" is not. 
Anything with double quotes around it is always an identifier, that way 
the SQL standard can always be extended to include new reserved words 
without breaking old applications.


> However, CF5 chokes on the square brackets - doesn't want them at
> all. So I ended up with:
> 
> 
> WHERE section  = '#attributes.section#'
> 
> WHERE [section] = '#attributes.section#'
> 

I would consider the behaviour of CF 5 accepting section a bug. SECTION 
is a SQL reserved word, and you shouldn't be able to use it without 
identifier delimiters.
On the other hand, choking on the square brackets is the correct 
behaviour, double quotes are the official delimiters.

Jochem
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Bud
On 12/4/02, Will Swain penned:
>Thanks...that makes for interesting reading. I've seen plenty about
>migrating from CF5 to CFMX but nothing coming the other way. I can think of
>a few scenarios where this will be useful information.

Yep, except for the reserved word "section". I'd personally just 
change the database column name rather than having the extra code, 
especially since you'll have to lock the server variable, inside of a 
cfquery no less.
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Gyrus
Ooops. Watch out for that HTMLSafe() function I posted as part of the last
post. There's several errors in it, not least my use of an app-specific
variable (request.serverVersion, which is set to
Val(Left(Server.ColdFusion.ProductVersion, 1))). There are also some bugs in
the replacement code I've not noticed before. Groan...

I'll be posting one that works properly to cflib.org!

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Will Swain
Thanks...that makes for interesting reading. I've seen plenty about
migrating from CF5 to CFMX but nothing coming the other way. I can think of
a few scenarios where this will be useful information.

Cheers

Will



-Original Message-
From: Gyrus [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2002 12:04
To: CF-Talk
Subject: CFMX > CF5: notes on backwards compatibility


I just uploaded an application I've been developing locally on a CFMX box to
a CF5 server we have. Of course I've been careful not to use any MX-specific
tags and functions, but there were several problems in
backwards-compatibility that I thought I'd document here, hopefully of use
to others.

Naturally, let me know if I've missed anything about these issues! Also, is
there anywhere compiling this sort of info?

---

INLINE EXPRESSIONS

Code such as:

Next page

seems to work fine on CFMX, but chokes on CF5. Using #Evaluate(URL.pg+1)#
works, but in other similar instances it didn't seem to help. Given this,
and the general "Whoah! Don't use that!" attitude I've noticed towards
Evaluate(), I set a temp var in each instance to equal the expression and
output the var.

---

CFDEFAULTCASE

CFMX doesn't seem to mind if you slip CFDEFAULTCASE in *before* any CFCASE
statements, which I did several times without thinking. CF5 does - the
default always needs to be last in the list.

---

RESERVED WORDS

In CFMX, I had to change this SQL filter:

WHERE section  = '#attributes.section#'

to this:

WHERE [section]  = '#attributes.section#'

"section" being a reserved word and square brackets escaping it. However,
CF5 chokes on the square brackets - doesn't want them at all. So I ended up
with:


WHERE section  = '#attributes.section#'

WHERE [section] = '#attributes.section#'


---

UNICODE SUPPORT

I was highly mystified when a CF-processed link HREF came through on the CF5
server with all the "a"s replaced with "s-circumflex" characters. The link
was built using a function I wrote called HTMLSafe(), based on
ConvertEntity() from cflib.org. I had changed the code so that the list of
"bad" characters to match was built using the Chr() function.

Using CFMX, for instance, #Chr(353)# will match s-circumflex, which I
replaced with š. Characters above 255 in CF5, however, repeat pre-255
characters, and #Chr(353)# will match "a". Hence, all my "a"s were replaced
with š, which display in the browser as s-circumflex.

I'm no whizz with the issues involved here - maybe someone can explain it
better than me! - but FWIW, here's the revised function I came up with to
handle the majority of special characters and match them properly depending
on the server version:

/**
 * Makes a string of text safe for HTML output.
 *
 * @param string  The string to format.
 * @param [stripHTML] Converts < and > to < and >. Default
 *  is TRUE.
 * @return  Returns a string.
 * @author  [EMAIL PROTECTED]
 * @version 1 October 9, 2002
 * @inspiration Mike Gillespie ([EMAIL PROTECTED])
 *http://www.cflib.org/udf.cfm?ID=664
 */

function HTMLSafe(string) {
 // Initialise
 var badChars =
""",&,#Chr(161)#,#Chr(162)#,#Chr(163)#,#Chr(164)#,#Chr(165)#,#Chr(166)#,#Chr
(167)#,#Chr(168)#,#Chr(169)#,#Chr(170)#,#Chr(171)#,#Chr(172)#,#Chr(173)#,#Ch
r(174)#,#Chr(175)#,#Chr(176)#,#Chr(177)#,#Chr(178)#,#Chr(179)#,#Chr(180)#,#C
hr(181)#,#Chr(182)#,#Chr(183)#,#Chr(184)#,#Chr(185)#,#Chr(186)#,#Chr(187)#,#
Chr(188)#,#Chr(189)#,#Chr(190)#,#Chr(191)#,#Chr(215)#,#Chr(247)#,#Chr(192)#,
#Chr(193)#,#Chr(194)#,#Chr(195)#,#Chr(196)#,#Chr(197)#,#Chr(198)#,#Chr(199)#
,#Chr(200)#,#Chr(201)#,#Chr(202)#,#Chr(203)#,#Chr(204)#,#Chr(205)#,#Chr(206)
#,#Chr(207)#,#Chr(208)#,#Chr(209)#,#Chr(210)#,#Chr(211)#,#Chr(212)#,#Chr(213
)#,#Chr(214)#,#Chr(216)#,#Chr(217)#,#Chr(218)#,#Chr(219)#,#Chr(220)#,#Chr(22
1)#,#Chr(222)#,#Chr(223)#,#Chr(224)#,#Chr(225)#,#Chr(226)#,#Chr(227)#,#Chr(2
28)#,#Chr(229)#,#Chr(230)#,#Chr(231)#,#Chr(232)#,#Chr(233)#,#Chr(234)#,#Chr(
235)#,#Chr(236)#,#Chr(237)#,#Chr(238)#,#Chr(239)#,#Chr(240)#,#Chr(241)#,#Chr
(242)#,#Chr(243)#,#Chr(244)#,#Chr(245)#,#Chr(246)#,#Chr(248)#,#Chr(249)#,#Ch
r(250)#,#Chr(251)#,#Chr(252)#,#Chr(253)#,#Chr(254)#,#Chr(255)#";
 var goodChars =
"",&,¡,¢,£,¤,¥,¦,§,¨,&c
opy;,ª,«,¬,­,®,¯,°,±,²,³,&a
cute;,µ,¶,·,¸,¹,º,»,¼,½
;,¾,¿,×,÷,À,Á,Â;,Ã,&Au
ml;,Å,Æ,Ç,È,É,Ê,Ë,Ì,&Iacu
te;,Î,Ï,Ð,Ñ,Ò,Ó,Ô,Õ,Ö,
Ø,Ù,Ú,Û,Ü,Ý,Þ,ß,à,
á,â,ã,ä,å,æ,ç,è,é,
ê,ë,ì,í,î,ï,ð,ñ,ò,&oac
ute;,ô,õ,ö,ø,ù,ú,û,ü,&yacu
te;,þ,ÿ,&##338;,&##339;,&##352;,&##353;,&##376;,&##710;,&##732;,&
##8206;,&##8207;,&##8211;,&##8212;,&##8216;,&##8217;,&##8218;,&##8220;,&##82
21;,&##8222;,&##8224;,&##8225;,&

CFMX > CF5: notes on backwards compatibility

2002-12-04 Thread Gyrus
I just uploaded an application I've been developing locally on a CFMX box to
a CF5 server we have. Of course I've been careful not to use any MX-specific
tags and functions, but there were several problems in
backwards-compatibility that I thought I'd document here, hopefully of use
to others.

Naturally, let me know if I've missed anything about these issues! Also, is
there anywhere compiling this sort of info?

---

INLINE EXPRESSIONS

Code such as:

Next page

seems to work fine on CFMX, but chokes on CF5. Using #Evaluate(URL.pg+1)#
works, but in other similar instances it didn't seem to help. Given this,
and the general "Whoah! Don't use that!" attitude I've noticed towards
Evaluate(), I set a temp var in each instance to equal the expression and
output the var.

---

CFDEFAULTCASE

CFMX doesn't seem to mind if you slip CFDEFAULTCASE in *before* any CFCASE
statements, which I did several times without thinking. CF5 does - the
default always needs to be last in the list.

---

RESERVED WORDS

In CFMX, I had to change this SQL filter:

WHERE section  = '#attributes.section#'

to this:

WHERE [section]  = '#attributes.section#'

"section" being a reserved word and square brackets escaping it. However,
CF5 chokes on the square brackets - doesn't want them at all. So I ended up
with:


WHERE section  = '#attributes.section#'

WHERE [section] = '#attributes.section#'


---

UNICODE SUPPORT

I was highly mystified when a CF-processed link HREF came through on the CF5
server with all the "a"s replaced with "s-circumflex" characters. The link
was built using a function I wrote called HTMLSafe(), based on
ConvertEntity() from cflib.org. I had changed the code so that the list of
"bad" characters to match was built using the Chr() function.

Using CFMX, for instance, #Chr(353)# will match s-circumflex, which I
replaced with š. Characters above 255 in CF5, however, repeat pre-255
characters, and #Chr(353)# will match "a". Hence, all my "a"s were replaced
with š, which display in the browser as s-circumflex.

I'm no whizz with the issues involved here - maybe someone can explain it
better than me! - but FWIW, here's the revised function I came up with to
handle the majority of special characters and match them properly depending
on the server version:

/**
 * Makes a string of text safe for HTML output.
 *
 * @param string  The string to format.
 * @param [stripHTML] Converts < and > to < and >. Default
 *  is TRUE.
 * @return  Returns a string.
 * @author  [EMAIL PROTECTED]
 * @version 1 October 9, 2002
 * @inspiration Mike Gillespie ([EMAIL PROTECTED])
 *http://www.cflib.org/udf.cfm?ID=664
 */

function HTMLSafe(string) {
 // Initialise
 var badChars =
""",&,#Chr(161)#,#Chr(162)#,#Chr(163)#,#Chr(164)#,#Chr(165)#,#Chr(166)#,#Chr
(167)#,#Chr(168)#,#Chr(169)#,#Chr(170)#,#Chr(171)#,#Chr(172)#,#Chr(173)#,#Ch
r(174)#,#Chr(175)#,#Chr(176)#,#Chr(177)#,#Chr(178)#,#Chr(179)#,#Chr(180)#,#C
hr(181)#,#Chr(182)#,#Chr(183)#,#Chr(184)#,#Chr(185)#,#Chr(186)#,#Chr(187)#,#
Chr(188)#,#Chr(189)#,#Chr(190)#,#Chr(191)#,#Chr(215)#,#Chr(247)#,#Chr(192)#,
#Chr(193)#,#Chr(194)#,#Chr(195)#,#Chr(196)#,#Chr(197)#,#Chr(198)#,#Chr(199)#
,#Chr(200)#,#Chr(201)#,#Chr(202)#,#Chr(203)#,#Chr(204)#,#Chr(205)#,#Chr(206)
#,#Chr(207)#,#Chr(208)#,#Chr(209)#,#Chr(210)#,#Chr(211)#,#Chr(212)#,#Chr(213
)#,#Chr(214)#,#Chr(216)#,#Chr(217)#,#Chr(218)#,#Chr(219)#,#Chr(220)#,#Chr(22
1)#,#Chr(222)#,#Chr(223)#,#Chr(224)#,#Chr(225)#,#Chr(226)#,#Chr(227)#,#Chr(2
28)#,#Chr(229)#,#Chr(230)#,#Chr(231)#,#Chr(232)#,#Chr(233)#,#Chr(234)#,#Chr(
235)#,#Chr(236)#,#Chr(237)#,#Chr(238)#,#Chr(239)#,#Chr(240)#,#Chr(241)#,#Chr
(242)#,#Chr(243)#,#Chr(244)#,#Chr(245)#,#Chr(246)#,#Chr(248)#,#Chr(249)#,#Ch
r(250)#,#Chr(251)#,#Chr(252)#,#Chr(253)#,#Chr(254)#,#Chr(255)#";
 var goodChars =
"",&,¡,¢,£,¤,¥,¦,§,¨,&c
opy;,ª,«,¬,­,®,¯,°,±,²,³,&a
cute;,µ,¶,·,¸,¹,º,»,¼,½
;,¾,¿,×,÷,À,Á,Â;,Ã,&Au
ml;,Å,Æ,Ç,È,É,Ê,Ë,Ì,&Iacu
te;,Î,Ï,Ð,Ñ,Ò,Ó,Ô,Õ,Ö,
Ø,Ù,Ú,Û,Ü,Ý,Þ,ß,à,
á,â,ã,ä,å,æ,ç,è,é,
ê,ë,ì,í,î,ï,ð,ñ,ò,&oac
ute;,ô,õ,ö,ø,ù,ú,û,ü,&yacu
te;,þ,ÿ,&##338;,&##339;,&##352;,&##353;,&##376;,&##710;,&##732;,&
##8206;,&##8207;,&##8211;,&##8212;,&##8216;,&##8217;,&##8218;,&##8220;,&##82
21;,&##8222;,&##8224;,&##8225;,&##8240;,&##8249;,&##8250;,&##8364;,TM";
 var stripHTML = TRUE;
 if (request.serverVersion LT 6) {
  // Pre-MX/Unicode matches
  badChars =
"#badChars#,#Chr(140)#,#Chr(156)#,#Chr(138)#,#Chr(154)#,#Chr(159)#,#Chr(136)
#,#Chr(150)#,#Chr(151)#,#Chr(145)#,#Chr(146)#,#Chr(130)#,#Chr(147)#,#Chr(148
)#,#Chr(132)#,#Chr(134)#,#Chr(135)#,#Chr(137)#,#Chr(139)#,#Chr(155)#,#Chr(12
8)#,#Chr(153)#";
 } else {
  // MX/Unicode matches
  badChars =
"#badChars#,#Chr(338)#,#Chr(339)#,#Chr(352)#,#Chr(353)#,#Chr(376)#,#Chr(710)
#,#Chr(8211)#,#Chr(8212)#,#Chr(8216)#,#Chr(8217)#,#Chr(8218)#,#Chr(8220)#,#C
hr(8221)#,#Chr(8222)#,#Chr(8224)#,#Chr(8225)#,#Chr(8240)#,#Chr(8249)#,#Chr(8
250)#,#Chr(8364)#,#Chr(8482)#";
 }
 if (Ar

RE: CFMX -> CF5

2002-07-02 Thread nagesh

Thanks Andre!

nagesh

-Original Message-
From: Andre Turrettini [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 9:38 AM
To: CF-Talk
Subject: RE: CFMX -> CF5


Hi Nagesh, I ran into a similar madening problem. If you reinstall mx, it
wont give you the option to set it as iis instead of standalone.  It gave me
that same error.  Basically, you have to remap iis or whatever you web
server is to send the http request to the right dll.  I found the
instrcutions in the documents.  Look for configuring iis or something
similar.  DRE

-Original Message-
From: nagesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 8:12 AM
To: CF-Talk
Subject: CFMX -> CF5


Hi,

I upgraded to CFMX from CF5.0 just for testing purpose, Later on, I
uninstalled CFMX, to continue with CF 5.0(again installed CF 5.0).
Everything was ok, but I cannot see the CF Administrator page when I tried
to open ColdFusion Server. It says, "The specified module could not be
found. ", Do I need to make any other settings like?


Thanks
nagesh



Confidentiality Notice:

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the named addressee you should not disseminate, distribute or
copy this e-mail. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake and delete this e-mail from your system.  If
you are not the intended recipient you are notified that disclosing,
copying, distributing or taking any action in reliance on the contents of
this information is strictly prohibited.


__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFMX -> CF5

2002-07-02 Thread Andre Turrettini

Hi Nagesh, I ran into a similar madening problem. If you reinstall mx, it
wont give you the option to set it as iis instead of standalone.  It gave me
that same error.  Basically, you have to remap iis or whatever you web
server is to send the http request to the right dll.  I found the
instrcutions in the documents.  Look for configuring iis or something
similar.  DRE

-Original Message-
From: nagesh [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 02, 2002 8:12 AM
To: CF-Talk
Subject: CFMX -> CF5


Hi,

I upgraded to CFMX from CF5.0 just for testing purpose, Later on, I
uninstalled CFMX, to continue with CF 5.0(again installed CF 5.0).
Everything was ok, but I cannot see the CF Administrator page when I tried
to open ColdFusion Server. It says, "The specified module could not be
found. ", Do I need to make any other settings like?


Thanks
nagesh



Confidentiality Notice:

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the named addressee you should not disseminate, distribute or
copy this e-mail. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake and delete this e-mail from your system.  If
you are not the intended recipient you are notified that disclosing,
copying, distributing or taking any action in reliance on the contents of
this information is strictly prohibited.

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFMX -> CF5

2002-07-02 Thread nagesh

Hi,

I upgraded to CFMX from CF5.0 just for testing purpose, Later on, I
uninstalled CFMX, to continue with CF 5.0(again installed CF 5.0).
Everything was ok, but I cannot see the CF Administrator page when I tried
to open ColdFusion Server. It says, "The specified module could not be
found. ", Do I need to make any other settings like?


Thanks
nagesh



Confidentiality Notice:

This e-mail and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed.  If you are not the 
named addressee you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately by e-mail if you have received this e-mail by mistake 
and delete this e-mail from your system.  If you are not the intended recipient you 
are notified that disclosing, copying, distributing or taking any action in reliance 
on the contents of this information is strictly prohibited.
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists