RE: CFMX not compatible with Oracle 8.0.5

2002-12-02 Thread Kevin Bridges
Can you totally go into detail about this ... we are having 8.1.5 issues and
need to identify how the JDBC driver connect to the Oracle RDBMS - is it
through the listener, or are there specific drivers that are being made use
of on the oracle side.  If there are, what are the version numbers of those
drivers and can I replace them ... trying to find a way of not upgrading
oracle.

TIA
Kevin Bridges

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 1:13 PM
To: CF-Talk
Subject: Re: CFMX not compatible with Oracle 8.0.5

We had the same problem here.  The production database was 8i and the test
database was 8.0.5 and we could not get to the 8.0.5 database with the JDBC
driver that came with ColdFusionMX.

We ended up putting on the 8.0.5 client installer so that we could install
an
8.0.5 type 4 JDBC driver for 8.0.5.  We got it working.

Chris White



Yes.. CFMX Oracle driver will only work with Oracle 8"I" and above. However
i
got CFMX working with Oracle 8.0.5 Using Oracle Native Type IV  drivers. The
setup is little Tricky but works!\

Let me know.. if you need help configuring this.

Joe

On Mon, 2 Dec 2002 10:50:05 -0600 Jim Campbell <[EMAIL PROTECTED]> wrote:

> This is interesting...
> 
> According to MM tech support, CFMX's Type 4
> JDBC driver will not connect
> with Oracle 8.0.5.  Short of upgrading our
> instance of Oracle (which, yes,
> we should get around to one of these days), has
> anyone had this problem and
> come up with a way of getting this to work?
> I'd prefer not to use the ODBC,
> but if it's a choice between that and no
> functionality at all, I'll go with
> that.
> 
> Muchas gracias,
> 
> - 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



RE: RDS and VSS

2002-12-04 Thread Kevin Bridges
As could we all ...

-Original Message-
From: Ken Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 04, 2002 2:03 PM
To: CF-Talk
Subject: RE: RDS and VSS

Last time I investigated it Projects would not work via RDS, only local and
mapped drives. If you do find a way to make it work please do share. I could
use that capability right now.

Ken



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 3:27 PM
To: CF-Talk
Subject: RDS and VSS


I work remotely for my company and connect to our development servers via
VPN.  I am using ColdFusion Studio version 5 because there are bugs that I
have reported in Dreamweaver MX, specific to rewriting my code upon save.

Although my connection to my home office is over high speed (cable), using
RDS
is much faster than using UNC paths (e.g. \\servername\sharename).

Recently, I have started on a new project and am collaborating with two
developers in the home office.  We need to use Visual Source Safe so we
don't
step on each other's changes to the source code.

I have configured a PROJECT in CF Studio 5 and set the  "Location of Project
File" to rds://scsdb01/E:\webdev_root/oesv2/webroot.   The project creates
just fine.  Now, when I right click on the project that I created and select
Source Control...Map Project to Source Control... My VSS client pops up, I
log
in and then select the VSS project that I wish the CF Studio project to use.
As soon as I do this, Visual Source Safe pops up an error that says:

"Invalid DOS path: rds://scsdb01/E:\webdev_root/OESv2/webroot"

What I suspect is happening here is that VSS doesn't understand RDS and is
using the working path specified in CF Studio.

I am wondering though if any gurus out there have any idea on ways to work
around this unfortunate problem.

Thank you,
Grant Szabo



-
This mail sent through IMP: http://horde.org/imp/


~|
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



ClientVars/Cookies on Linux

2002-12-06 Thread Kevin Bridges
Sorry for any cross-posting ... getting desperate for an answer.

I must be missing something really simple. We are running cfmx (with the
service pack applied) on a clustered Linux farm. CFMX is not playing well
with Oracle so in order to increase performance/scalability I am trying to
switch client storage from a datasource to cookies, but am loosing my client
variables. Here is previous application tag:



Here is new application tag:



I set client variables that I would expect to be stored and accessed in the
cookie like so: 
client.test1=123;
client.test2=456;


When running this on a pc I get the following in the debug output which
shows the client variables in the cookie where they can be persistent to the
rest of the application:

Client Variables:
cfid=1500
cftoken=11718683
hitcount=3
lastvisit={ts '2002-12-04 10:04:09'}
test1=123
test2=456
timecreated={ts '2002-12-04 09:59:52'} urltoken=CFID=1500&CFTOKEN=11718683

Cookie Variables:
CFAUTHORIZATION_cfadmin=MDcxZjVkMjkyNzEzMDI6MDcxZjVkMjkyNzEzMDI=
CFCLIENT_TESTEROLA=test2=456#test1=123#
CFGLOBALS=urltoken=CFID#=1500&CFTOKEN#=11718683#lastvisit={ts '2002-12-04
10:04:09'}#hitcount=3#timecreated={ts '2002-12-04
09:59:52'}#cftoken=11718683#cfid=1500#
CFID=1500
CFTOKEN=11718683
HIDEWELCOMEWINDOW=1
JSESSIONID=80302404681039021414455

Exact same code running on the Linux farm gives this in the debug:

Client Variables:

urltoken=CFID=1625&CFTOKEN=13474369
test2=456
test1=123
lastvisit={ts '2002-12-04 10:09:24'}
timecreated={ts '2002-12-04 10:09:24'}
hitcount=1
cftoken=13474369
cfid=1625


Cookie Variables:

CFID=1625
CFTOKEN=13474369


Why are my client variables not be stored in the cookie on the Linux farm?
There was a bug similar to this on MM's site but this "was fixed" in the
cfmx update. Am I doing something wrong or is this yet another nail MM keeps
pounding into my Linux coffin?


Thanks,

Kevin Bridges
~|
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: CFC output

2002-12-09 Thread Kevin Bridges
Think we should listen to Matt on this one ... 3 letters for dealing with
cfcs: MVC (Model - View - Controller) ... learn it, live it, love it.

Kevin Bridges

-Original Message-
From: Matt Liotta [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 09, 2002 2:09 PM
To: CF-Talk
Subject: RE: CFC output

The logic used to derive those results should be decoupled from the
display.

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

~|
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: Component Conceptual Conundrum - Continued

2002-12-11 Thread Kevin Bridges
I haven't done this, but have been eyeballing it for a while ... couldn't
you do something utilizing dhtml like so:
http://w3coder.com:8080/ws/CallWSUsingDHTML.aspx

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 8:06 AM
To: CF-Talk
Subject: RE: Component Conceptual Conundrum - Continued

You can't. You can post to a CFC, but not an instance of one. You could
hack around it a bit by having another CFC that stores the copies, ie, a
Manager type CFC, then you could post to that CFC and pass an ID so it
knows what instance of Whatever.cfc you want to use.

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: Robert Polickoski [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, December 11, 2002 9:04 AM
> To: CF-Talk
> Subject: Component Conceptual Conundrum - Continued
> 
> 
> All,
> 
> Sorry to bug you all again.  Does anyone know how to reference a 
> method of an instantiated component from an HTML tag such as an 
> anchor or a form?
> 
> Robert J. Polickoski
> Senior Programmer, ISRD Inc.
> (540) 842-6339
> [EMAIL PROTECTED]
> AIM - RobertJFP
> 
> 


~|
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: Component Conceptual Conundrum - Continued

2002-12-11 Thread Kevin Bridges
Makes sense ... I misunderstood the question.  As a side note, has anyone
actually done anything like this with cf web services?
http://www.infoscico.com/DbWebService/DbWebServiceClient.htm

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 8:18 AM
To: CF-Talk
Subject: RE: Component Conceptual Conundrum - Continued

I don't believe this is what he is talking about. Right now you can
'post' to a CFC using a form tag like so:



...

However, this posts to the generic Foo (not the best term I think) - I
believe it's simular to using a static method in Java. 

However, CF allows you to create instances of CFCs as well:



But you can't post directly to x.

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

~|
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: Component Conceptual Conundrum - Continued

2002-12-11 Thread Kevin Bridges
It's a static dhtml interface that adds/edits/updates/displays db data.
Each click of the button allows the interface to invoke a webservice and
performs one of the db functions outlined above.  In the MX world it is
similar to creating a flash interface and using flashRemoting to get data
into/out of the interface.  If you look in the status area of the browser
(bottom left corner) you'll see it interact with the web service as you
click the buttons ... seems like a great way to build interfaces for
applications w/o requiring flash.

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 8:32 AM
To: CF-Talk
Subject: RE: Component Conceptual Conundrum - Continued

what is so tricky about that webService?
is it a webService?

just wondering?



.tony

Tony Weeg
Senior Web Developer
UnCertified Advanced ColdFusion Developer
Information System Design
Navtrak, Inc.
Mobile workforce monitoring, mapping & reporting
www.navtrak.net
410.548.2337 

-Original Message-----
From: Kevin Bridges [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 10:25 AM
To: CF-Talk
Subject: RE: Component Conceptual Conundrum - Continued


Makes sense ... I misunderstood the question.  As a side note, has
anyone
actually done anything like this with cf web services?
http://www.infoscico.com/DbWebService/DbWebServiceClient.htm

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 8:18 AM
To: CF-Talk
Subject: RE: Component Conceptual Conundrum - Continued

I don't believe this is what he is talking about. Right now you can
'post' to a CFC using a form tag like so:



...

However, this posts to the generic Foo (not the best term I think) - I
believe it's simular to using a static method in Java. 

However, CF allows you to create instances of CFCs as well:



But you can't post directly to x.

===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email: [EMAIL PROTECTED]
WWW  : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 



~|
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.



Determining if cf is alive and communicative

2002-12-11 Thread Kevin Bridges
We need to write an agent in the *nix world to "ping" the cfmx services and
determine not only if they are running but that they are able to communicate
with an Oracle backend.  Does anyone have suggestions on how to approach
this problem?

Thanks,

Kevin Bridges  
~|
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: Component Conceptual Conundrum - Continued

2002-12-11 Thread Kevin Bridges
H ... considering I do strict _application_ development targeted
specifically for IE in a secured environment where people are not allowed to
update anything on their machines, much less see the internet, it is a great
solution.  The end users are on low end machines and the file MM let's you
download to distribute flash through intranets did not work properly behind
our firewalls (aka no updating of flash to MX) ... net result was a bunch of
blank screens yet again for relying on early generation MM technology, and
yet again we had to backpeddle to rewrite the MX solution we were so
thrilled with.  I have been burned badly by using MX and am looking for
non-MM related solutions that apply specifically to IE.  All of which is
irrelevant to the question which was simply if anyone had ever done it in an
application utilizing CF.  If I can reduce the traffic on our farm by
providing static interfaces that invoke/consume services vs complete page
requests I think it becomes an ideal solution for me that has no bearing
whatsoever on anyone's intelligence as a developer.

But hey, that's just the where I'm coming from and why I asked the question
.. thanks for the input.

-Original Message-
From: Samuel R. Neff [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 8:59 AM
To: CF-Talk
Subject: RE: Component Conceptual Conundrum - Continued

At 08:39 AM 12/11/2002, you wrote:
>(snip) click the buttons ... seems like a great way to build interfaces for
>applications w/o requiring flash.

Great, they don't need Flash but they need IE on Windows platform.
Advantage?



~|
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: application.cfm vs. cfinclude

2002-12-11 Thread Kevin Bridges
I can' recall the exact reason either but I have heard also that it is
extrememly bad form to use Application.cfm and OnRequestEnd.cfm to do any
type of cfincludes ... I got reprimanded in an article I wrote for including
header and footer files that way.

-Original Message-
From: Bruce Sorge [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 11, 2002 3:23 PM
To: CF-Talk
Subject: Re: application.cfm vs. cfinclude

But if he is already including it at the top of each page, and this is going
to continue to be the case, then I do not see any reason why you could not
do this.

- Original Message -
From: "Costas Piliotis" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 4:19 PM
Subject: RE: application.cfm vs. cfinclude


> I remember forta strongly advising against it.  Don't remember why, but he
> suggested that all you have in it is the  tag.
>
> With includes, you have full control over when they are included or not.
>
>
>
> -Original Message-
> From: Austin Govella [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 11, 2002 2:10 PM
> To: CF-Talk
> Subject: application.cfm vs. cfinclude
>
>
> I use includes for the DTD at the top of every page.
>
> I was planning on using cfinclude to add the DTDs, but if the application.
> cfm is automatically stuck at the top of every page, is there a reason why
> it'd be bad to ask the it to add the DTD?
>
> I was thinking I'd save myself some small bit of server load if it only
> processed te application.cfm, as opposed to processing application.cfm AND
> a cfinclude.
>
> And then there's the footer and the onrequestend.cfm file...
>
> --
> Austin Govella
> Grafofini
>
>
> 

~|
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: Updater 2 and Oracle ?

2002-12-13 Thread Kevin Bridges
http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenotes_mx
_updater.html#knownissues

The number of Oracle fixes outweigh the non-fixes for us by a long shot

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 13, 2002 3:31 PM
To: CF-Talk
Subject: Updater 2 and Oracle ?

I saw a quick mention in a post about known issues with updater 2 and 
Oracle.  I can't seem to find any information on this.  Does anyone have 
details?  Or, does anyone know if updater 1 is still available?  I need to 
get the dateDiff fix, but I can't have it cause problems with Oracle.

Thanks,
Erica


~|
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: RE: RE: CFMX and Java

2003-01-03 Thread Kevin Bridges
The only way you'll see a reversal in numbers/pay is if schools were capable
of separating business and actually educate ... Microsoft rules the schools
and uses the schools to "educate" students on Microsoft products, great for
MS, bad for the industry.

-Original Message-
From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:02 PM
To: CF-Talk
Subject: RE: RE: RE: CFMX and Java


I think the two big balance points are:

Java developers are more expensive because they are few in numbers.

v.

MSCDs and MSCEs are everywhere, and cheaper.

If java became the big open source language used by all, you would most
likely see a reversal in numbers vs. pay.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 11:38 AM
To: CF-Talk
Subject: Re: RE: RE: CFMX and Java

opps...
>Java as the open platform? Java is a platform supported by >multiple
vendors, yes, but I don't believe this qualifies it as >open

Java (these might be good questions..)
1.How many versions of JVM's do we have today?
2.Do all the basic Java API's work whether it be IBM/SUN/BEA/ORCALE?
3.What do you need to develop a Java J2EE/Other App?
J2EE complex and expensive talent..YES. But how many times does a
company re-write software?
Is Tomcat expensive? is J2SE(JDK) expensive? Maintenance contracts?

Vs

C#/Visual Basic (MS whatever)
What are your choices in development?(MS Only?).
How many vendors do we have for .NET Framework?
Will C# code run on any platform?
How much money are corportations spending on Licence agreements?
Contracts? MSDN subsciptions?
Talk about.. .Net Complexity?
It took me around 11/2hrs to get Webshpere Studio running and compiling
right...
It took me a couple days to get .NET framework/Visual Studio.Net running
right.. not to mention.. it messed up CFMX install first time... Oh
Yea.. Install took 2hrs..finished a full movie during the install..

Joe



---Original Message---
From: "Benjamin S. Rogers" <[EMAIL PROTECTED]>
Sent: 01/03/03 01:54 PM
To: CF-Talk <[EMAIL PROTECTED]>
Subject: RE: RE: CFMX and Java

>
> > With sofware giants like IBM/Oracle/Sun/Bea pushing Java
> and J2EE...Just guess.. the open platform is going to win.

>Java as the open platform? Java is a platform supported by >multiple
vendors, yes, but I don't believe this qualifies it as open (despite
what Sun's marketing department might say). C# and the CLI, on the other
hand, have been ratified by the ECMA. Whether or not that's a good thing
is up for debate, but I think it does exhibit a greater degree of
"openness."

> Have you read articles of Microsoft Windows.Net and what
> corporations think about their pricing..?

I think you're mixing up workstation and productivity software licensing
with server licensing. While quite a few are upset about the former,
"IBM/Oracle/Sun/Bea" compete in the latter. If we're comparing Oracle's
licensing to Microsoft's, well, I'll take Microsoft's any day of the
week.

Benjamin S. Rogers
http://www.c4.net/
v.508.240.0051
f.508.240.0057

-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:21 AM
To: CF-Talk
Subject: Re: RE: CFMX and Java


> I am not quite as optimistic about the future of Java

Interesting and funny!. I happen to do a little internet shopping around
Christmas and New year. About 75% of the GOOD Clothing/accessories/home
decor websites were JSP and am pretty sure they are in some fashion J2EE
compliant.. and scaled very well inspite of all the traffic(especially
ppl shopping for good prices and stuff)

I hope you know that CFMX is just a J2EE Application deployed on JRun
and quite interesting enough on IBM websphere.

With sofware giants like IBM/Oracle/Sun/Bea pushing Java and J2EE...Just
guess.. the open platform is going to win.
Have you read articles of Microsoft Windows.Net and what corporations
think about their pricing..?

I really think Linux/Lindows/Open Platform and Java will take off and in
this economy of corporate cutbacks.. corporations are actively looking
for cheaper solutions/software.

As for CFMX and Java... i think for heavy duty applications.. CFMX will
be suitable for Presentation Tier and Java will be used for all the
heavy duty middle tier processing..
btw (we are not talking about a comment form).

Joe


---Original Message---
From: Cary Gordon <[EMAIL PROTECTED]>
Sent: 01/03/03 12:12 PM
To: CF-Talk <[EMAIL PROTECTED]>
Subject: RE: Mr.Corfield: MX and beans

>
> I am not quite as optimistic about the future of Java as you are.  It
might

be around, in the sense that the once and future coolest language in the

world, APL, is still around...

At 11:38 AM 1/3/2003 -0500, you wrote:
>Personally, I'd write everything in beans if given the opportunity. Not
>to knock CF or NEthing, but I like the idea of my code be

RE: newbie school of hard knocks

2003-01-03 Thread Kevin Bridges
Your passing in quotes or single quotes as data and need to escape them ...
using cfqueryparam around your data is a good way of doing so

-Original Message-
From: Mike Miessen [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 2:31 PM
To: CF-Talk
Subject: RE: newbie school of hard knocks

I am getting the following error but I don't know what is wrong with my
statement can you point out the error of my ways?

The error I get is;

Syntax error or access violation: You have an error in your SQL syntax
near ''addressbook' WHERE FirstName = 'Mike' AND LastName = 'Miessen''
at line 2  
  
The Error Occurred in
D:\wwwroot\BlueGrassPro\datasources\emailformaction.cfm: line 8
 
6 : WHERE FirstName = '#Form.firstname#'
7 : AND LastName = '#Form.lastname#'
8 : 



My code is this;




SELECT COUNT(*)
FROM 'addressbook'
WHERE FirstName = '#Form.firstname#'
AND LastName = '#Form.lastname#'






~|
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



RE: RE: RE: CFMX and Java

2003-01-06 Thread Kevin Bridges
The only way you'll see a reversal in numbers/pay is if schools were capable
of separating business and actually educate ... Microsoft rules the schools
and uses the schools to "educate" students on Microsoft products, great for
MS, bad for the industry.

-Original Message-
From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:02 PM
To: CF-Talk
Subject: RE: RE: RE: CFMX and Java


I think the two big balance points are:

Java developers are more expensive because they are few in numbers.

v.

MSCDs and MSCEs are everywhere, and cheaper.

If java became the big open source language used by all, you would most
likely see a reversal in numbers vs. pay.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 11:38 AM
To: CF-Talk
Subject: Re: RE: RE: CFMX and Java

opps...
>Java as the open platform? Java is a platform supported by >multiple
vendors, yes, but I don't believe this qualifies it as >open

Java (these might be good questions..)
1.How many versions of JVM's do we have today?
2.Do all the basic Java API's work whether it be IBM/SUN/BEA/ORCALE?
3.What do you need to develop a Java J2EE/Other App?
J2EE complex and expensive talent..YES. But how many times does a
company re-write software?
Is Tomcat expensive? is J2SE(JDK) expensive? Maintenance contracts?

Vs

C#/Visual Basic (MS whatever)
What are your choices in development?(MS Only?).
How many vendors do we have for .NET Framework?
Will C# code run on any platform?
How much money are corportations spending on Licence agreements?
Contracts? MSDN subsciptions?
Talk about.. .Net Complexity?
It took me around 11/2hrs to get Webshpere Studio running and compiling
right...
It took me a couple days to get .NET framework/Visual Studio.Net running
right.. not to mention.. it messed up CFMX install first time... Oh
Yea.. Install took 2hrs..finished a full movie during the install..

Joe



---Original Message---
From: "Benjamin S. Rogers" <[EMAIL PROTECTED]>
Sent: 01/03/03 01:54 PM
To: CF-Talk <[EMAIL PROTECTED]>
Subject: RE: RE: CFMX and Java

>
> > With sofware giants like IBM/Oracle/Sun/Bea pushing Java
> and J2EE...Just guess.. the open platform is going to win.

>Java as the open platform? Java is a platform supported by >multiple
vendors, yes, but I don't believe this qualifies it as open (despite
what Sun's marketing department might say). C# and the CLI, on the other
hand, have been ratified by the ECMA. Whether or not that's a good thing
is up for debate, but I think it does exhibit a greater degree of
"openness."

> Have you read articles of Microsoft Windows.Net and what
> corporations think about their pricing..?

I think you're mixing up workstation and productivity software licensing
with server licensing. While quite a few are upset about the former,
"IBM/Oracle/Sun/Bea" compete in the latter. If we're comparing Oracle's
licensing to Microsoft's, well, I'll take Microsoft's any day of the
week.

Benjamin S. Rogers
http://www.c4.net/
v.508.240.0051
f.508.240.0057

-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:21 AM
To: CF-Talk
Subject: Re: RE: CFMX and Java


> I am not quite as optimistic about the future of Java

Interesting and funny!. I happen to do a little internet shopping around
Christmas and New year. About 75% of the GOOD Clothing/accessories/home
decor websites were JSP and am pretty sure they are in some fashion J2EE
compliant.. and scaled very well inspite of all the traffic(especially
ppl shopping for good prices and stuff)

I hope you know that CFMX is just a J2EE Application deployed on JRun
and quite interesting enough on IBM websphere.

With sofware giants like IBM/Oracle/Sun/Bea pushing Java and J2EE...Just
guess.. the open platform is going to win.
Have you read articles of Microsoft Windows.Net and what corporations
think about their pricing..?

I really think Linux/Lindows/Open Platform and Java will take off and in
this economy of corporate cutbacks.. corporations are actively looking
for cheaper solutions/software.

As for CFMX and Java... i think for heavy duty applications.. CFMX will
be suitable for Presentation Tier and Java will be used for all the
heavy duty middle tier processing..
btw (we are not talking about a comment form).

Joe


---Original Message---
From: Cary Gordon <[EMAIL PROTECTED]>
Sent: 01/03/03 12:12 PM
To: CF-Talk <[EMAIL PROTECTED]>
Subject: RE: Mr.Corfield: MX and beans

>
> I am not quite as optimistic about the future of Java as you are.  It
might

be around, in the sense that the once and future coolest language in the

world, APL, is still around...

At 11:38 AM 1/3/2003 -0500, you wrote:
>Personally, I'd write everything in beans if given the opportunity. Not
>to knock CF or NEthing, but I like the idea of my code be

Verity Query Based Index Searching - Help!

2000-06-28 Thread Kevin Bridges

I have multiple query based verity indexes setup on a server.  Unfortunately if I 
don't use verity the return time on a straight query is ridiculous because of the 
amount of info being searched.

Below are several pieces of code ... the first block works fine and the second block 
doesn't.  If I hardcode the state into the second query (the one that doesn't work 
with verity) it returns the expected results (after much twiddling of thumbs). The 
information that I hardcode into the query is exactly what comes across on the url.

I've tried everything I can think of to fix the problem but am at my wits end.  If 
anyone can help it would be greatly appreciated.

Thanks


This works:

- Refresh the Index -


SELECT ID, LAST_NAME FROM iMIS.Name WHERE (status = 'A')



- Search based on form submitted with get -




This Does not work:

- Refresh the Index -


SELECT ID, STATE_PROVINCE FROM iMIS.Name WHERE (status = 'A')



- Search based on form submitted with get -




But this does:


SELECT ID, STATE_PROVINCE FROM iMIS.Name WHERE (status = 'A') and 
state_province='AK'




--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



FW: [cfdjlist] RE: Clusters and Load Balancing

2001-12-14 Thread Kevin Bridges

::: -Original Message-
::: From: Simon Horwith [mailto:[EMAIL PROTECTED]]
::: Sent: Friday, December 14, 2001 9:59 AM
::: To: CFDJList
::: Subject: [cfdjlist] RE: Clusters and Load Balancing
::: 
::: 
::: Kevin,
:::   It sounds like you are approaching it the right way.  If 
::: you want further
::: advice though, I advise you to post the same question to 
::: the CF-Talk List,
::: attention of Dave Watts.  Dave's the CTO here at Fig Leaf, 
::: and has more
::: experience with this than anyone I know.
::: 
::: ~Simon
::: 
::: Simon Horwith
::: Macromedia Certified Instructor
::: Certified Advanced ColdFusion 5 Developer
::: Fig Leaf Software
::: 1400 16th St NW, # 500
::: Washington DC 20036
::: 202.797.6570 (direct line)
::: www.figleaf.com
::: 
::: 
::: 
::: -Original Message-
::: From: Kevin Bridges [mailto:[EMAIL PROTECTED]]
::: Sent: Friday, December 14, 2001 11:45 AM
::: To: CFDJList
::: Subject: [cfdjlist] Clusters and Load Balancing
::: 
::: 
::: Hi All,
::: 
::: In the process of putting together hardware requirements 
::: for a cf/http
::: cluster.  Don't have to worry about the db or db servers 
::: ... just cf and
::: http.
::: 
::: Our web applications are just that ... no graphics, binary 
::: data, or static
::: pages.  We control the user base and currently have about 
::: 600 users that
::: will be continuously using the system.  Each user is 
::: expected to initiate a
::: cf hit once every 20 seconds on average.  We are estimating 
::: 9 hour days for
::: each user so approximately 180,000 cf related hits in an 
::: hour during peak
::: times or 1,620,000 in a day.
::: 
::: I'm thinking we are going to start with 2 web servers 
::: (Netscape I-Planet)
::: and 2 cf servers.  What is the difference between round 
::: robin dns and
::: hardware based load balancers?  What type of hardware 
::: configurations should
::: be on each web machine and what should be on the cf 
::: machines?  Where should
::: I focus on spending money to allow for future growth.
::: 
::: The most useful information I've been able to find is located here:
::: http://www.teratech.com/teratech/custom/CF_Environ_Config_Gu
ide_Detailed.cfm

Anything else is appreciated!

Thanks,

~~
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



Cluster & Load Balancing

2001-12-14 Thread Kevin Bridges

Hi All,

In the process of putting together hardware requirements for a cf/http
cluster.  Don't have to worry about the db or db servers ... just cf and
http.

Our web applications are just that ... no graphics, binary data, or static
pages.  We control the user base and currently have about 600 users that
will be continuously using the system.  Each user is expected to initiate a
cf hit once every 20 seconds on average.  We are estimating 9 hour days for
each user so approximately 180,000 cf related hits in an hour during peak
times or 1,620,000 in a day.

I'm thinking we are going to start with 2 web servers (Netscape I-Planet)
and 2 cf servers.  What is the difference between round robin dns and
hardware based load balancers?  What type of hardware configurations should
be on each web machine and what should be on the cf machines?  Where should
I focus on spending money to allow for future growth.

The most useful information I've been able to find is located here:
http://www.teratech.com/teratech/custom/CF_Environ_Config_Guide_Detailed.cfm

Anything else is appreciated!

Thanks,

~~
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: Preventing URL Variables from being changed

2002-01-18 Thread Kevin Bridges

Yeah ... you should try variations of drop:table as the ID number 
(actually
you might not want to do that).  First of all make sure you are using
 in your queries.  Because you can't control what people 
do to
the urls consider using form variables ... but that is a security risk 
as
well.

So we did this to try and counter it:

http://sourceforge.net/projects/cfurlencrypt/

::: -Original Message-
::: From: David Douglas [mailto:[EMAIL PROTECTED]]
::: Sent: Friday, January 18, 2002 11:26 AM
::: To: CF-Talk
::: Subject: Preventing URL Variables from being changed
::: 
::: 
::: Hello,
::: 
::: I setup a view query where it only displays records on the 
::: user's ID.  I
::: notice that if I change the
::: ID name in the URL it will show the other records for that 
::: ID, I am sure
::: there is a simple way to prevent this.
::: 
::: Any help is greatly appreciated.
::: 
::: Thanks
::: 
::: Dave
::: 
::: __
::: Why Share?
:::   Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB 
::: HD / 20 GB MO/XFER
:::   Instant Activation · $99/Month · Free Setup
:::   http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
::: 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
__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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: html standards

2002-01-18 Thread Kevin Bridges

That cfhtmlhead tag is pretty sweet ... However, can someone please 
pass on
to Macromedia that it makes zero sense to call it like so:

It should be called like this:


Now if we want to start using cfhtmlhead we have to go through all of 
our js
code and make sure the quotes are escaped and don't conflict with the 
type
of quote you use in "".

::: -Original Message-
::: From: Dave Watts [mailto:[EMAIL PROTECTED]]
::: Sent: Friday, January 18, 2002 10:36 AM
::: To: CF-Talk
::: Subject: RE: html standards
::: 
::: 
::: > Were developing a rather large applciation/intranet where 
::: > there is a fair bit of code in application.cfm and in header 
::: > files and such. The  blah blah  
::: > section is in a file called dsp_header. In some pages, much 
::: > of the javascript gets included with the form as a simple 
::: > script block outside the  tags. Also, we've 
::: > recently put some javascript code in the application.cfm 
::: > file.
::: 
::: The short answer is, no, current browsers don't care where 
::: your JavaScript
::: is, as long as functions and objects are defined before 
::: they're referenced.
::: However, standards compliance is a good thing, all other 
::: things being equal,
::: and future browsers may care.
::: 
::: Fortunately, you can deal with this using the CFHTMLHEAD 
::: tag, which writes a
::: string to the HTML HEAD of the document. By itself, it's 
::: difficult to use
::: with strings containing JavaScript, so you can build 
::: yourself a little
::: four-line custom tag to automatically escape the strings:
::: 
::: 
::: 
::: 
::: 
::: 
::: Dave Watts, CTO, Fig Leaf Software
::: http://www.figleaf.com/
::: voice: (202) 797-5496
::: fax: (202) 797-5444
::: 
::: __
::: Dedicated Windows 2000 Server
:::   PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
:::   Instant Activation · $99/Month · Free Setup
:::   http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
::: 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
__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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: Problems with looping

2002-01-21 Thread Kevin Bridges

Does:



Evaluate to true for each employee?

::: -Original Message-
::: From: Angel Stewart [mailto:[EMAIL PROTECTED]]
::: Sent: Monday, January 21, 2002 8:02 AM
::: To: CF-Talk
::: Subject: Problems with looping
::: 
::: 
::: Hey all! 
::: 
::: Take a look at this code.
::: 
::: The idea of course, is to loop through all the employees in 
::: the table
::: and run a particular query against each employee.
::: 
::: ___
::: 
::: 
::: 
::: Select Employee_ID FROM Empl_General
::: 
:::   
::: 
::: 
::: 
::: 
::: :::  
::: 
::: 
::: 
::: Select SUM(RegHrs) AS TotalHours FROM
::: TblMainEntry,TblDetailEntry
::: ::: WHERE TblMainEntry.EmpID=
::: #GetEmployees.Employee_ID#
::: ::: AND tblDetailEntry.RecordDate=
::: to_date('#currentdate#','mm/dd/')
::: 
::: AND tblMainEntry.MainID = TblDetailEntry.MainID
::: 
::: 
::: 
::: 
::: 
::: #GetHours.Employee_ID#    #GetHours.TotalHours#
::: 
::: 
::: 
::: 
::: 
::: 
::: 
::: 
::: 
::: ___-
::: 
::: However, it picks up the first employee, runs through the 
::: SQL statements
::: etc. and then never goes onto the second.
::: 
::: Any idea why this is happening? 
::: 
::: I must be missing something really simple, but I can't 
::: figure out what.
::: 
::: -Angel
::: 
::: 
::: 
::: __
::: Why Share?
:::   Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB 
::: HD / 20 GB MO/XFER
:::   Instant Activation · $99/Month · Free Setup
:::   http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
::: 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
__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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: Problems with looping

2002-01-21 Thread Kevin Bridges

Looks like you are not reseting the value of CurrentDate.  So it loops
through first time until Current Date is not less than or eq to EndDate 
..
then when next employee comes up CurrentDate has not been reset so the
condition is false and the loop never runs.

Try something like this on the line above the loop:



::: -Original Message-
::: From: Kevin Bridges [mailto:[EMAIL PROTECTED]]
::: Sent: Monday, January 21, 2002 7:59 AM
::: To: CF-Talk
::: Subject: RE: Problems with looping
::: 
::: 
::: Does:
::: 
::: 
::: 
::: Evaluate to true for each employee?
::: 
::: ::: -Original Message-
::: ::: From: Angel Stewart [mailto:[EMAIL PROTECTED]]
::: ::: Sent: Monday, January 21, 2002 8:02 AM
::: ::: To: CF-Talk
::: ::: Subject: Problems with looping
::: ::: 
::: ::: 
::: ::: Hey all! 
::: ::: 
::: ::: Take a look at this code.
::: ::: 
::: ::: The idea of course, is to loop through all the employees in 
::: ::: the table
::: ::: and run a particular query against each employee.
::: ::: 
::: ::: ___
::: ::: 
::: ::: 
::: ::: 
::: ::: Select Employee_ID FROM Empl_General
::: ::: 
::: :::   
::: ::: 
::: ::: 
::: ::: 
::: ::: ::: ::: :::   
::: ::: 
::: ::: 
::: ::: 
::: ::: Select SUM(RegHrs) AS TotalHours FROM
::: ::: TblMainEntry,TblDetailEntry
::: ::: ::: WHERE ::: TblMainEntry.EmpI=
::: ::: #GetEmployees.Employee_ID#
::: ::: ::: ::: AND 
:tblDetailEntry.RecordDat=
::: ::: to_date('#currentdate#','mm/dd/')
::: ::: 
::: ::: AND tblMainEntry.MainID = 
::: TblDetailEntry.MainID
::: ::: 
::: ::: 
::: ::: 
::: ::: 
::: ::: 
::: ::: #GetHours.Employee_ID#    
::: #GetHours.TotalHours#
::: ::: 
::: ::: 
::: ::: 
::: ::: 
::: ::: 
::: ::: 
::: ::: 
::: ::: 
::: ::: 
::: ::: ___-
::: ::: 
::: ::: However, it picks up the first employee, runs through the 
::: ::: SQL statements
::: ::: etc. and then never goes onto the second.
::: ::: 
::: ::: Any idea why this is happening? 
::: ::: 
::: ::: I must be missing something really simple, but I can't 
::: ::: figure out what.
::: ::: 
::: ::: -Angel
::: ::: 
::: ::: 
::: ::: 
::: ::: __
::: ::: Why Share?
::: :::   Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB 
::: ::: HD / 20 GB MO/XFER
::: :::   Instant Activation · $99/Month · Free Setup
::: :::   http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
::: ::: 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
::: 
::: __
::: Dedicated Windows 2000 Server
:::   PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
:::   Instant Activation · $99/Month · Free Setup
:::   http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
::: 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
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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: Browser Detection UDF

2002-01-21 Thread Kevin Bridges

I just saw one in the exchange on macromedias site earlier today ... 
didn't
download it though so have no opinion about it ... I think I searched 
for
browser detect

::: -Original Message-
::: From: Russel Madere [mailto:[EMAIL PROTECTED]]
::: Sent: Monday, January 21, 2002 1:55 PM
::: To: CF-Talk
::: Subject: Browser Detection UDF
::: 
::: 
::: Does anyone have a UDF that will detect the type and 
::: version of a user's
::: browser?
::: 
::: I checks CFLib.org and could not find one.  I can probably 
::: write one, but I
::: need the time to do it and it is outside of the domain of 
::: the current
::: application I am working on.
::: 
::: Russel
::: 
::: __
::: Why Share?
:::   Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB 
::: HD / 20 GB MO/XFER
:::   Instant Activation · $99/Month · Free Setup
:::   http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
::: 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
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



Lost variables scope

2005-05-19 Thread Kevin Bridges
Hi,

I have am modifying a badly written mx6.1 system.  I have a request.core 
Object that has methods that allow cfscript to use  ... ie 
request.core.include( 'file.cfm' ) (cfinclude), request.core.dump( 
variables ) (cfdump);

I have a segment of code that contains these lines:

request.core.dump( variables );
request.core.include( '/Checkout/ordercomplete.cfm' );

When I dump the variables scope I see all of the variables I need, but 
the /Checkout/ordercomplete.cfm page does not see them.

Placing request.core.dump( variables ); as the first line of 
/Checkout/ordercomplete.cfm produces a dump of the request.core object.  
Somehow the variables scope has been replaced.  Anyone have any ideas 
why?  Here are the functions being called:











    


Best Regards,
Kevin Bridges





~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207151
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Lost variables scope

2005-05-19 Thread Kevin Bridges
The code I am working has survived several generations of developers and 
is a convoluted mess.  I would love nothing more than to be able to 
properly scope the variables being used throughout the rest of the 
application.  The original application developers (if you want to call 
them that) did not scope any variables and left that entirely to Cold 
Fusion to figure out.  The volumes of bad code are staggering ... 
changing one item can cause a cascading series of errors.

I do not have the option of properly scoping their variables.  But at 
the same time, I would like to be able to call cf tag based functions in 
cfscript without scoping issues ... or at least have enough knowledge to 
overcome them (facilitates the rewrite we will be doing). 

Is it a good practice to place methods in the request scope?  My CF has 
become a bit rusty ... how would I do that?  Is there a more appropriate 
location to store these types of functions?

Thanks
Kevin Bridges

S. Isaac Dealey wrote:

>Hi Kevin,
>
>It sounds like you're suffering from a ... well... scoping variables
>with cfc's is a little different. I'm told that at one point in time
>it was recommended that you could use cfinclude within a CFC method
>and the include would share variables with the CFC, but that hasn't
>been the case at least since the beta of the first version of MX.
>Since then the variables scope in your CFC is separate from the
>variables scope of your calling page and afaik there's not a
>good/convenient way to bridge that gap. In an OO purist sense this is
>a good thing, because it preserves encapsulation... I would imagine
>the easiest workaround for you is going to be to use the request scope
>instead of the variables scope for data used by your included files.
>Another alternative would be to make your include function not a part
>of your core CFC. If the function is instead simply injected into the
>request scope as for instance request.include() then it won't have its
>own variables scope to be confused with the variables scopes of the
>calling template or the template being included.
>
>hth
>
>s. isaac dealey   954.522.6080
>new epoch : isn't it time for a change?
>  
>

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207168
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54