RE: Form Field validation tag -- need help (EBW)

2002-11-25 Thread Erik Britt-Webb
For some reason, code after the HTML Horizontal Line Break was omitted.
Here it is again:















































































-Original Message-
From: Erik Britt-Webb [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:12 AM
To: CF-Talk
Subject: Form Field validation tag -- need help (EBW)


I've developed a form field validation tag that seems to work reasonably
well, but I'm thinking it would work even better as a UDF.  Does anyone
agree or disagree with that conclusion?  I'm attaching the code from the
custom tag below because I don't really know how to structure the CFScript
to accomplish the same goal as CFML.  If someone could help me get started
with the CFScript, I would greatly appreciate it.  Comments on the overall
approach are also welcome.  Thanks - Erik


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



Can a form pass a structured variable to target template? (EBW)

2002-11-25 Thread Erik Britt-Webb
If my form has 15 fields in it, rather than passing all 15 fields to the
target template, could I...
 - create a struct variable (e.g. UserProfile),
 - name each form field as a variable under the struct (e.g.,
UserProfile.FirstName, UserProfile.LastName)
 - still be able to use the struct variable (UserProfile) in the target
template??

I've tried this, but it doesn't seem to work.  Any assistance would be
great!

Thanks,
Erik

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



Form Field validation tag -- need help (EBW)

2002-11-25 Thread Erik Britt-Webb
I've developed a form field validation tag that seems to work reasonably
well, but I'm thinking it would work even better as a UDF.  Does anyone
agree or disagree with that conclusion?  I'm attaching the code from the
custom tag below because I don't really know how to structure the CFScript
to accomplish the same goal as CFML.  If someone could help me get started
with the CFScript, I would greatly appreciate it.  Comments on the overall
approach are also welcome.  Thanks - Erik



~|
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: temp variable storage?

2002-11-25 Thread Mosh Teitelbaum
If you don't want to create the hidden form fields by hand, you can always
loop over the FORM.FieldNames list as in:

   
  
 
  
   

If you just don't want to pass all of those variables along from page to
page, you can store them in SESSION.  Then, you'd use code like:

   
  
   

Or something like that.

Warning:  I'm dead tired at the moment and have not tested any of this code.
So there are probably some nasty problems with the code 8^).

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -Original Message-
> From: Brian Scandale [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 23, 2002 1:27 PM
> To: CF-Talk
> Subject: RE: temp variable storage?
>
>
> I would if I could but I can't. How the data is written depends
> upon the choices they make across the next 6 forms. Contact me
> off list if you want the gnarly details.
>
> So how are you all storing form.fields? I really don't want to
> create 100 hidden forms fields and pass them across all the pages
> until I need them again. Structures??? perhaps?
>
> At 10:21 AM 11/23/02, you wrote:
> >What dictates that the first form can't be written to the DB as
> soon as they
> >submit it?
> >
> >Ken
> >
> >
> >
> >-Original Message-
> >From: Brian Scandale [mailto:[EMAIL PROTECTED]]
> >Sent: Saturday, November 23, 2002 1:02 PM
> >To: CF-Talk
> >Subject: temp variable storage?
> >
> >
> >I have a large form (around 100 text boxes and check boxes etc...).  Once
> >the user submits it they still need to navigate about 6 more forms before
> >the data can be written to a database.
> >
> >How do I go about storing the form data temporarily until I can
> write it to
> >disk? I suspect there are more than one ways that you all are doing this.
> >
> >Thanks for a few clues.
> >
> >Brian
> >
> >
> >
> 
~|
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



isDefined() finesse

2002-11-25 Thread Brian Scandale
I am trying to see if a particular dynamic variable is defined... but having trouble 
building the ifDefined argument.

Form.SerNum1
Form.SerNum2
Form.SerNum3 ...etc. are built dynamically and then passed to an action form below 
like below.



DoSomething

DoSomethingElse



~|
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: Image creation

2002-11-25 Thread Jim Davis
> -Original Message-
> From: Scott Wolf [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, November 24, 2002 9:37 PM
> To: CF-Talk
> Subject: Re: Image creation
> 
> 
> Yes, I'm well aware of the CF-ness of this list.  It's why I 
> subscribed. :P
> 
> I'm referring to PHP's functionality because I know it can be 
> done in that language, otherwise I wouldn't bring it up.  
> There is a standard PHP library that allows a script to 
> create images on the fly.  You can either create a completely 
> new image and display it in a browser, or you can make 
> changes to an existing image.  I know that this functionality 
> doesn't exist normally in CF.  A more appropriate question 
> would be whether or not anyone knows of a component or 
> anything that can ADD that functionality to CF 5.0.  Any help 
> would be greatly appreciated.  Thanks!
> 
> Scott Wolf

There are many - some more specific than others.

Are you truly looking for a general purpose tool or are you looking for
something specific?  For example CF comes with a rather powerful
charting library and there are several other more powerful packages for
just that.

For the life of me I can't remember the name of it, but I've also worked
(briefly) with a really nice mapping package.

There are also several general packages out there.

The main thing is that CF itself doesn't do this - so you need something
else.  But your options are pretty broad (depending on platform).  You
can use COM, Java, CFX, Command Line Tools, etc.

The tag library has several tools.  CFX_GIFGD (I think that's the name)
is an old standard, but you get different reports on it's quality.  If
you're using MX the Java packages available are really very powerful,
but more complicated than some would like (myself included).

For charting I really love the power of GraphicsServer (available as a
CFX).  Any kind of chart you could possibly want is available (I'm
actually not sure if this is still available - we're using an older
version that does everything we could want).

If you give us some details about what you're trying to do it might be
easier to suggest a solution.

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: temp variable storage?

2002-11-25 Thread Brian Scandale
I would if I could but I can't. How the data is written depends upon the choices they 
make across the next 6 forms. Contact me off list if you want the gnarly details.

So how are you all storing form.fields? I really don't want to create 100 hidden forms 
fields and pass them across all the pages until I need them again. Structures??? 
perhaps?

At 10:21 AM 11/23/02, you wrote:
>What dictates that the first form can't be written to the DB as soon as they
>submit it?
>
>Ken
>
>
>
>-Original Message-
>From: Brian Scandale [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, November 23, 2002 1:02 PM
>To: CF-Talk
>Subject: temp variable storage?
>
>
>I have a large form (around 100 text boxes and check boxes etc...).  Once
>the user submits it they still need to navigate about 6 more forms before
>the data can be written to a database.
>
>How do I go about storing the form data temporarily until I can write it to
>disk? I suspect there are more than one ways that you all are doing this.
>
>Thanks for a few clues.
>
>Brian
>
>
>
~|
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: Compiling List of Files in specific folders

2002-11-25 Thread Jim Davis
> Thanks for the input below - I will certainly look for the 
> cf_dump.cfm tag. I am also pretty sure the server is runing 
> 4.5. I am going to analyze and review the rest of your 
> information as I hardly to work wtih tags. I use CF usually 
> for heavy SQL queries and integrating db's with flash.
> 
> As for what it needs to be - your point 4 - Specifically - I 
> did one of those $500 favor jobs for someone who referred me 
> a nice client. I simply want to automate a very low priority 
> - low activity list. http://www.redlinemotorcars.com 
>   - if you click on Car 
> Listings - you'll notice a little thumbnail and a click here. 
> Basically - that is manual. Each file in that carlisting 
> folder is a numbered html, 1001.html, 1002.html 1015.html 
> - Those are manually created. I am merely trying to grab all 
> the html files and simply list them. Images are in that file 
> named 1001.jpg, 1002.jpg and so on... so i can hardcode the 
> little thumbnail - you getting the picture? Just trying to 
> eliminate this person having to edit this page and maintain 
> it. or worse - being constantly called for me to do it ! *grin

Sorry to press - but that tag I linked to will do just that.

It does run on CF 4.5, and it can be called via CFMODULE in a hosted
environment.

Also, if you don't want to use it as a tag you could rip it open (it's
not encypted), however you need to use custom tags to do recursion down
directories - so if you just take the guts you can only do one directory
at a time (the tag, as is, will recurse down directories if instructed
to do so).

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



Macromedia-Talk list

2002-11-25 Thread Judith Dinowitz
http://www.houseoffusion.com/cf_lists/index.cfm?method=messages&threadid=2&forumid=28

Hi. I just posed a question in the Macromedia-Talk list and I'd love to get your 
feedback. 

Judith Dinowitz
Mistress of the House
House of Fusion


~|
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: When CFHTTP fails, use WGET

2002-11-25 Thread Teng-Yan Loke
Hi

> Instead,  I resorted to using WGET from http://www.wget.org
>  .  This utility has a million parameters and I
> have put the description at the bottom of this report.

I too have been having problems with cfhttp. I downloaded wget and started
tinkering with it.

Windows 2000 commandline invocation works well, but I can't get it to work
in CF code. My code is like this:





The page waits longer than if I were to run wget commandline, and a
zero-byte output file is created. What gives?

Thanx.


Teng-Yan Loke | [EMAIL PROTECTED] | +65-62169727
Developer | novaSPRINT Systems Pte Ltd

~|
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: Writing a file with CFFILE

2002-11-25 Thread Mosh Teitelbaum
Unless the client has JS disabled.  Then this method won't work at all.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -Original Message-
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 11:07 PM
> To: CF-Talk
> Subject: RE: Writing a file with CFFILE
>
>
> Not necessarily. Assuming you want to be able to enter text areas and the
> like (or any html actually) in your textarea, using htmledit format will
> allow you to enter it once -- but never update it after the fact because
> when you save it the 2nd time, it's no longer html code. The email I just
> sent off a moment ago explains a method (afaik the only method) of
> preserving the content in its original format, so it's still
> viable as html
> even after it's been saved several times.
>
> > Nevermind... I'm an idiot over thinking the basics...
> > HTMLEditFormat()..!
>
> > hehe,
> > Steve
>
> > -Original Message-
> > From: Steve Reich [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 25, 2002 9:26 PM
> > To: CF-Talk
> > Subject: RE: Writing a file with CFFILE
>
>
> >> I'm guessing you're using MX ... Probably using
> >> setEncoding() whether you
> >> specify ISO latin or UTF-8 on the form scope on the
> >> action page will
> > resolve
> >> the issue... I'd likely place it in the application.cfm
> >> and apply it to
> > both
> >> form and url.
>
>
> > Thanks! That fixed that problem. I have another one
> > now
>
> > If I call a file like this...
>
> > 
>
> > . then display it like this
>
> >  > name="contents">#output#
>
> > . I run into a problem if the variable output has a
> > textarea tag contained
> > within it. It sees the closing textarea tag in the output
> > variable as the
> > closing tag for the textarea used to display the variable.
> > All code after
> > the closing textarea is executed in the browser.
>
> > Example:
>
> > output = This is some
> > textThen some
> > other stuff
>
>
> >  > name="contents'>#output#
>
> > .equals
>
>
> > This is some text
>
> > Then some other stuff. Kind of a bitch to explain. Help!
>
>
>
> > TIA,
> > Steve
>
>
> > ~~
> > ~~~|
> > 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.
>
>
> s. isaac dealey954-776-0046
>
> new epoch  http://www.turnkey.to
>
> lead architect, tapestry cms   http://products.turnkey.to
>
> 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



RE: Writing a file with CFFILE

2002-11-25 Thread S . Isaac Dealey
Not necessarily. Assuming you want to be able to enter text areas and the
like (or any html actually) in your textarea, using htmledit format will
allow you to enter it once -- but never update it after the fact because
when you save it the 2nd time, it's no longer html code. The email I just
sent off a moment ago explains a method (afaik the only method) of
preserving the content in its original format, so it's still viable as html
even after it's been saved several times.

> Nevermind... I'm an idiot over thinking the basics...
> HTMLEditFormat()..!

> hehe,
> Steve

> -Original Message-
> From: Steve Reich [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 9:26 PM
> To: CF-Talk
> Subject: RE: Writing a file with CFFILE


>> I'm guessing you're using MX ... Probably using
>> setEncoding() whether you
>> specify ISO latin or UTF-8 on the form scope on the
>> action page will
> resolve
>> the issue... I'd likely place it in the application.cfm
>> and apply it to
> both
>> form and url.


> Thanks! That fixed that problem. I have another one
> now

> If I call a file like this...

> 

> . then display it like this

>  name="contents">#output#

> . I run into a problem if the variable output has a
> textarea tag contained
> within it. It sees the closing textarea tag in the output
> variable as the
> closing tag for the textarea used to display the variable.
> All code after
> the closing textarea is executed in the browser.

> Example:

> output = This is some
> textThen some
> other stuff


>  name="contents'>#output#

> .equals


> This is some text

> Then some other stuff. Kind of a bitch to explain. Help!



> TIA,
> Steve


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


s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

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

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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Writing a file with CFFILE

2002-11-25 Thread S . Isaac Dealey
> Thanks! That fixed that problem. I have another one
> now

> If I call a file like this...

> 

> .. then display it like this

>  name="contents">#output#

> .. I run into a problem if the variable output has a
> textarea tag contained
> within it.



Say no more... I had to deal with this issue with my CMS application. It's
the same problem that occurs with text fields and users entering
double-quotes where you've used something like



To the browser (because variable output / evaluation occurs on the server),
this appears as though you've simply typed in



or


  


Of course, because of the nature of html and browsers, you already know what
happens: The browser see's the double-quote and ends the attribute or the
 and ends the textarea...

The way around this is to create the form first, then populate the values
_after_ the form has finished rendering, using javascript. The qForms API (
http://www.pengoworks.com ) can make this a much simpler process... For
instance,


  



  function loadMyForm() {
document.myform.mytemplate.value = "#jsstringformat(myvalue)#";
  }


Something like this works okay, but every time you add a text field or a
textarea to the form, you also have to add lines of javascript. With qForms
and a tiny bit of wddx it's possible to populate a 500 field form with the
same half-dozen lines it takes to populate a 5 field form. I.e.:


  



  



  function loadMyForm() {
theform = new qForm("myform");

theform.setFields(formdata);
  }


Gotta love reusable code. :)

One caveat -- the  call will jsstringformat everything accept an
instance of  ( in which case, you run into the same problem you had
before with the form fields ) ... You can escape  as something like
<\/script> but you can't do it prior to the cfwddx call, and since the
cfwddx call outputs directly to javascript, this means if you need to allow
javascript blocks within your textarea, then you'll have to convert your
variables to javascript manually. Which isn't too tough -- just replace the
cfwddx tag with this:

formdata = new Object();

  formdata["#jsstringformat(x)#"]
= "#ReplaceNoCase(jsstringformat(form[x]),
  "","<\/script>","ALL")#";


Sorry about the line breaks, you know, email and all... :)

hth

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

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

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
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: Writing a file with CFFILE

2002-11-25 Thread Mosh Teitelbaum
Replace all ">" characters with ">" and all "<" characters with "<".
So you'd use:

", ">", "ALL")>

#output#

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -Original Message-
> From: Steve Reich [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 9:26 PM
> To: CF-Talk
> Subject: RE: Writing a file with CFFILE
>
>
> > I'm guessing you're using MX ... Probably using setEncoding()
> whether you
> > specify ISO latin or UTF-8 on the form scope on the action page will
> resolve
> > the issue... I'd likely place it in the application.cfm and apply it to
> both
> > form and url.
>
>
> Thanks! That fixed that problem. I have another one now
>
> If I call a file like this...
>
> 
>
> .. then display it like this
>
> #output#
>
> .. I run into a problem if the variable output has a textarea tag
> contained
> within it. It sees the closing textarea tag in the output variable as the
> closing tag for the textarea used to display the variable. All code after
> the closing textarea is executed in the browser.
>
> Example:
>
> output = This is some textThen some
> other stuff
>
>
> Then some other stuff
>
> I get a textarea with this:
> This is some text
>
> .Then some other stuff. Kind of a bitch to explain. Help!
>
>
> TIA,
> Steve
>
> 
~|
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: Writing a file with CFFILE

2002-11-25 Thread Steve Reich
Nevermind... I'm an idiot over thinking the basics... HTMLEditFormat()..!

hehe,
Steve

-Original Message-
From: Steve Reich [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 9:26 PM
To: CF-Talk
Subject: RE: Writing a file with CFFILE


> I'm guessing you're using MX ... Probably using setEncoding() whether you
> specify ISO latin or UTF-8 on the form scope on the action page will
resolve
> the issue... I'd likely place it in the application.cfm and apply it to
both
> form and url.


Thanks! That fixed that problem. I have another one now

If I call a file like this...



. then display it like this

#output#

. I run into a problem if the variable output has a textarea tag contained
within it. It sees the closing textarea tag in the output variable as the
closing tag for the textarea used to display the variable. All code after
the closing textarea is executed in the browser.

Example:

output = This is some textThen some
other stuff


Then some other stuff

I get a textarea with this:
This is some text

Then some other stuff. Kind of a bitch to explain. Help!


TIA,
Steve


~|
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: Locking Session Vars (CF5)

2002-11-25 Thread Tilbrook, Peter
Absolutely, even under CFMX it is a good idea to keep locking.

-Original Message-
From: Antony Sideropoulos [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 26 November 2002 1:08 PM
To: CF-Talk
Subject: Locking Session Vars (CF5)


Hi everyone

Under the philosophy that rules are made to be broken, I have routinely 
broken the rule about always locking session variables.

However, I'm trying to mend my ways.

My question is this:

Do I need to lock my session variables in the following example?  If so, 
what is the best / quickest / easiest way to do so:

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: Locking Session Vars (CF5)

2002-11-25 Thread Antony Sideropoulos
Thanks for your examples Mike.  I was just about to post back to another tip 
about how to deal with changes to session variables, but your OnRequestEnd 
tip has sorted that out for me.

Thanks for your advice.

>From: "Mike Brunt" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: RE: Locking Session Vars (CF5)
>Date: Mon, 25 Nov 2002 18:30:24 -0800
>
>Anthony, yes you do need to lock variables as shown in your example as a
>ReadOnly lock, believe when I tell you not locking can be very debilitating
>to an application.  There are alternatives, for instance we create and read
>all our Session variables in the request scope which does not need to be
>locked then we use these two pieces of code as follows: -
>
>In Application.cfm
>
>
>   
>
>
>In OnRequestEnd.cfm
>
>
>   
>
>
>Using this method you can write read all variables as request while using
>the Session scope to persist them.  You could then recode all your session
>vars to request either in one large exercise or if this is too big a job
>selectively change them as they cause issues.  Hth.
>
>Kind Regards - Mike Brunt, CTO
>Webapper
>Blog http://www.webapper.net
>Web site http://www.webapper.com
>Downey CA Office
>562.243.6255
>AIM - webappermb
>
>Web Application Specialists
>
>
>-Original Message-
>From: Antony Sideropoulos [mailto:[EMAIL PROTECTED]]
>Sent: Monday, November 25, 2002 6:08 PM
>To: CF-Talk
>Subject: Locking Session Vars (CF5)
>
>
>Hi everyone
>
>Under the philosophy that rules are made to be broken, I have routinely
>broken the rule about always locking session variables.
>
>However, I'm trying to mend my ways.
>
>My question is this:
>
>Do I need to lock my session variables in the following example?  If so,
>what is the best / quickest / easiest way to do so:
>
>EQ
>"Medium" or Session.Collections.Role EQ "High")?
>
>To my mind, having to code a lock for the session variable used in the 
>above
>if statement adds a lot of extra lines of code, and takes longer to 
>develop.
>
>(My CF5 administrator settings are No automatic checking or locking for
>server, application and session scope vars, and the single threaded 
>sessions
>box is not checked.)
>
>TIA
>
>
>
>
>
~|
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: Locking Session Vars (CF5)

2002-11-25 Thread Mike Brunt
Anthony, yes you do need to lock variables as shown in your example as a
ReadOnly lock, believe when I tell you not locking can be very debilitating
to an application.  There are alternatives, for instance we create and read
all our Session variables in the request scope which does not need to be
locked then we use these two pieces of code as follows: -

In Application.cfm





In OnRequestEnd.cfm





Using this method you can write read all variables as request while using
the Session scope to persist them.  You could then recode all your session
vars to request either in one large exercise or if this is too big a job
selectively change them as they cause issues.  Hth.

Kind Regards - Mike Brunt, CTO
Webapper
Blog http://www.webapper.net
Web site http://www.webapper.com
Downey CA Office
562.243.6255
AIM - webappermb

Web Application Specialists


-Original Message-
From: Antony Sideropoulos [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 6:08 PM
To: CF-Talk
Subject: Locking Session Vars (CF5)


Hi everyone

Under the philosophy that rules are made to be broken, I have routinely
broken the rule about always locking session variables.

However, I'm trying to mend my ways.

My question is this:

Do I need to lock my session variables in the following example?  If so,
what is the best / quickest / easiest way to do so:

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: Writing a file with CFFILE

2002-11-25 Thread Steve Reich
> I'm guessing you're using MX ... Probably using setEncoding() whether you
> specify ISO latin or UTF-8 on the form scope on the action page will
resolve
> the issue... I'd likely place it in the application.cfm and apply it to
both
> form and url.


Thanks! That fixed that problem. I have another one now

If I call a file like this...



.. then display it like this

#output#

.. I run into a problem if the variable output has a textarea tag contained
within it. It sees the closing textarea tag in the output variable as the
closing tag for the textarea used to display the variable. All code after
the closing textarea is executed in the browser.

Example:

output = This is some textThen some
other stuff


Then some other stuff

I get a textarea with this:
This is some text

.Then some other stuff. Kind of a bitch to explain. Help!


TIA,
Steve

~|
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: Locking Session Vars (CF5)

2002-11-25 Thread S . Isaac Dealey
> Hi everyone

> Under the philosophy that rules are made to be broken, I
> have routinely
> broken the rule about always locking session variables.

> However, I'm trying to mend my ways.

> My question is this:

> Do I need to lock my session variables in the following
> example?  If so,
> what is the best / quickest / easiest way to do so:

>  (Session.Collections.Role EQ
> "Medium" or Session.Collections.Role EQ "High")?

> To my mind, having to code a lock for the session variable
> used in the above
> if statement adds a lot of extra lines of code, and takes
> longer to develop.

> (My CF5 administrator settings are No automatic checking
> or locking for
> server, application and session scope vars, and the single
> threaded sessions
> box is not checked.)

If this is software that's intended for consumption by other companies, I
would recommend this in your application.cfm





Then make all reverences to session. ( as above ) within the rest of your
templates to request.session instead. This prevents you having to fill the
application up with tons of cflock tags and ensures that the app will work
on someone else's server, even if they have full-checking enabled in the cf
administrator. This is also a good way to easily ( little code ) shore up
those leaky session variables prior to CF MX.

If this is software intended solely for internal consumption, you can get
better performance by name locking individual variables or routines,
although it requires more code, and afaik there's still the risk of leaky
session vars prior to MX.

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

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

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



Re: Locking Session Vars (CF5)

2002-11-25 Thread Brook Davies
You need a readonly lock around this because you are reading the Session 
Var. You do not need it for the Isdefined. If you are using this session 
var numerous times on the same page, I think its best to dump it into a 
local var at the top of the page within a cflock, and then reference the 
local var throughout the page. This is as opposed to locking each instance 
throughout the page - which would be slower.


 


or just but a readonly lock around that chunk of code..


Brook

At 01:08 PM 26/11/02 +1100, you wrote:
>Hi everyone
>
>Under the philosophy that rules are made to be broken, I have routinely
>broken the rule about always locking session variables.
>
>However, I'm trying to mend my ways.
>
>My question is this:
>
>Do I need to lock my session variables in the following example?  If so,
>what is the best / quickest / easiest way to do so:
>
>"Medium" or Session.Collections.Role EQ "High")?
>
>To my mind, having to code a lock for the session variable used in the above
>if statement adds a lot of extra lines of code, and takes longer to develop.
>
>(My CF5 administrator settings are No automatic checking or locking for
>server, application and session scope vars, and the single threaded sessions
>box is not checked.)
>
>TIA
>
>
>
>
~|
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.



Locking Session Vars (CF5)

2002-11-25 Thread Antony Sideropoulos
Hi everyone

Under the philosophy that rules are made to be broken, I have routinely 
broken the rule about always locking session variables.

However, I'm trying to mend my ways.

My question is this:

Do I need to lock my session variables in the following example?  If so, 
what is the best / quickest / easiest way to do so:

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: Java in CF (CFMX)

2002-11-25 Thread Joe Eugene
> would like to see CFMX be able to pass null to Java correctly but I
> suspect it wouldn't be trivial to do (adding 'null' to a language that

Adding 'null' would be nice, i would also like to have an option to declare
variable types(int, double etc), i think this would have a big impact on
performance.

Joe

> -Original Message-
> From: Sean A Corfield [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 6:24 PM
> To: CF-Talk
> Subject: Re: Java in CF (CFMX)
>
>
> On Monday, Nov 25, 2002, at 14:32 US/Pacific, Joe Eugene wrote:
> > Here is an Example that works with CFMX. The Java file should be
> > compiled
> > under WEB-INF/classes/
> > ...
> >  if(c.equalsIgnoreCase("null")) cat=null; else cat=c;
> >  if(s.equalsIgnoreCase("null")) schPattern=null; else schPattern=s;
> >  if(t.equalsIgnoreCase("null")) tblNPattern=null; else tblNPattern=t;
>
> But Dick's point is that you cannot natively pass null into Java - you
> are currently forced to write a Java wrapper class as you have done. I
> would like to see CFMX be able to pass null to Java correctly but I
> suspect it wouldn't be trivial to do (adding 'null' to a language that
> doesn't have it has a semantic impact right across the language because
> you have to define in every case what happens in an expression if one
> of your sub-expressions is null).
>
> 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: Writing a file with CFFILE

2002-11-25 Thread S . Isaac Dealey
> I have a code editor I've written that uses cffile to grab
> a cf page and put
> it in a textarea. Then I can edit my cf code and save it
> by writing back to
> the file using cffile. Everything seems to work fine
> except with the
> non-braking spaces character ( ). It replaces all
>   with a Â
> (alt+0194) character. Can someone shed some light on this
> problem and a
> solution?

I'm guessing you're using MX ... Probably using setEncoding() whether you
specify ISO latin or UTF-8 on the form scope on the action page will resolve
the issue... I'd likely place it in the application.cfm and apply it to both
form and url.

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

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

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



Re: File upload <> cf threads question

2002-11-25 Thread Howie Hamlin
The web server receives the file and then passes control to CF.  For a large file you 
would be tying up a web server
process - not a CF process.

HTH,

--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com  - 631-737-4668 x101
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
>>> Find out how iMS Stacks up to the competition: 
>http://www.coolfusion.com/imssecomparison.cfm

- Original Message -
From: "Peter" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 7:10 PM
Subject: File upload <> cf threads question


> Hello!
>
> A short question - at which point of a file upload operation coldfusion
> gets the control? At the moment the upload is initiated by the user or not
>
> until the file is uploaded completly to the server?
>
> I am asking this because of the fact that only several worker threads are
>
> created (f.e. 10) and if 10 people are uploading a big file all other
> requests would be queued.
>
>
> Best regards,
>
> Peter
> 
~|
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



File upload <> cf threads question

2002-11-25 Thread Peter
Hello!

A short question - at which point of a file upload operation coldfusion 
gets the control? At the moment the upload is initiated by the user or not 

until the file is uploaded completly to the server?

I am asking this because of the fact that only several worker threads are 

created (f.e. 10) and if 10 people are uploading a big file all other 
requests would be queued.


Best regards,

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



CFLDAP

2002-11-25 Thread Ciliotta, Mario
Hi,

I was wondering if someone could help me out with some LDAP help.  I am trying to 
write a page that verifies a users id and password against an LDAP server, but I am 
unsure of what I should be checking for.  Here is the code that I am using:




 



#test.columnList#



If I try it with my NT login and password all I get back on the screen is NAME,VALUR 
repeated 11 times.

If I use the wrong password I get this:

Error Diagnostic Information
CFLDAP

Invalid credentials

The error occurred while processing an element with a general identifier of (CFLDAP), 
occupying document position (3:1) to (6:72).


Date/Time: 11/25/02 19:02:09
Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
Remote Address: 169.37.88.63
HTTP Referer: http://snyc11612.app.csfb.net/mario/test_ldap_badpwd.cfm

 

Do I need to trap for this error, to force users to try again.

If anyone has any examples or any idea that would be great.

Thanks in advance

Mario
 

This message is for the named person's use only. It may contain sensitive and private 
proprietary or legally privileged information. No confidentiality or privilege is 
waived or lost by any mistransmission. If you are not the intended recipient, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON 
or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve 
the right to monitor all e-mail communications through its networks. Any views 
expressed in this message are those of the individual sender, except where the message 
states otherwise and the sender is authorized to state them to be the views of any 
such entity.
Unless otherwise stated, any pricing information given in this message is indicative 
only, is subject to change and does not constitute an offer to deal at any price 
quoted. Any reference to the terms of executed transactions should be treated as  
preliminary only and subject to our formal written confirmation.


~|
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: Java in CF (CFMX)

2002-11-25 Thread Dick Applebaum
This is quite a thread -- it seems to mean something different to each  
of us:

convenience

flexibility

functionality

good design

performance

readable code

development productivity

maintainability

conformance to Java/CF standards and best practices

aid to learning Java

So far, I think that every point made has been valid, even though some  
of them are direct contradictions.

Things like:  (I paraphrase) "If you are on a shared server, this is a  
security risk, and would be crippled".

and the response: "That's true, but if you are on a developer machine  
and/or a dedicated server, inline Java would be quite an advantage".

  Let me reapproach the topic of inline Java, this way:

Since it means so many different things to different people, it seems  
to make sense to include the capability in CF -- just another tool to  
help us
RADD applications.

Worried about security, coding standards, and all the potential  
downsides? -- include the capability to cripple the function with the  
CF Admin.

If it is a major effort to implement (I suspect it isn't), then there  
are likely things of much higher priority.

But, it would be nice to have this capability!

Dick



On Monday, November 25, 2002, at 03:11 PM, Joe Eugene wrote:

> You loose alot of flexibility.. on a shared server.. How many ppl are  
> running
> enterprise CFMX on shared servers?
> Have ever had to call a function/method in CF around 1000 times on a  
> page? Do
> some math with it...CFObject(Java) blows CF..try it.
>
> Joe
>
> On Mon, 25 Nov 2002 23:58:02 +0100 Jochem van Dieten  
> <[EMAIL PROTECTED]>
> wrote:
>
>> Joe Eugene wrote:
>>
 wouldn't need to happen.
>>>
>>> Where do u want it happen?
>>
>> At some MM production facility. As I said,
>> cfobject is a no-go on a
>> shared server.
>>
>> 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
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: CFQUERYPARAM in cfincludes

2002-11-25 Thread Peter
This does not work because I have to use certain parameters which I want 
to 
include with cfqueryparam. I don't think an application variable can hold 
a 
cfqueryparam statement - only fix strings. Well ... maybe something like 
that:



and than do a ReplaceNoCase before inserting the string into the query.

On the other hand that are not very nice solutions and it seems that I 
have 
to stick with simple variables and not parameters.

Peter


Orginale Nachricht
Von: "Jim Campbell" <[EMAIL PROTECTED]>
Betreff: RE: CFQUERYPARAM in cfincludes
Datum/Zeit: Montag, 25. November 2002 23:59:37 

> ColdFusion is likely building the contents of the 
common_where_clause.cfm
> tag before it parses the whole template, so it sounds like it's trying 
to
> evaluate those cfqueryparam tags before it realizes they're supposed to 
be
> contained in a cfquery statement.
> 
> If you store your common SQL statement snippets in an application 
variable
> instead of separate files, does it throw the same error?
> 
> - 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: Java in CF (CFMX)

2002-11-25 Thread Dick Applebaum
Wheee!

On Monday, November 25, 2002, at 03:32 PM, Rob Rohan wrote:

> Bet you could add 'null' if you could do inline java
>
> :)
>
>
> just kidding
> Rob
>
> -Original Message-
> From: Sean A Corfield [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 3:24 PM
> To: CF-Talk
> Subject: Re: Java in CF (CFMX)
>
>
> On Monday, Nov 25, 2002, at 14:32 US/Pacific, Joe Eugene wrote:
>> Here is an Example that works with CFMX. The Java file should be
>> compiled
>> under WEB-INF/classes/
>> ...
>>  if(c.equalsIgnoreCase("null")) cat=null; else cat=c;
>>  if(s.equalsIgnoreCase("null")) schPattern=null; else schPattern=s;
>>  if(t.equalsIgnoreCase("null")) tblNPattern=null; else tblNPattern=t;
>
> But Dick's point is that you cannot natively pass null into Java - you
> are currently forced to write a Java wrapper class as you have done. I
> would like to see CFMX be able to pass null to Java correctly but I
> suspect it wouldn't be trivial to do (adding 'null' to a language that
> doesn't have it has a semantic impact right across the language because
> you have to define in every case what happens in an expression if one
> of your sub-expressions is null).
>
> 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
Get the mailserver that powers this list at http://www.coolfusion.com



PLC w/ ColdFusion

2002-11-25 Thread Jacob
Has anybody ever tried using PLC (Progammable Logic Controller) with 
ColdFusion?  Interface the two together?

Thanks
Jacob

~|
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: Java in CF (CFMX)

2002-11-25 Thread Jochem van Dieten
Joe Eugene wrote:

> You loose alot of flexibility.. on a shared server.. How many ppl are 
> running enterprise CFMX on shared servers? 

You mean people run shared servers *without* sandbox security?
/me rolles eyes

> Have ever had to call a function/method in CF around 1000 times on a 
> page? Do some math with it...CFObject(Java) blows CF..

Needing the performance of Java is an entirely different situation from 
needing the features of Java. If you need the performance of Java, the 
more common upgrade path from shared hosting is to first get a dedicated 
server, then start rewriting CFML code in something faster. If you need 
the features of Java, for instance the ability to access the 
DatabaseMetaData interface, but you don't need the performance, you 
would still be forced to upgrade to a dedicated server because no 
sensible host will allow cfobject on a shared server.

A way in between would be some java custom tag, but it has both the 
disadvantages of a built-in tag, less flexibility, and of something 
custom made, the effort to get it on the host.

> try it.

I hope you are not seriously suggesting I allow anybody but myself 
(administrator) access to cfobject on a shared host.

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
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: Java in CF (CFMX)

2002-11-25 Thread Rob Rohan
Bet you could add 'null' if you could do inline java

:)


just kidding
Rob

-Original Message-
From: Sean A Corfield [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 3:24 PM
To: CF-Talk
Subject: Re: Java in CF (CFMX)


On Monday, Nov 25, 2002, at 14:32 US/Pacific, Joe Eugene wrote:
> Here is an Example that works with CFMX. The Java file should be
> compiled
> under WEB-INF/classes/
> ...
>  if(c.equalsIgnoreCase("null")) cat=null; else cat=c;
>  if(s.equalsIgnoreCase("null")) schPattern=null; else schPattern=s;
>  if(t.equalsIgnoreCase("null")) tblNPattern=null; else tblNPattern=t;

But Dick's point is that you cannot natively pass null into Java - you
are currently forced to write a Java wrapper class as you have done. I
would like to see CFMX be able to pass null to Java correctly but I
suspect it wouldn't be trivial to do (adding 'null' to a language that
doesn't have it has a semantic impact right across the language because
you have to define in every case what happens in an expression if one
of your sub-expressions is null).

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
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: Java in CF (CFMX)

2002-11-25 Thread Sean A Corfield
On Monday, Nov 25, 2002, at 14:32 US/Pacific, Joe Eugene wrote:
> Here is an Example that works with CFMX. The Java file should be 
> compiled
> under WEB-INF/classes/
> ...
>  if(c.equalsIgnoreCase("null")) cat=null; else cat=c;
>  if(s.equalsIgnoreCase("null")) schPattern=null; else schPattern=s;
>  if(t.equalsIgnoreCase("null")) tblNPattern=null; else tblNPattern=t;

But Dick's point is that you cannot natively pass null into Java - you 
are currently forced to write a Java wrapper class as you have done. I 
would like to see CFMX be able to pass null to Java correctly but I 
suspect it wouldn't be trivial to do (adding 'null' to a language that 
doesn't have it has a semantic impact right across the language because 
you have to define in every case what happens in an expression if one 
of your sub-expressions is null).

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
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: Java in CF (CFMX)

2002-11-25 Thread Dick Applebaum
Rob

You are right!

The thread is/was about inline Java (someone, maybe you started it)

I posted that I would like to see inline Java for several reasons:

to gently learn Java

to get at some capabilities  not available in CF

etc.

Several others posted.

Then, Jochem posted that he thought inline Java was a security exposure  
and
MM should provide some superfunctions, for example getting  
DatabaseMetaData.

I posted that this was one of the things I wanted to do with inline  
Java but would be
prefer a superfunction.  I also said that I had a working Java program  
that accessed
DatabaseMetaData, but could not accomplish the same with CF.

Joe posted asking to see the code

--and you know the rest.

So, the thread changed topic a little --  to how interface CF to a Java  
program to get
DatabaseMateData.

I  haven't  tried Joe's code yet, but it looks like it will work --  
Thanks Joe! (I'll report back, later).

But, Rob, your point was well made -- with inline Java, you wouldn't  
need to have a separate
Java program to interface, maintain, compile, etc.

This could be done entirely in a single CF program, if inline Java were  
available -- and it would
be a lot cleaner and much much more consistent with the "ease-of-use"  
and "self-documenting"
philosophy/strength of CF..

In fact, this is exactly the kind of Java snippet (and justification) I  
had in mind when
I originally posted to this thread.

Dick


On Monday, November 25, 2002, at 02:45 PM, Rob Rohan wrote:

> Thought this thread was still about inline java. Sorry - maybe it was
> another thread.
>
> nevermind.
>
> Rob
>
> -Original Message-
> From: Joe Eugene [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 2:40 PM
> To: CF-Talk
> Subject: RE: Java in CF (CFMX)
>
>
>> wouldn't need to happen.
> Where do u want it happen?
>
> Joe
>
> On Mon, 25 Nov 2002 14:37:29 -0800 Rob Rohan <[EMAIL PROTECTED]>  
> wrote:
>
>> See though the whole point is
>>
>>> The Java file should be compiled
>>> under WEB-INF/classes/
>>> and you can invoke it with CFObject.
>>
>
>>
>>
>> Rob
>>
>> Certified Organic
>> "When you put things in quotes, people think
>> someone actually said it."
>> http://treebeard.sourceforge.net
>> http://ruinworld.sourceforge.net
>> Scientia Est Potentia
>>
>> -Original Message-
>> From: Joe Eugene [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, November 25, 2002 2:33 PM
>> To: CF-Talk
>> Subject: Re: Java in CF (CFMX)
>>
>>
>> Dick,
>> Here is an Example that works with CFMX. The
>> Java file should be compiled
>> under WEB-INF/classes/
>> and you can invoke it with CFObject. Note i am
>> using Macromedia drivers to
>> connect to Sql-Server.
>> This is rough sketch..if you want.. i can
>> improvise this later..to be
>> generic.
>> Dont forget to substitute your Database
>> Name,server name, userid and
>> password.
>> The method call returns a list of table names.
>>
>> /*Java File*/
>>
>> import java.sql.*;
>> import java.util.*;
>>
>> public class MetaData{
>>
>>  String
>> driverName="macromedia.jdbc.MacromediaDriver";
>>  String
>> url="jdbc:macromedia:sqlserver://SqlServer:1433";
>>  String userid="YourUserid";
>>  String pwd="YourPassword";
>>  private String cat,schPattern,tblNPattern;
>>  private String tblTypes[];
>>
>>  public void setParms(String c,String s, String
>> t){
>>  if(c.equalsIgnoreCase("null")) cat=null; else
>> cat=c;
>>  if(s.equalsIgnoreCase("null"))
>> schPattern=null; else schPattern=s;
>>  if(t.equalsIgnoreCase("null"))
>> tblNPattern=null; else tblNPattern=t;
>>  tblTypes=null;
>>  }
>> /*String
>> driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver";
>>  //String
>> url="jdbc:microsoft:sqlserver://SqlServer:1433";
>> */
>>
>>  public String getTablesOnly(){
>>   StringBuffer sb = new StringBuffer();
>>   try{
>>   Class.forName(driverName);
>>   Connection con =
>> DriverManager.getConnection(url,userid,pwd);
>>   DatabaseMetaData md = con.getMetaData();
>>
>> //System.out.println(md.getSQLKeywords()+"\n\n");
>>
>> //System.out.println(md.getNumericFunctions());
>>
>>   //String tbTypes[]={"TABLE","User"};
>>   ResultSet rs =
>> md.getTables(cat,schPattern,tblNPattern,tblTypes);
>>
>>   while(rs.next()){
>>   sb.append(rs.getString("TABLE_NAME")+',');
>>   }
>>   rs.close();
>>   con.close();
>>   return sb.toString();
>>}catch(Exception e){
>> return e.toString();
>>   }
>>
>>  }//end getTablesOnly
>>
>> /*
>>  public static void main(String argv[]){
>>   MetaData m = new MetaData();
>>   System.out.println(m.getTablesOnly());
>>  }
>> */
>> }
>>
>>
>>
>>
>>
>>
>>
>> Hope this gives you an idea.
>> Joe
>>
>>
>>
>> On Mon, 25 Nov 2002 10:56:57 -0800 Dick
>> Applebaum
>> wrote:
>>
>>> Joe
>>>
>>> Below is the Java source, originally caalled
>>> DBViewer.
>>>
>>> This is working code that I modified to use
>> the
>>> CFMX cfsnippets db (The
>>> PointBase
>>> database shipped with the Linux distro).
>>>
>>> I want to accomplish the same

Re: Java in CF (CFMX)

2002-11-25 Thread Joe Eugene
You loose alot of flexibility.. on a shared server.. How many ppl are running
enterprise CFMX on shared servers? 
Have ever had to call a function/method in CF around 1000 times on a page? Do
some math with it...CFObject(Java) blows CF..try it.

Joe

On Mon, 25 Nov 2002 23:58:02 +0100 Jochem van Dieten <[EMAIL PROTECTED]>
wrote:

> Joe Eugene wrote:
> 
> > >wouldn't need to happen.
> >
> > Where do u want it happen?
> 
> At some MM production facility. As I said,
> cfobject is a no-go on a 
> shared server.
> 
> 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



Writing a file with CFFILE

2002-11-25 Thread Steve Reich
I have a code editor I've written that uses cffile to grab a cf page and put
it in a textarea. Then I can edit my cf code and save it by writing back to
the file using cffile. Everything seems to work fine except with the
non-braking spaces character ( ). It replaces all   with a Â
(alt+0194) character. Can someone shed some light on this problem and a
solution?

TIA,
Steve Reich

~|
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: Java in CF (CFMX)

2002-11-25 Thread Jim Campbell
True, but have you ever used the cfmodule tag,  or  anything,
?  Why bother using them when you could just write all that code
inline with your current template source?

By encapsulating that function seperately, you not only make the template
code more readable, but leave it available for any other templates, CFCs or
whatever that needs to use it.

- Jim

-Original Message-
From: Rob Rohan [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 4:37 PM
To: CF-Talk
Subject: RE: Java in CF (CFMX)


See though the whole point is

>The Java file should be compiled
>under WEB-INF/classes/
>and you can invoke it with CFObject.

wouldn't need to happen.


Rob

Certified Organic
"When you put things in quotes, people think someone actually said it."
http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 2:33 PM
To: CF-Talk
Subject: Re: Java in CF (CFMX)


Dick,
Here is an Example that works with CFMX. The Java file should be compiled
under WEB-INF/classes/
and you can invoke it with CFObject. Note i am using Macromedia drivers to
connect to Sql-Server.
This is rough sketch..if you want.. i can improvise this later..to be
generic.
Dont forget to substitute your Database Name,server name, userid and
password.
The method call returns a list of table names.

/*Java File*/

import java.sql.*;
import java.util.*;

public class MetaData{

 String driverName="macromedia.jdbc.MacromediaDriver";
 String url="jdbc:macromedia:sqlserver://SqlServer:1433";
 String userid="YourUserid";
 String pwd="YourPassword";
 private String cat,schPattern,tblNPattern;
 private String tblTypes[];

 public void setParms(String c,String s, String t){
 if(c.equalsIgnoreCase("null")) cat=null; else cat=c;
 if(s.equalsIgnoreCase("null")) schPattern=null; else schPattern=s;
 if(t.equalsIgnoreCase("null")) tblNPattern=null; else tblNPattern=t;
 tblTypes=null;
 }
/*String driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver";
 //String url="jdbc:microsoft:sqlserver://SqlServer:1433";
*/

 public String getTablesOnly(){
  StringBuffer sb = new StringBuffer();
  try{
  Class.forName(driverName);
  Connection con = DriverManager.getConnection(url,userid,pwd);
  DatabaseMetaData md = con.getMetaData();
  //System.out.println(md.getSQLKeywords()+"\n\n");
  //System.out.println(md.getNumericFunctions());

  //String tbTypes[]={"TABLE","User"};
  ResultSet rs = md.getTables(cat,schPattern,tblNPattern,tblTypes);

  while(rs.next()){
  sb.append(rs.getString("TABLE_NAME")+',');
  }
  rs.close();
  con.close();
  return sb.toString();
   }catch(Exception e){
return e.toString();
  }

 }//end getTablesOnly

/*
 public static void main(String argv[]){
  MetaData m = new MetaData();
  System.out.println(m.getTablesOnly());
 }
*/
}







Hope this gives you an idea.
Joe



On Mon, 25 Nov 2002 10:56:57 -0800 Dick Applebaum <[EMAIL PROTECTED]>
wrote:

> Joe
>
> Below is the Java source, originally caalled
> DBViewer.
>
> This is working code that I modified to use the
> CFMX cfsnippets db (The
> PointBase
> database shipped with the Linux distro).
>
> I want to accomplish the same thing within
> CFMX, and generalize it a
> bit so it will
> work with any JDBC driver and database,
> remote or local, on any platform.
>
> For remote dbs, there will be a stub program
> that determines the
> platform, CF
> version, etc. and Uses COM objects or the Java
> interface as needed.
> Requests and data are exchanged via WDDX
> packets.
>
> For local dbs the function could be included
> inline (for performance)
> or via the
> stub (for convenience)
>
> The problem statements are shown at:  30, 38,
> and 45.
>
> It is fairly easy to program equivalent CF
> code, but you can't pass
> nulls from CF.
>
> Given more time, I would probably do this:
>
>Use a Java program (similar to this) to do
> the actual manipulation
>of the JDBC driver.
>
>Use a CF routine to interface the Java
> program:  providing input
>paramaters for the desired db request;  and
> presentation of the
>results
>
>Use an alias (such as 'MyNull'), to exchange
> psuedo nulls between
>CF and Java, as necessary
>
> Any help will be greatly appreciated.
>
> TIA
>
> Dick
>
>
>
> 1 //  public abstract ResultSet
> getIndexInfo(String catalog, String
> schema,String table, boolean unique,
> boolean approximate)
> throws SQLException;
> 2 //  public abstract ResultSet
> getColumns(String catalog, String
> schemaPattern, String tableNamePattern, String
> columnNamePattern)
> throws SQLException;
>
> 3
> 4 import java.sql.*;
> 5 import java.util.StringTokenizer;
>
> 6 public class DBViewerPB {
>
> 7   final static String jdbcURL =
> "jdbc:pointbase:cfsnippets,database.home=/opt/coldfusionmx/db";
> 8   final static String jdbcDriver =
> "com.pointbase.jdbc.jdbcUniversalDriver";
> 9   final static String username = "PBPUBLIC";
> 

Re: Java in CF (CFMX)

2002-11-25 Thread Jochem van Dieten
Joe Eugene wrote:

> >wouldn't need to happen.
>
> Where do u want it happen?

At some MM production facility. As I said, cfobject is a no-go on a 
shared server.

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
Get the mailserver that powers this list at http://www.coolfusion.com



RE: CFQUERYPARAM in cfincludes

2002-11-25 Thread Jim Campbell
ColdFusion is likely building the contents of the common_where_clause.cfm
tag before it parses the whole template, so it sounds like it's trying to
evaluate those cfqueryparam tags before it realizes they're supposed to be
contained in a cfquery statement.

If you store your common SQL statement snippets in an application variable
instead of separate files, does it throw the same error?

- Jim

-Original Message-
From: Funky Music [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 2:23 PM
To: CF-Talk
Subject: CFQUERYPARAM in cfincludes


Hello CF-people!

I have got a question - I am updating a coldfusion application to certain

standards - one thing is the insert of cfqueryparams in all query
operations.

Now I have the problem that the query is split into several files, because

many queries use the same SQL parts.

If I want to replace the simple values in the include files with
cfqueryparams but this does not work:

>
Context error in tag CFQUERYPARAM The CFQUERYPARAM tag must be nested
between the  and the  tags
<

Why? The cfqueryparam is within the cfquery tag:

- template 1

SELECT field1,field2,field3
WHERE ;


- template common_where_clause.cfm
(field1 = #val(form.test)# AND field2 = #val(form.test2)#)


Best regards,

Peter

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



finished arrayFind binary search thing RE: CFMX array sort

2002-11-25 Thread Rob Rohan

/**
 * int arrayFind(Array, item, ["textnocase"|"numeric"]);
 *
 * Searches an array for a specific item
 * and returns the positon of that item
 * or 0 if that item is not found.
 * uses the binary search algorithm
 */
function arrayFind(collection, item){
//what kind of array
var type = "textnocase";
if(arrayLen(arguments) gt 2 AND arguments[3]) {
type = arguments[3];
}
//need a sorted array for this algorithm
arraySort(collection,type);
floor = 1;
currentPos = arrayLen(collection);
roof = currentPos;

while(roof-floor gt 1){
//split the currentPos in half
currentPos = ceiling((roof - floor)/2 + floor);

switch(compareNoCase(collection[currentPos],item)){
case 1:
roof = currentPos;
break;
//equal
case 0:
return currentPos; 
 
break;
case -1:
floor = currentPos;
break; 
}

if(currentPos eq 1 OR currentPos eq arrayLen(collection)){
break;
}
}
return 0;
}


Rob

Certified Organic
"When you put things in quotes, people think someone actually said it."
http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia
~|
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: Java in CF (CFMX)

2002-11-25 Thread Rob Rohan
Thought this thread was still about inline java. Sorry - maybe it was
another thread.

nevermind.

Rob

-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 2:40 PM
To: CF-Talk
Subject: RE: Java in CF (CFMX)


> wouldn't need to happen.
Where do u want it happen?

Joe

On Mon, 25 Nov 2002 14:37:29 -0800 Rob Rohan <[EMAIL PROTECTED]> wrote:

> See though the whole point is
>
> >The Java file should be compiled
> >under WEB-INF/classes/
> >and you can invoke it with CFObject.
>

>
>
> Rob
>
> Certified Organic
> "When you put things in quotes, people think
> someone actually said it."
> http://treebeard.sourceforge.net
> http://ruinworld.sourceforge.net
> Scientia Est Potentia
>
> -Original Message-
> From: Joe Eugene [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 2:33 PM
> To: CF-Talk
> Subject: Re: Java in CF (CFMX)
>
>
> Dick,
> Here is an Example that works with CFMX. The
> Java file should be compiled
> under WEB-INF/classes/
> and you can invoke it with CFObject. Note i am
> using Macromedia drivers to
> connect to Sql-Server.
> This is rough sketch..if you want.. i can
> improvise this later..to be
> generic.
> Dont forget to substitute your Database
> Name,server name, userid and
> password.
> The method call returns a list of table names.
>
> /*Java File*/
>
> import java.sql.*;
> import java.util.*;
>
> public class MetaData{
>
>  String
> driverName="macromedia.jdbc.MacromediaDriver";
>  String
> url="jdbc:macromedia:sqlserver://SqlServer:1433";
>  String userid="YourUserid";
>  String pwd="YourPassword";
>  private String cat,schPattern,tblNPattern;
>  private String tblTypes[];
>
>  public void setParms(String c,String s, String
> t){
>  if(c.equalsIgnoreCase("null")) cat=null; else
> cat=c;
>  if(s.equalsIgnoreCase("null"))
> schPattern=null; else schPattern=s;
>  if(t.equalsIgnoreCase("null"))
> tblNPattern=null; else tblNPattern=t;
>  tblTypes=null;
>  }
> /*String
> driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver";
>  //String
> url="jdbc:microsoft:sqlserver://SqlServer:1433";
> */
>
>  public String getTablesOnly(){
>   StringBuffer sb = new StringBuffer();
>   try{
>   Class.forName(driverName);
>   Connection con =
> DriverManager.getConnection(url,userid,pwd);
>   DatabaseMetaData md = con.getMetaData();
>
> //System.out.println(md.getSQLKeywords()+"\n\n");
>
> //System.out.println(md.getNumericFunctions());
>
>   //String tbTypes[]={"TABLE","User"};
>   ResultSet rs =
> md.getTables(cat,schPattern,tblNPattern,tblTypes);
>
>   while(rs.next()){
>   sb.append(rs.getString("TABLE_NAME")+',');
>   }
>   rs.close();
>   con.close();
>   return sb.toString();
>}catch(Exception e){
> return e.toString();
>   }
>
>  }//end getTablesOnly
>
> /*
>  public static void main(String argv[]){
>   MetaData m = new MetaData();
>   System.out.println(m.getTablesOnly());
>  }
> */
> }
>
>
>
>
>
>
>
> Hope this gives you an idea.
> Joe
>
>
>
> On Mon, 25 Nov 2002 10:56:57 -0800 Dick
> Applebaum
> wrote:
>
> > Joe
> >
> > Below is the Java source, originally caalled
> > DBViewer.
> >
> > This is working code that I modified to use
> the
> > CFMX cfsnippets db (The
> > PointBase
> > database shipped with the Linux distro).
> >
> > I want to accomplish the same thing within
> > CFMX, and generalize it a
> > bit so it will
> > work with any JDBC driver and database,
> > remote or local, on any platform.
> >
> > For remote dbs, there will be a stub program
> > that determines the
> > platform, CF
> > version, etc. and Uses COM objects or the
> Java
> > interface as needed.
> > Requests and data are exchanged via WDDX
> > packets.
> >
> > For local dbs the function could be included
> > inline (for performance)
> > or via the
> > stub (for convenience)
> >
> > The problem statements are shown at:  30, 38,
> > and 45.
> >
> > It is fairly easy to program equivalent CF
> > code, but you can't pass
> > nulls from CF.
> >
> > Given more time, I would probably do this:
> >
> >Use a Java program (similar to this) to do
> > the actual manipulation
> >of the JDBC driver.
> >
> >Use a CF routine to interface the Java
> > program:  providing input
> >paramaters for the desired db request;
> and
> > presentation of the
> >results
> >
> >Use an alias (such as 'MyNull'), to
> exchange
> > psuedo nulls between
> >CF and Java, as necessary
> >
> > Any help will be greatly appreciated.
> >
> > TIA
> >
> > Dick
> >
> >
> >
> > 1 //  public abstract ResultSet
> > getIndexInfo(String catalog, String
> > schema,String table, boolean unique,
> > boolean approximate)
> > throws SQLException;
> > 2 //  public abstract ResultSet
> > getColumns(String catalog, String
> > schemaPattern, String tableNamePattern,
> String
> > columnNamePattern)
> > throws SQLException;
> >
> > 3
> > 4 import java.sql.*;
> > 5 import java.util.StringTokenizer;
> >
> > 6 public class DBViewerPB {
> >
> > 7   final static String

Re: combo box

2002-11-25 Thread jon hall
Sure, do you already have the combo box working in one direction? If
so, just apply the same logic to the second dropdown, the only
difference would be that you would be searching for a software title,
instead of searching for the company.

-- 
 jon
 mailto:[EMAIL PROTECTED]

Monday, November 25, 2002, 5:18:14 PM, you wrote:
JB> is there any way to do a reverse combo box?  so say i have two fields, one is 
applications the other is companies.
JB> say i choose the application: outlook 2000, then the company would automatically 
change to microsoft.
JB> but lets say i knew the company was microsoft.  how could i get the top box to 
change to every app that is associated with microsoft?

~|
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: Java in CF (CFMX)

2002-11-25 Thread Joe Eugene
> wouldn't need to happen.
Where do u want it happen?

Joe

On Mon, 25 Nov 2002 14:37:29 -0800 Rob Rohan <[EMAIL PROTECTED]> wrote:

> See though the whole point is
> 
> >The Java file should be compiled
> >under WEB-INF/classes/
> >and you can invoke it with CFObject.
> 

> 
> 
> Rob
> 
> Certified Organic
> "When you put things in quotes, people think
> someone actually said it."
> http://treebeard.sourceforge.net
> http://ruinworld.sourceforge.net
> Scientia Est Potentia
> 
> -Original Message-
> From: Joe Eugene [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 2:33 PM
> To: CF-Talk
> Subject: Re: Java in CF (CFMX)
> 
> 
> Dick,
> Here is an Example that works with CFMX. The
> Java file should be compiled
> under WEB-INF/classes/
> and you can invoke it with CFObject. Note i am
> using Macromedia drivers to
> connect to Sql-Server.
> This is rough sketch..if you want.. i can
> improvise this later..to be
> generic.
> Dont forget to substitute your Database
> Name,server name, userid and
> password.
> The method call returns a list of table names.
> 
> /*Java File*/
> 
> import java.sql.*;
> import java.util.*;
> 
> public class MetaData{
> 
>  String
> driverName="macromedia.jdbc.MacromediaDriver";
>  String
> url="jdbc:macromedia:sqlserver://SqlServer:1433";
>  String userid="YourUserid";
>  String pwd="YourPassword";
>  private String cat,schPattern,tblNPattern;
>  private String tblTypes[];
> 
>  public void setParms(String c,String s, String
> t){
>  if(c.equalsIgnoreCase("null")) cat=null; else
> cat=c;
>  if(s.equalsIgnoreCase("null"))
> schPattern=null; else schPattern=s;
>  if(t.equalsIgnoreCase("null"))
> tblNPattern=null; else tblNPattern=t;
>  tblTypes=null;
>  }
> /*String
> driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver";
>  //String
> url="jdbc:microsoft:sqlserver://SqlServer:1433";
> */
> 
>  public String getTablesOnly(){
>   StringBuffer sb = new StringBuffer();
>   try{
>   Class.forName(driverName);
>   Connection con =
> DriverManager.getConnection(url,userid,pwd);
>   DatabaseMetaData md = con.getMetaData();
>  
> //System.out.println(md.getSQLKeywords()+"\n\n");
>  
> //System.out.println(md.getNumericFunctions());
> 
>   //String tbTypes[]={"TABLE","User"};
>   ResultSet rs =
> md.getTables(cat,schPattern,tblNPattern,tblTypes);
> 
>   while(rs.next()){
>   sb.append(rs.getString("TABLE_NAME")+',');
>   }
>   rs.close();
>   con.close();
>   return sb.toString();
>}catch(Exception e){
> return e.toString();
>   }
> 
>  }//end getTablesOnly
> 
> /*
>  public static void main(String argv[]){
>   MetaData m = new MetaData();
>   System.out.println(m.getTablesOnly());
>  }
> */
> }
> 
> 
> 
> 
> 
> 
> 
> Hope this gives you an idea.
> Joe
> 
> 
> 
> On Mon, 25 Nov 2002 10:56:57 -0800 Dick
> Applebaum 
> wrote:
> 
> > Joe
> >
> > Below is the Java source, originally caalled
> > DBViewer.
> >
> > This is working code that I modified to use
> the
> > CFMX cfsnippets db (The
> > PointBase
> > database shipped with the Linux distro).
> >
> > I want to accomplish the same thing within
> > CFMX, and generalize it a
> > bit so it will
> > work with any JDBC driver and database,
> > remote or local, on any platform.
> >
> > For remote dbs, there will be a stub program
> > that determines the
> > platform, CF
> > version, etc. and Uses COM objects or the
> Java
> > interface as needed.
> > Requests and data are exchanged via WDDX
> > packets.
> >
> > For local dbs the function could be included
> > inline (for performance)
> > or via the
> > stub (for convenience)
> >
> > The problem statements are shown at:  30, 38,
> > and 45.
> >
> > It is fairly easy to program equivalent CF
> > code, but you can't pass
> > nulls from CF.
> >
> > Given more time, I would probably do this:
> >
> >Use a Java program (similar to this) to do
> > the actual manipulation
> >of the JDBC driver.
> >
> >Use a CF routine to interface the Java
> > program:  providing input
> >paramaters for the desired db request; 
> and
> > presentation of the
> >results
> >
> >Use an alias (such as 'MyNull'), to
> exchange
> > psuedo nulls between
> >CF and Java, as necessary
> >
> > Any help will be greatly appreciated.
> >
> > TIA
> >
> > Dick
> >
> >
> >
> > 1 //  public abstract ResultSet
> > getIndexInfo(String catalog, String
> > schema,String table, boolean unique,
> > boolean approximate)
> > throws SQLException;
> > 2 //  public abstract ResultSet
> > getColumns(String catalog, String
> > schemaPattern, String tableNamePattern,
> String
> > columnNamePattern)
> > throws SQLException;
> >
> > 3
> > 4 import java.sql.*;
> > 5 import java.util.StringTokenizer;
> >
> > 6 public class DBViewerPB {
> >
> > 7   final static String jdbcURL =
> >
> "jdbc:pointbase:cfsnippets,database.home=/opt/coldfusionmx/db";
> > 8   final static String jdbcDriver =
> > "com.pointbase.jdbc.jdbcUniversalDriver";
> > 9   final static String username =
> "PBPUBLIC";
> > 

RE: Java in CF (CFMX)

2002-11-25 Thread Rob Rohan
See though the whole point is

>The Java file should be compiled
>under WEB-INF/classes/
>and you can invoke it with CFObject.

wouldn't need to happen.


Rob

Certified Organic
"When you put things in quotes, people think someone actually said it."
http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 2:33 PM
To: CF-Talk
Subject: Re: Java in CF (CFMX)


Dick,
Here is an Example that works with CFMX. The Java file should be compiled
under WEB-INF/classes/
and you can invoke it with CFObject. Note i am using Macromedia drivers to
connect to Sql-Server.
This is rough sketch..if you want.. i can improvise this later..to be
generic.
Dont forget to substitute your Database Name,server name, userid and
password.
The method call returns a list of table names.

/*Java File*/

import java.sql.*;
import java.util.*;

public class MetaData{

 String driverName="macromedia.jdbc.MacromediaDriver";
 String url="jdbc:macromedia:sqlserver://SqlServer:1433";
 String userid="YourUserid";
 String pwd="YourPassword";
 private String cat,schPattern,tblNPattern;
 private String tblTypes[];

 public void setParms(String c,String s, String t){
 if(c.equalsIgnoreCase("null")) cat=null; else cat=c;
 if(s.equalsIgnoreCase("null")) schPattern=null; else schPattern=s;
 if(t.equalsIgnoreCase("null")) tblNPattern=null; else tblNPattern=t;
 tblTypes=null;
 }
/*String driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver";
 //String url="jdbc:microsoft:sqlserver://SqlServer:1433";
*/

 public String getTablesOnly(){
  StringBuffer sb = new StringBuffer();
  try{
  Class.forName(driverName);
  Connection con = DriverManager.getConnection(url,userid,pwd);
  DatabaseMetaData md = con.getMetaData();
  //System.out.println(md.getSQLKeywords()+"\n\n");
  //System.out.println(md.getNumericFunctions());

  //String tbTypes[]={"TABLE","User"};
  ResultSet rs = md.getTables(cat,schPattern,tblNPattern,tblTypes);

  while(rs.next()){
  sb.append(rs.getString("TABLE_NAME")+',');
  }
  rs.close();
  con.close();
  return sb.toString();
   }catch(Exception e){
return e.toString();
  }

 }//end getTablesOnly

/*
 public static void main(String argv[]){
  MetaData m = new MetaData();
  System.out.println(m.getTablesOnly());
 }
*/
}







Hope this gives you an idea.
Joe



On Mon, 25 Nov 2002 10:56:57 -0800 Dick Applebaum <[EMAIL PROTECTED]>
wrote:

> Joe
>
> Below is the Java source, originally caalled
> DBViewer.
>
> This is working code that I modified to use the
> CFMX cfsnippets db (The
> PointBase
> database shipped with the Linux distro).
>
> I want to accomplish the same thing within
> CFMX, and generalize it a
> bit so it will
> work with any JDBC driver and database,
> remote or local, on any platform.
>
> For remote dbs, there will be a stub program
> that determines the
> platform, CF
> version, etc. and Uses COM objects or the Java
> interface as needed.
> Requests and data are exchanged via WDDX
> packets.
>
> For local dbs the function could be included
> inline (for performance)
> or via the
> stub (for convenience)
>
> The problem statements are shown at:  30, 38,
> and 45.
>
> It is fairly easy to program equivalent CF
> code, but you can't pass
> nulls from CF.
>
> Given more time, I would probably do this:
>
>Use a Java program (similar to this) to do
> the actual manipulation
>of the JDBC driver.
>
>Use a CF routine to interface the Java
> program:  providing input
>paramaters for the desired db request;  and
> presentation of the
>results
>
>Use an alias (such as 'MyNull'), to exchange
> psuedo nulls between
>CF and Java, as necessary
>
> Any help will be greatly appreciated.
>
> TIA
>
> Dick
>
>
>
> 1 //  public abstract ResultSet
> getIndexInfo(String catalog, String
> schema,String table, boolean unique,
> boolean approximate)
> throws SQLException;
> 2 //  public abstract ResultSet
> getColumns(String catalog, String
> schemaPattern, String tableNamePattern, String
> columnNamePattern)
> throws SQLException;
>
> 3
> 4 import java.sql.*;
> 5 import java.util.StringTokenizer;
>
> 6 public class DBViewerPB {
>
> 7   final static String jdbcURL =
> "jdbc:pointbase:cfsnippets,database.home=/opt/coldfusionmx/db";
> 8   final static String jdbcDriver =
> "com.pointbase.jdbc.jdbcUniversalDriver";
> 9   final static String username = "PBPUBLIC";
> 10   final static String password = "PBPUBLIC";
>
> 11   public static void main(java.lang.String[]
> args) {
>
> 12 System.out.println("--- Database Viewer
> ---");
> 13
> 14 try {
> 15   Class.forName(jdbcDriver);
> 16   Connection con =
> DriverManager.getConnection(jdbcURL,
> username, password);
>
> 17   DatabaseMetaData dbmd =
> con.getMetaData(  );
>
> 18   System.out.println("Driver Name: " +
> dbmd.getDriverName(  ));
> 19   System.out.println("Database Product:
> " +
> db

Re: Java in CF (CFMX)

2002-11-25 Thread Joe Eugene
Dick,
Here is an Example that works with CFMX. The Java file should be compiled
under WEB-INF/classes/
and you can invoke it with CFObject. Note i am using Macromedia drivers to
connect to Sql-Server.
This is rough sketch..if you want.. i can improvise this later..to be generic.
Dont forget to substitute your Database Name,server name, userid and password.
The method call returns a list of table names.

/*Java File*/

import java.sql.*;
import java.util.*;

public class MetaData{

 String driverName="macromedia.jdbc.MacromediaDriver";
 String url="jdbc:macromedia:sqlserver://SqlServer:1433";
 String userid="YourUserid";
 String pwd="YourPassword";
 private String cat,schPattern,tblNPattern;
 private String tblTypes[];

 public void setParms(String c,String s, String t){
 if(c.equalsIgnoreCase("null")) cat=null; else cat=c;
 if(s.equalsIgnoreCase("null")) schPattern=null; else schPattern=s;
 if(t.equalsIgnoreCase("null")) tblNPattern=null; else tblNPattern=t;
 tblTypes=null;
 }
/*String driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver";
 //String url="jdbc:microsoft:sqlserver://SqlServer:1433";
*/

 public String getTablesOnly(){
  StringBuffer sb = new StringBuffer();
  try{
  Class.forName(driverName);
  Connection con = DriverManager.getConnection(url,userid,pwd);
  DatabaseMetaData md = con.getMetaData();
  //System.out.println(md.getSQLKeywords()+"\n\n");
  //System.out.println(md.getNumericFunctions());

  //String tbTypes[]={"TABLE","User"};
  ResultSet rs = md.getTables(cat,schPattern,tblNPattern,tblTypes);

  while(rs.next()){
  sb.append(rs.getString("TABLE_NAME")+',');
  }
  rs.close();
  con.close();
  return sb.toString();
   }catch(Exception e){
return e.toString();
  }

 }//end getTablesOnly

/*
 public static void main(String argv[]){
  MetaData m = new MetaData();
  System.out.println(m.getTablesOnly());
 }
*/
}







Hope this gives you an idea.
Joe



On Mon, 25 Nov 2002 10:56:57 -0800 Dick Applebaum <[EMAIL PROTECTED]> wrote:

> Joe
> 
> Below is the Java source, originally caalled
> DBViewer.
> 
> This is working code that I modified to use the
> CFMX cfsnippets db (The  
> PointBase
> database shipped with the Linux distro).
> 
> I want to accomplish the same thing within
> CFMX, and generalize it a  
> bit so it will
> work with any JDBC driver and database,
> remote or local, on any platform.
> 
> For remote dbs, there will be a stub program
> that determines the  
> platform, CF
> version, etc. and Uses COM objects or the Java
> interface as needed.
> Requests and data are exchanged via WDDX
> packets.
> 
> For local dbs the function could be included
> inline (for performance)  
> or via the
> stub (for convenience)
> 
> The problem statements are shown at:  30, 38,
> and 45.
> 
> It is fairly easy to program equivalent CF
> code, but you can't pass  
> nulls from CF.
> 
> Given more time, I would probably do this:
> 
>Use a Java program (similar to this) to do
> the actual manipulation
>of the JDBC driver.
> 
>Use a CF routine to interface the Java
> program:  providing input
>paramaters for the desired db request;  and
> presentation of the
>results
> 
>Use an alias (such as 'MyNull'), to exchange
> psuedo nulls between
>CF and Java, as necessary
> 
> Any help will be greatly appreciated.
> 
> TIA
> 
> Dick
> 
> 
> 
> 1 //  public abstract ResultSet
> getIndexInfo(String catalog, String  
> schema,String table, boolean unique,
> boolean approximate)  
> throws SQLException;
> 2 //  public abstract ResultSet  
> getColumns(String catalog, String  
> schemaPattern, String tableNamePattern, String
> columnNamePattern)  
> throws SQLException;
> 
> 3
> 4 import java.sql.*;
> 5 import java.util.StringTokenizer;
> 
> 6 public class DBViewerPB {
> 
> 7   final static String jdbcURL =  
> "jdbc:pointbase:cfsnippets,database.home=/opt/coldfusionmx/db";
> 8   final static String jdbcDriver =  
> "com.pointbase.jdbc.jdbcUniversalDriver";
> 9   final static String username = "PBPUBLIC";
> 10   final static String password = "PBPUBLIC";
> 
> 11   public static void main(java.lang.String[]
> args) {
> 
> 12 System.out.println("--- Database Viewer
> ---");
> 13
> 14 try {
> 15   Class.forName(jdbcDriver);
> 16   Connection con =
> DriverManager.getConnection(jdbcURL,  
> username, password);
> 
> 17   DatabaseMetaData dbmd =
> con.getMetaData(  );
> 
> 18   System.out.println("Driver Name: " +
> dbmd.getDriverName(  ));
> 19   System.out.println("Database Product:
> " +  
> dbmd.getDatabaseProductName(  ));
> 20   System.out.println("Database Version:
> " +  
> dbmd.getDatabaseProductVersion(  ));
> 21   System.out.println("SQL Keywords
> Supported:");
> 22   //StringTokenizer st = new  
> StringTokenizer(dbmd.getSQLKeywords(  ), ",");
> 23   //while(st.hasMoreTokens(  ))
> 24   //  System.out.println(" " +
> st.nextToken(  ));
> 25
> 26   // Get a ResultSet that contains all
> of the ta

RE: CFMX array sort (arrayFind)

2002-11-25 Thread Rob Rohan
Here is the finished one:

/**
 * int arrayFind(Array, item, ["textnocase"|"numeric"]);
 *
 * Searches an array for a specific item
 * and returns the positon of that item
 * or 0 if that item is not found.
 * text searches are case sensitive.
 * uses the binary search algorithm
 */
function arrayFind(collection, item){
//what kind of array
var type = "textnocase";
if(arrayLen(arguments) gt 2 AND arguments[3]) {
type = arguments[3];
}
//need a sorted array for this algorithm
arraySort(collection,type);
floor = 1;
currentPos = arrayLen(collection);
roof = currentPos;

//should never really finish this loop, here
//for safety.
while(roof-floor gt 1){
//split the currentPos in half
currentPos = ceiling((roof - floor)/2 + floor);

switch(compareNoCase(collection[currentPos],item)){
case 1:
roof = currentPos;
break;
//equal
case 0:
return currentPos;
break;
case -1:
floor = currentPos;
break;
}

if(currentPos eq 1 OR currentPos eq arrayLen(collection)){
break;
}
}
return 0;
}


Rob

Certified Organic
"When you put things in quotes, people think someone actually said it."
http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Rob Rohan [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:41 PM
To: CF-Talk
Subject: RE: CFMX array sort


Ok, here is a more specific question. I am writting an arrayFind function
that (mostly) uses the binary search algorithm - which needs to have a
sorted array. I have run several test on serial search vs. my search and see
little difference. Is the arraySort that expensive? Perhaps the array is too
small to see the difference.

Again it's not perfect right now as the lower half doesn't shift up, but if
some one could check to see if it is faster I would appreciate it.

If you do an output while in the function you'll see that it only has to hit
a couple times to find the index.

Thanks

Rob


/**
 * int arrayFind(Array, item, ["textnocase"|"numeric"]);
 *
 * Searches an array for a specific item
 * and returns the positon of that item
 * or 0 if that item is not found.
 */
function arrayFind(collection, item){
//what kind of array
var type = "textnocase";
if(arrayLen(arguments) gt 2 AND arguments[3]) {
type = arguments[3];
}
//need a sorted array for this algorithm
arraySort(collection,type);
currentPos = arrayLen(collection);
roof = currentPos;

//should never really finish this loop, here
//for safety.
for(x=1; x lte arrayLen(collection); x=x+1){
//split the currentPos in half
currentPos = ceiling(currentPos / 2);

switch(compareNoCase(collection[currentPos],item)){
case 1:
roof = currentPos;
currentPos = currentPos;
break;
//equal
case 0:
return currentPos;
break;
case -1:
currentPos = currentPos + roof;
break;
}

if(currentPos eq 1 OR currentPos eq arrayLen(collection)){
break;
}
}
return 0;
}


-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:20 PM
To: CF-Talk
Subject: Re: CFMX array sort


  Presumably some form of quicksort, however I do not know for a fact.

At 12:58 PM 11/25/2002 -0800, you wrote:
>Anyone know what algorithm arraySort() uses?
>
>Rob
>
>Certified Organic
>"When you put things in quotes, peopl

combo box

2002-11-25 Thread Jones, Becky
is there any way to do a reverse combo box?  so say i have two fields, one is 
applications the other is companies.
say i choose the application: outlook 2000, then the company would automatically 
change to microsoft.
but lets say i knew the company was microsoft.  how could i get the top box to change 
to every app that is associated with microsoft?


~|
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: STATUS_OBJECT_NAME_NOT_FOUND - Does MX have a hard time creating objects?

2002-11-25 Thread Tony Weeg
nope no problems...make sure you have the path right...i ran into
somewhat of the same issues
when I wasn't correctly path'ing the calling cfexecute tag

c:\whatev~1\tony.exe

needed to have the ~ for long dir names.

make sure of this.

hthx

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: David Adams [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 4:28 PM
To: CF-Talk
Subject: STATUS_OBJECT_NAME_NOT_FOUND - Does MX have a hard time
creating objects?


I am using CFEXECUTE to initiate an outside process from a small binary
file.  In the CFEXECUTE tag I set the time out to be something like 60
seconds and CFMX will try several times to initiate this process and
will eventually give up and render a timeout error in the client
browser.
 
I can run the same binary file from the cmd prompt and this utility will
work successfully.  
 
I take my same code and run it on a CF4.5 box and it actually works.
 
To diagnose the problem I hooked up NetMon and under the SMB traffic it
reported a lot of error messages such as STATUS_OBJECT_NAME_NOT_FOUND.  
 
Does this mean the CFMX has a hardtime working with outside processes or
creating objects than it predecessor?
 
Dave Adams
CFUG Ottawa 



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

2002-11-25 Thread Rob Rohan
Ok, here is a more specific question. I am writting an arrayFind function
that (mostly) uses the binary search algorithm - which needs to have a
sorted array. I have run several test on serial search vs. my search and see
little difference. Is the arraySort that expensive? Perhaps the array is too
small to see the difference.

Again it's not perfect right now as the lower half doesn't shift up, but if
some one could check to see if it is faster I would appreciate it.

If you do an output while in the function you'll see that it only has to hit
a couple times to find the index.

Thanks

Rob


/**
 * int arrayFind(Array, item, ["textnocase"|"numeric"]);
 *
 * Searches an array for a specific item
 * and returns the positon of that item
 * or 0 if that item is not found.
 */
function arrayFind(collection, item){
//what kind of array
var type = "textnocase";
if(arrayLen(arguments) gt 2 AND arguments[3]) {
type = arguments[3];
}
//need a sorted array for this algorithm
arraySort(collection,type);
currentPos = arrayLen(collection);
roof = currentPos;

//should never really finish this loop, here
//for safety.
for(x=1; x lte arrayLen(collection); x=x+1){
//split the currentPos in half
currentPos = ceiling(currentPos / 2);

switch(compareNoCase(collection[currentPos],item)){
case 1:
roof = currentPos;
currentPos = currentPos;
break;
//equal
case 0:
return currentPos;
break;
case -1:
currentPos = currentPos + roof;
break;
}

if(currentPos eq 1 OR currentPos eq arrayLen(collection)){
break;
}
}
return 0;
}


-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:20 PM
To: CF-Talk
Subject: Re: CFMX array sort


  Presumably some form of quicksort, however I do not know for a fact.

At 12:58 PM 11/25/2002 -0800, you wrote:
>Anyone know what algorithm arraySort() uses?
>
>Rob
>
>Certified Organic
>"When you put things in quotes, people think someone actually said it."
>http://treebeard.sourceforge.net
>http://ruinworld.sourceforge.net
>Scientia Est Potentia
>

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



STATUS_OBJECT_NAME_NOT_FOUND - Does MX have a hard time creating objects?

2002-11-25 Thread David Adams
I am using CFEXECUTE to initiate an outside process from a small binary
file.  In the CFEXECUTE tag I set the time out to be something like 60
seconds and CFMX will try several times to initiate this process and
will eventually give up and render a timeout error in the client
browser.
 
I can run the same binary file from the cmd prompt and this utility will
work successfully.  
 
I take my same code and run it on a CF4.5 box and it actually works.
 
To diagnose the problem I hooked up NetMon and under the SMB traffic it
reported a lot of error messages such as STATUS_OBJECT_NAME_NOT_FOUND.  
 
Does this mean the CFMX has a hardtime working with outside processes or
creating objects than it predecessor?
 
Dave Adams
CFUG Ottawa 


~|
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: -isDefined() finesse

2002-11-25 Thread Mark Johnson
Another Option:

<-cfloop index="i" from="1" to="#theSerNums.RecordCount#">
<-cfif structKeyExists(Form,'SerNum' & i)>
DoSomething
<-cfelse>
DoSomethingElse
<-/cfif>
<-/cfloop>

however what you have looks fine to me.

Mark

-Original Message-
From: Brian Scandale [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:11 PM
To: CF-Talk
Subject: -isDefined() finesse


I am trying to see if a particular dynamic variable is defined... but having
trouble building the ifDefined argument.

Form.SerNum1
Form.SerNum2
Form.SerNum3 ...etc. are built dynamically and then passed to an action form
below like below.

<-cfloop index="i" from="1" to="#theSerNums.RecordCount#">
<-cfif isDefined("Form.SerNum#i#")>
DoSomething
<-cfelse>
DoSomethingElse
<-/cfif>
<-/cfloop>


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

2002-11-25 Thread Jeffry Houser
  Presumably some form of quicksort, however I do not know for a fact.

At 12:58 PM 11/25/2002 -0800, you wrote:
>Anyone know what algorithm arraySort() uses?
>
>Rob
>
>Certified Organic
>"When you put things in quotes, people think someone actually said it."
>http://treebeard.sourceforge.net
>http://ruinworld.sourceforge.net
>Scientia Est Potentia
>
~|
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 variables

2002-11-25 Thread Jeffry Houser
  I believe you are mixing up request and application variables.

  If the application.cfm is running, then it is safe to assume that this is 
a new page request, and request variables have not been defined yet (unless 
they were defined earlier in the Application.cfm )

  Additionally, if you feel safe assuming that if the one you check for is 
not set, then none are not set, use cfset ( or even better CFSCript) to set 
the variables.  This will allow you to avoid the extra overhead with cfparam.

At 11:09 AM 11/25/2002 -0800, you wrote:
>Nope.  I will generally test for the existence of one of my REQUEST vars in
>Application.cfm.  If it doesn't exist I assume none of them are set and I
>use CFPARAM to set them all.  Once set they won't be reset on every page.
>If I ever need to reset them, I just comment out the CFIF that checks for
>the existence of one of them and re-save the file and hit any page in the
>system.
>
>HTH
>
>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: "Andy Ousterhout" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Monday, November 25, 2002 10:57 AM
>Subject: RE: Application variables
>
>
> > Do you have to set them each time, for each page?
> >
> > -Original Message-
> > From: Bryan Stevenson [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 25, 2002 12:40 PM
> > To: CF-Talk
> > Subject: Re: Application variables
> >
> >
> > Well a big plus is that you don't need to lock REQUEST scoped vars.
> >
> > 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: "Andy Ousterhout" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Monday, November 25, 2002 10:31 AM
> > Subject: RE: Application variables
> >
> >
> > > What's are the Pro's and Con's  of using Request Variables over
> > Application
> > > Var?
> > >
> > > -Original Message-
> > > From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, November 25, 2002 12:16 PM
> > > To: CF-Talk
> > > Subject: Re: Application variables
> > >
> > >
> > > You can overwrite them with  ... though I typically use  > > request.myapp.myvar = "something"> instead of application variables for
> > this
> > > sort of thing also. The app could be using  tags instead of
> > 
> > > tags in which case it would chew through the xml file on each request
> > > unecessarily since the param won't overwrite the existing value.
> > >
> > > Or it could use something like  > > structkeyexists(application,"init")> to determine when to load the
> > > application vars, in which case, it won't reload them when you modify
>the
> > > xml file because application.init already exists. You could use a url
> > > variable to force the app to reload the xml file in this situation,
> > however,
> > > which wouldn't be too tough to accomplish or too hard on the server...
> > >
> > >  > > default="#yesnoformat(not structkeyexists(application,"init"))#">
> > > 
> > > ... chew up the xml file here ...
> > > 
> > >
> > > Then when you update the xml file, just load the application's default
> > page
> > > with &init=true in the query string
> > >
> > > > You have to restart CF to reset APPLICATION vars (timing out the app
> > might
> > > > work too).
> > >
> > > > Personally I like to use REQUEST scope over APPLICATION scope ;-)
> > >
> > > > 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: "Cutter (CF_Talk)" <[EMAIL PROTECTED]>
> > > > To: "CF-Talk" <[EMAIL PROTECTED]>
> > > > Sent: Monday, November 25, 2002 10:00 AM
> > > > Subject: Application variables
> > >
> > >
> > > >> I've been on http://www.benorama.com looking at a CF design pattern.
>In
> > > >> this tutorial it talks about using your Application.cfm to call
> > > >> _init.cfm, which parses thro

RE: -isDefined() finesse

2002-11-25 Thread Raymond Camden
Well your original code should have worked as well. Also note you could
do:

isDefined("form.sernum" & i)

as well as structKeyExists(form,"sernum#i#")

===
Raymond Camden, ColdFusion Jedi Master for Hire

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: Brian Scandale [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, November 25, 2002 3:18 PM
> To: CF-Talk
> Subject: Re: -isDefined() finesse
> 
> 
> Sorry, just worked it out...
> 
> <-cfif isDefined("Form.SerNum"&"#i#")>
> 
> 
> At 01:11 PM 11/25/02, you wrote:
> >I am trying to see if a particular dynamic variable is 
> defined... but having trouble building the ifDefined argument.
> >
> >Form.SerNum1
> >Form.SerNum2
> >Form.SerNum3 ...etc. are built dynamically and then passed 
> to an action form below like below.
> >
> ><-cfloop index="i" from="1" to="#theSerNums.RecordCount#">
> ><-cfif isDefined("Form.SerNum#i#")>
> >DoSomething
> ><-cfelse>
> >DoSomethingElse
> ><-/cfif>
> ><-/cfloop> 
> >
> >
> 
~|
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: -isDefined() finesse

2002-11-25 Thread Brian Scandale
Sorry, just worked it out...

<-cfif isDefined("Form.SerNum"&"#i#")>


At 01:11 PM 11/25/02, you wrote:
>I am trying to see if a particular dynamic variable is defined... but having trouble 
>building the ifDefined argument.
>
>Form.SerNum1
>Form.SerNum2
>Form.SerNum3 ...etc. are built dynamically and then passed to an action form below 
>like below.
>
><-cfloop index="i" from="1" to="#theSerNums.RecordCount#">
><-cfif isDefined("Form.SerNum#i#")>
>DoSomething
><-cfelse>
>DoSomethingElse
><-/cfif>
><-/cfloop> 
>
>
~|
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: -isDefined() finesse

2002-11-25 Thread Raymond Camden
So what is wrong? Your code looks fine to me.

===
Raymond Camden, ColdFusion Jedi Master for Hire

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: Brian Scandale [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, November 25, 2002 3:11 PM
> To: CF-Talk
> Subject: -isDefined() finesse
> 
> 
> I am trying to see if a particular dynamic variable is 
> defined... but having trouble building the ifDefined argument.
> 
> Form.SerNum1
> Form.SerNum2
> Form.SerNum3 ...etc. are built dynamically and then passed to 
> an action form below like below.
> 
> <-cfloop index="i" from="1" to="#theSerNums.RecordCount#">
>   <-cfif isDefined("Form.SerNum#i#")>
>   DoSomething
>   <-cfelse>
>   DoSomethingElse
>   <-/cfif>
> <-/cfloop> 
> 
> 
~|
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: Application variables

2002-11-25 Thread Bryan Stevenson
wasn't my idea ;-)

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: "S. Isaac Dealey" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 12:29 PM
Subject: Re: Application variables


> > Bryan Stevenson wrote:
> >> You have to restart CF to reset APPLICATION vars (timing
> >> out the app might
> >> work too).
>
>
> > application=strucnew();
>
> I'm not necessarily convinced that would clear the application scope
rather
> than creating a local variable called application.
>
> structclear(application); might be better.
>
> s. isaac dealey954-776-0046
>
> new epoch  http://www.turnkey.to
>
> lead architect, tapestry cms   http://products.turnkey.to
>
> 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



Re: Application variables

2002-11-25 Thread Bryan Stevenson
Nope.  I will generally test for the existence of one of my REQUEST vars in
Application.cfm.  If it doesn't exist I assume none of them are set and I
use CFPARAM to set them all.  Once set they won't be reset on every page.
If I ever need to reset them, I just comment out the CFIF that checks for
the existence of one of them and re-save the file and hit any page in the
system.

HTH

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: "Andy Ousterhout" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 10:57 AM
Subject: RE: Application variables


> Do you have to set them each time, for each page?
>
> -Original Message-
> From: Bryan Stevenson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 12:40 PM
> To: CF-Talk
> Subject: Re: Application variables
>
>
> Well a big plus is that you don't need to lock REQUEST scoped vars.
>
> 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: "Andy Ousterhout" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, November 25, 2002 10:31 AM
> Subject: RE: Application variables
>
>
> > What's are the Pro's and Con's  of using Request Variables over
> Application
> > Var?
> >
> > -Original Message-
> > From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 25, 2002 12:16 PM
> > To: CF-Talk
> > Subject: Re: Application variables
> >
> >
> > You can overwrite them with  ... though I typically use  > request.myapp.myvar = "something"> instead of application variables for
> this
> > sort of thing also. The app could be using  tags instead of
> 
> > tags in which case it would chew through the xml file on each request
> > unecessarily since the param won't overwrite the existing value.
> >
> > Or it could use something like  > structkeyexists(application,"init")> to determine when to load the
> > application vars, in which case, it won't reload them when you modify
the
> > xml file because application.init already exists. You could use a url
> > variable to force the app to reload the xml file in this situation,
> however,
> > which wouldn't be too tough to accomplish or too hard on the server...
> >
> >  > default="#yesnoformat(not structkeyexists(application,"init"))#">
> > 
> > ... chew up the xml file here ...
> > 
> >
> > Then when you update the xml file, just load the application's default
> page
> > with &init=true in the query string
> >
> > > You have to restart CF to reset APPLICATION vars (timing out the app
> might
> > > work too).
> >
> > > Personally I like to use REQUEST scope over APPLICATION scope ;-)
> >
> > > 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: "Cutter (CF_Talk)" <[EMAIL PROTECTED]>
> > > To: "CF-Talk" <[EMAIL PROTECTED]>
> > > Sent: Monday, November 25, 2002 10:00 AM
> > > Subject: Application variables
> >
> >
> > >> I've been on http://www.benorama.com looking at a CF design pattern.
In
> > >> this tutorial it talks about using your Application.cfm to call
> > >> _init.cfm, which parses through an xml file to create your
application
> > >> variables. I've done this (very closely following the sample app).
I've
> > >> created a page using cfdump to show me the application variables, but
> > >> when I change my xml doc and refresh my page the application
variables
> > >> do not appear to update? Any ideas?
> > >>
> > >> Cutter
> > >>
> > >>
> > >
> >
> >
>
> 
~|
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



-isDefined() finesse

2002-11-25 Thread Brian Scandale
I am trying to see if a particular dynamic variable is defined... but having trouble 
building the ifDefined argument.

Form.SerNum1
Form.SerNum2
Form.SerNum3 ...etc. are built dynamically and then passed to an action form below 
like below.

<-cfloop index="i" from="1" to="#theSerNums.RecordCount#">
<-cfif isDefined("Form.SerNum#i#")>
DoSomething
<-cfelse>
DoSomethingElse
<-/cfif>
<-/cfloop> 

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



CFMX array sort

2002-11-25 Thread Rob Rohan
Anyone know what algorithm arraySort() uses?

Rob

Certified Organic
"When you put things in quotes, people think someone actually said it."
http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia
~|
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: Studio MX install issues - help on upgrade

2002-11-25 Thread Matt Brown
I saw someone telling you to try again. If that does not work, maybe 
restart and try to install. If that doesn't work, you can contact me and I 
can try to help out. Sorry you are having an issue.
_

Matt Brown   Community Manager
Macromedia  (415) 706-6543   [EMAIL PROTECTED]
For daily Dreamweaver news and info: http://shorterlink.com/?KB8LAL



~|
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: Re: CFC Addressing

2002-11-25 Thread mike . wokasch
That's not totally true.
You can only sort of address CFCs relatively.  You can't for example go up a 
directory, i.e. ../CFCs/

Which frankly, is rather annoying.

**
>   You can access CFCs just like you would access custom tags.
> 
>   They can be put in the customtags directory of the ColdFusion installation.
>   Or they can be in a directory that you can access via a ColdFusion mapping.
>   Or they can be in the same directory as the page that invokes it.  ( Or a 
> relative directory to the page that invokes it )
> 
> 
> 
> At 10:52 AM 11/25/2002 -0600, you wrote:
> >I have just finished Hal Helm's CFC book for the second time and this
> >stuff is looking pretty nice. (of course I started programming in OO, so
> >I knew it would be useful).
> >
> >My question is with regards to addressing a CFC. All of Hal's examples
> >were directly under the MX wwwroot directory. How do you address a CFC
> >if it is not under the wwwroot? For example, on my laptop, I have a
> >virtual directory setup in IIS to point to d:\sandbox for my
> >testing/play area. How would I invoke a cfc here?
> >
> >Would this also not be a problem for shared/virtual hosting where you
> >might or might not know where the wwwroot folder is? This does not sound
> >real portable if you have to have a 'physical' path to the wwwroot?
> >
> >Thanks
> >-- Jeff
> >
> >
> 
~|
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: Application variables

2002-11-25 Thread S . Isaac Dealey
Storing variables in the application scope allows you to temporarily change
application-wide settings, which can be useful at times, for instance, if
you had an application which required scheduled maintenance to take several
minutes ( or hours or however long ), it's possible you might want to log
all users out or at least just preven them from making updates which might
interfere with the maintenance, in which case, you would want to use
something like this




in your application.cfm template -- then in the template for your scheduled
task to perform maintenance, you would use




... do maintenance here ...




On CF 5 you would want to lock references to your
application.maintenanceperiod variable, however, the viability of this as a
means of isolating the maintenance routine is still good in either CF 5 or
CF MX.

On the other hand, I would tend to avoid placing variables like datasource
names, server addresses ( mail server for instance ) and url's in the
application scope because these variables change rarely and usually not for
short periods of time, so imo placing them in the application scope is an
unnecessary use of persistent memory and it's best to just declare them in
the application.cfm or the like and then update that template when changes
are necessary.

I'm not saying this is "best case" or anything -- just my opinions about it.

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

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

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


>   I would agree.  At a conceptual level.  If a variable is
>   being used a
> lot, however, it may make not make sense to store it in a
> local (or
> request) variable to avoid the need for locks.

>   Of course, that was in CF5.  I don't know of best
>   practices for CFMX yet.

> At 01:08 PM 11/25/2002 -0600, you wrote:
>>So, it seems to me that in a purist sense, common values
>>across all Users
>>belong in application variables.
>>
>>-Original Message-
>>From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, November 25, 2002 1:06 PM
>>To: CF-Talk
>>Subject: Re: Application variables
>>
>>
>>   Request variables and Application variables are two
>>   completely different
>>things, so i don't know if they deserve direct comparison.
>>It depends what
>>you want to use them for.
>>
>>   Request variables exist during a single page execution.
>>   They are not persistent across page requests.
>>   You do not need to lock them.
>>   If 100 users hit the same page at once, then 100
>>   instances of each
>>request variable will exist simultaneously.
>>   Request variables are available to all templates in the
>>   request,
>>including custom tags.  Because of this, I like to say
>>that they are global
>>to the request.  Many people use them to avoid passing
>>parameters into
>>custom tags.  I feel that is the only use for them over
>>local variables
>>(I.E. the variables scope ).
>>
>>   Application variables are locked into an application
>>   via the
>>cfapplication tag.
>>   They are persistent across page requests.
>>   You really should lock them.
>>If 100 users hit the same page at once, then only 1
>>copy of each
>>application variable will exist.
>>They are available to all templates in the request,
>>including custom
>>tags.
>>
>>Does that give you enough to go on?
>>
>>
>>At 10:40 AM 11/25/2002 -0800, you wrote:
>> >From: "Andy Ousterhout" <[EMAIL PROTECTED]>
>> >To: "CF-Talk" <[EMAIL PROTECTED]>
>> >Sent: Monday, November 25, 2002 10:31 AM
>> >Subject: RE: Application variables
>> >
>> >
>> > > What's are the Pro's and Con's  of using Request
>> > > Variables over
>> >Application
>> > > Var?
>> > >
>>
>>
>>
>>--
>>Jeffry Houser | mailto:[EMAIL PROTECTED]
>>DotComIt, Putting you on the web
>>AIM: Reboog711  | Phone: 1-203-379-0773
>>--
>>My CFMX Book:
>>>coldfu-20>
>>My Books: http://www.instantcoldfusion.com
>>My Band: http://www.farcryfly.com
>>
>>
>>
> ~~
> ~~~|
> 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.


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

2002-11-25 Thread Samuel R. Neff
If you're talking about the WSDL cache, then you can delete them from CF 
Admin manually as Ray suggested or you can do it programmatically through 
the XML RPC service.  See here:

http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=7&threadid=456032

If you're talking about the template itself, check if Trusted Cache is 
turned on in CF Admin.  If it is, then turn it off (may need to restart 
service after changing this).

If neither of those fixes your problem, delete all the class files under

[ColdFusionMX]\wwwroot\WEB-INF\cfclasses

HTH,

Sam

At 11:49 AM 11/25/2002, you wrote:
>How can you force a component to stop reading from the cache? I have a
>component that is not reflecting the changes made to it
>
>Brook

~|
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: Studio MX install issues - help on upgrade

2002-11-25 Thread David Notik
Hi James:

I remember having a similar issue when upgrading from 4.5 to MX.  I
recall having to enter the serial number a few times before it finally
caught it.  Try entering it all upper-case (both the old and new) and
try simply retyping it.

Sorry I don't know the specific thing I did, but I remember it was kind
of funky.

-D

###
David Notik
Digital202, LLC
Imagination gone digital.
Web: www.digital202.com
E-mail: [EMAIL PROTECTED]
Office: (206) 575-1717
Mobile: (206) 351-3948
###


-Original Message-
From: James Mathieson [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 12:35 PM
To: CF-Talk
Subject: Studio MX install issues - help on upgrade

Heya, folks,

OK, so wanting to support my favorite software company, I purchased
Studio
MX (I'll admit, I use CF Studio for everything, but I figured I might as
well get the whole bundle and finally sit down and learn how to create
Flash
goodness). According to the upgrade chart, since I have CF Studio 4.5, I
was
eligable for the upgrade. The sticker on the box even lists CF Studio
4.5 or
higher as required.

So I stick Studio MX in to install, pop in the nice shiny new serial
number,
agree to the EULA, get to the page that tells me to enter either the (2)
serial numbers from qualifying products -or- the serial number from the
studio product, enter my serial number from my CF Studio (4.5), _get_ a
green check next to that line (which I assume means it accepts the
serial
number...), and ..

.and, nothing. the [NEXT] button is not live and ready to go. It sits
there, I assume waiting for me to enter another product's serial number.
I've tried putting the CF Studio number on the second line as well, but
no
go.

And there's nothing (that I can find) on MM's website, forums,
reasonable
google-search, or CD that gives any indication what to do if upgrading
from
1 product.

Is there some unholy trick involved? Do I need to know the Secret
Handshake?
Is there some other number I'm supposed to use with it? Or am I just
completely mislead that I can indeed upgrade from my clunky old CF
Studio
4.5, despite what the marketing says?

Cheers,
James
(Really, MM guys, I *do* want to try DWMX! Honestly! Despite what some
reviews here have said)

James Mathieson
Information Systems Manager
The Wildlife Society
5410 Grosvenor Lane
Bethesda, MD  20814-2197
PH: 301-897-9770
Fax:  301-530-2471
[EMAIL PROTECTED]
http://www.wildlife.org/



~|
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: Studio MX install issues - help on upgrade

2002-11-25 Thread Tony Weeg
how about the serial for the new MX stuff?

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: James Mathieson [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 3:35 PM
To: CF-Talk
Subject: Studio MX install issues - help on upgrade


Heya, folks,

OK, so wanting to support my favorite software company, I purchased
Studio
MX (I'll admit, I use CF Studio for everything, but I figured I might as
well get the whole bundle and finally sit down and learn how to create
Flash
goodness). According to the upgrade chart, since I have CF Studio 4.5, I
was
eligable for the upgrade. The sticker on the box even lists CF Studio
4.5 or
higher as required.

So I stick Studio MX in to install, pop in the nice shiny new serial
number,
agree to the EULA, get to the page that tells me to enter either the (2)
serial numbers from qualifying products -or- the serial number from the
studio product, enter my serial number from my CF Studio (4.5), _get_ a
green check next to that line (which I assume means it accepts the
serial
number...), and ..

.and, nothing. the [NEXT] button is not live and ready to go. It sits
there, I assume waiting for me to enter another product's serial number.
I've tried putting the CF Studio number on the second line as well, but
no
go.

And there's nothing (that I can find) on MM's website, forums,
reasonable
google-search, or CD that gives any indication what to do if upgrading
from
1 product.

Is there some unholy trick involved? Do I need to know the Secret
Handshake?
Is there some other number I'm supposed to use with it? Or am I just
completely mislead that I can indeed upgrade from my clunky old CF
Studio
4.5, despite what the marketing says?

Cheers,
James
(Really, MM guys, I *do* want to try DWMX! Honestly! Despite what some
reviews here have said)

James Mathieson
Information Systems Manager
The Wildlife Society
5410 Grosvenor Lane
Bethesda, MD  20814-2197
PH: 301-897-9770
Fax:  301-530-2471
[EMAIL PROTECTED]
http://www.wildlife.org/



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



Studio MX install issues - help on upgrade

2002-11-25 Thread James Mathieson
Heya, folks,

OK, so wanting to support my favorite software company, I purchased Studio
MX (I'll admit, I use CF Studio for everything, but I figured I might as
well get the whole bundle and finally sit down and learn how to create Flash
goodness). According to the upgrade chart, since I have CF Studio 4.5, I was
eligable for the upgrade. The sticker on the box even lists CF Studio 4.5 or
higher as required.

So I stick Studio MX in to install, pop in the nice shiny new serial number,
agree to the EULA, get to the page that tells me to enter either the (2)
serial numbers from qualifying products -or- the serial number from the
studio product, enter my serial number from my CF Studio (4.5), _get_ a
green check next to that line (which I assume means it accepts the serial
number...), and ..

..and, nothing. the [NEXT] button is not live and ready to go. It sits
there, I assume waiting for me to enter another product's serial number.
I've tried putting the CF Studio number on the second line as well, but no
go.

And there's nothing (that I can find) on MM's website, forums, reasonable
google-search, or CD that gives any indication what to do if upgrading from
1 product.

Is there some unholy trick involved? Do I need to know the Secret Handshake?
Is there some other number I'm supposed to use with it? Or am I just
completely mislead that I can indeed upgrade from my clunky old CF Studio
4.5, despite what the marketing says?

Cheers,
James
(Really, MM guys, I *do* want to try DWMX! Honestly! Despite what some
reviews here have said)

James Mathieson
Information Systems Manager
The Wildlife Society
5410 Grosvenor Lane
Bethesda, MD  20814-2197
PH: 301-897-9770
Fax:  301-530-2471
[EMAIL PROTECTED]
http://www.wildlife.org/


~|
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: Application variables

2002-11-25 Thread S . Isaac Dealey
> Bryan Stevenson wrote:
>> You have to restart CF to reset APPLICATION vars (timing
>> out the app might
>> work too).


> application=strucnew();

I'm not necessarily convinced that would clear the application scope rather
than creating a local variable called application.

structclear(application); might be better.

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

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

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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



CFQUERYPARAM in cfincludes

2002-11-25 Thread Funky Music
Hello CF-people!

I have got a question - I am updating a coldfusion application to certain 

standards - one thing is the insert of cfqueryparams in all query 
operations.

Now I have the problem that the query is split into several files, because 

many queries use the same SQL parts.

If I want to replace the simple values in the include files with 
cfqueryparams but this does not work:

>
Context error in tag CFQUERYPARAM The CFQUERYPARAM tag must be nested 
between the  and the  tags
<

Why? The cfqueryparam is within the cfquery tag:

- template 1

SELECT field1,field2,field3
WHERE ;


- template common_where_clause.cfm
(field1 = #val(form.test)# AND field2 = #val(form.test2)#)


Best regards,

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

2002-11-25 Thread Raymond Camden
I assume you mean a web service authored in a CFC. There is no way to
turn it off - but you can refresh the cache in the CFMX admin.

===
Raymond Camden, ColdFusion Jedi Master for Hire

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: Brook Davies [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, November 25, 2002 1:50 PM
> To: CF-Talk
> Subject: component caching
> 
> 
> How can you force a component to stop reading from the cache? 
> I have a 
> component that is not reflecting the changes made to it
> 


~|
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: component caching

2002-11-25 Thread Tony Weeg
must stop/restart cfmx service from services panel.
don't know why, just gotta :)

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: Brook Davies [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 2:50 PM
To: CF-Talk
Subject: component caching


How can you force a component to stop reading from the cache? I have a 
component that is not reflecting the changes made to it

Brook



~|
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: Application variables

2002-11-25 Thread Jeffry Houser
  I would agree.  At a conceptual level.  If a variable is being used a 
lot, however, it may make not make sense to store it in a local (or 
request) variable to avoid the need for locks.

  Of course, that was in CF5.  I don't know of best practices for CFMX yet.

At 01:08 PM 11/25/2002 -0600, you wrote:
>So, it seems to me that in a purist sense, common values across all Users
>belong in application variables.
>
>-Original Message-
>From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
>Sent: Monday, November 25, 2002 1:06 PM
>To: CF-Talk
>Subject: Re: Application variables
>
>
>   Request variables and Application variables are two completely different
>things, so i don't know if they deserve direct comparison.  It depends what
>you want to use them for.
>
>   Request variables exist during a single page execution.
>   They are not persistent across page requests.
>   You do not need to lock them.
>   If 100 users hit the same page at once, then 100 instances of each
>request variable will exist simultaneously.
>   Request variables are available to all templates in the request,
>including custom tags.  Because of this, I like to say that they are global
>to the request.  Many people use them to avoid passing parameters into
>custom tags.  I feel that is the only use for them over local variables
>(I.E. the variables scope ).
>
>   Application variables are locked into an application via the
>cfapplication tag.
>   They are persistent across page requests.
>   You really should lock them.
>If 100 users hit the same page at once, then only 1 copy of each
>application variable will exist.
>They are available to all templates in the request, including custom
>tags.
>
>Does that give you enough to go on?
>
>
>At 10:40 AM 11/25/2002 -0800, you wrote:
> >From: "Andy Ousterhout" <[EMAIL PROTECTED]>
> >To: "CF-Talk" <[EMAIL PROTECTED]>
> >Sent: Monday, November 25, 2002 10:31 AM
> >Subject: RE: Application variables
> >
> >
> > > What's are the Pro's and Con's  of using Request Variables over
> >Application
> > > Var?
> > >
>
>
>
>--
>Jeffry Houser | mailto:[EMAIL PROTECTED]
>DotComIt, Putting you on the web
>AIM: Reboog711  | Phone: 1-203-379-0773
>--
>My CFMX Book:
>
>My Books: http://www.instantcoldfusion.com
>My Band: http://www.farcryfly.com
>
>
>
~|
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.



component caching

2002-11-25 Thread Brook Davies
How can you force a component to stop reading from the cache? I have a 
component that is not reflecting the changes made to it

Brook


~|
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: Application variables

2002-11-25 Thread S . Isaac Dealey
Yea, you'd just use something like this in your application.cfm template:



https://www.mydomain.com/securelogin/index.cfm";>

etc...

> Do you have to set them each time, for each page?

> -Original Message-
> From: Bryan Stevenson
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 12:40 PM
> To: CF-Talk
> Subject: Re: Application variables


> Well a big plus is that you don't need to lock REQUEST
> scoped vars.

> 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: "Andy Ousterhout" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, November 25, 2002 10:31 AM
> Subject: RE: Application variables


>> What's are the Pro's and Con's  of using Request
>> Variables over
> Application
>> Var?
>>
>> -Original Message-
>> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, November 25, 2002 12:16 PM
>> To: CF-Talk
>> Subject: Re: Application variables
>>
>>
>> You can overwrite them with  ... though I
>> typically use > request.myapp.myvar = "something"> instead of application
>> variables for
> this
>> sort of thing also. The app could be using  tags
>> instead of
> 
>> tags in which case it would chew through the xml file on
>> each request
>> unecessarily since the param won't overwrite the existing
>> value.
>>
>> Or it could use something like > structkeyexists(application,"init")> to determine when to
>> load the
>> application vars, in which case, it won't reload them
>> when you modify the
>> xml file because application.init already exists. You
>> could use a url
>> variable to force the app to reload the xml file in this
>> situation,
> however,
>> which wouldn't be too tough to accomplish or too hard on
>> the server...
>>
>> > default="#yesnoformat(not
>> structkeyexists(application,"init"))#">
>> 
>> ... chew up the xml file here ...
>> 
>>
>> Then when you update the xml file, just load the
>> application's default
> page
>> with &init=true in the query string
>>
>> > You have to restart CF to reset APPLICATION vars
>> > (timing out the app
> might
>> > work too).
>>
>> > Personally I like to use REQUEST scope over APPLICATION
>> > scope ;-)
>>
>> > 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: "Cutter (CF_Talk)" <[EMAIL PROTECTED]>
>> > To: "CF-Talk" <[EMAIL PROTECTED]>
>> > Sent: Monday, November 25, 2002 10:00 AM
>> > Subject: Application variables
>>
>>
>> >> I've been on http://www.benorama.com looking at a CF
>> >> design pattern. In
>> >> this tutorial it talks about using your
>> >> Application.cfm to call
>> >> _init.cfm, which parses through an xml file to create
>> >> your application
>> >> variables. I've done this (very closely following the
>> >> sample app). I've
>> >> created a page using cfdump to show me the application
>> >> variables, but
>> >> when I change my xml doc and refresh my page the
>> >> application variables
>> >> do not appear to update? Any ideas?
>> >>
>> >> Cutter
>> >>
>> >>
>> >
>>
>>

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


s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

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

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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: Application variables

2002-11-25 Thread S . Isaac Dealey
And this doesn't suffer from the confusion of race conditions either since
you can't have a race condition caused by a request var.

> Well a big plus is that you don't need to lock REQUEST
> scoped vars.

> 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: "Andy Ousterhout" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, November 25, 2002 10:31 AM
> Subject: RE: Application variables


>> What's are the Pro's and Con's  of using Request
>> Variables over
> Application
>> Var?
>>
>> -Original Message-
>> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, November 25, 2002 12:16 PM
>> To: CF-Talk
>> Subject: Re: Application variables
>>
>>
>> You can overwrite them with  ... though I
>> typically use > request.myapp.myvar = "something"> instead of application
>> variables for
> this
>> sort of thing also. The app could be using  tags
>> instead of
> 
>> tags in which case it would chew through the xml file on
>> each request
>> unecessarily since the param won't overwrite the existing
>> value.
>>
>> Or it could use something like > structkeyexists(application,"init")> to determine when to
>> load the
>> application vars, in which case, it won't reload them
>> when you modify the
>> xml file because application.init already exists. You
>> could use a url
>> variable to force the app to reload the xml file in this
>> situation,
> however,
>> which wouldn't be too tough to accomplish or too hard on
>> the server...
>>
>> > default="#yesnoformat(not
>> structkeyexists(application,"init"))#">
>> 
>> ... chew up the xml file here ...
>> 
>>
>> Then when you update the xml file, just load the
>> application's default
> page
>> with &init=true in the query string
>>
>> > You have to restart CF to reset APPLICATION vars
>> > (timing out the app
> might
>> > work too).
>>
>> > Personally I like to use REQUEST scope over APPLICATION
>> > scope ;-)
>>
>> > Bryan Stevenson B.Comm.
>> > VP & Director of E-Commerce Development
>> > Electric Edge Systems Group Inc.
>> > t. 250.920.8830
>> > e. [EMAIL PROTECTED]


s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

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

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



Re: Application variables

2002-11-25 Thread Zac Spitzer
Bryan Stevenson wrote:
> You have to restart CF to reset APPLICATION vars (timing out the app might
> work too).


application=strucnew();

z

~|
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: Application variables

2002-11-25 Thread Andy Ousterhout
So, it seems to me that in a purist sense, common values across all Users
belong in application variables.

-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:06 PM
To: CF-Talk
Subject: Re: Application variables


  Request variables and Application variables are two completely different
things, so i don't know if they deserve direct comparison.  It depends what
you want to use them for.

  Request variables exist during a single page execution.
  They are not persistent across page requests.
  You do not need to lock them.
  If 100 users hit the same page at once, then 100 instances of each
request variable will exist simultaneously.
  Request variables are available to all templates in the request,
including custom tags.  Because of this, I like to say that they are global
to the request.  Many people use them to avoid passing parameters into
custom tags.  I feel that is the only use for them over local variables
(I.E. the variables scope ).

  Application variables are locked into an application via the
cfapplication tag.
  They are persistent across page requests.
  You really should lock them.
   If 100 users hit the same page at once, then only 1 copy of each
application variable will exist.
   They are available to all templates in the request, including custom
tags.

   Does that give you enough to go on?


At 10:40 AM 11/25/2002 -0800, you wrote:
>From: "Andy Ousterhout" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Monday, November 25, 2002 10:31 AM
>Subject: RE: Application variables
>
>
> > What's are the Pro's and Con's  of using Request Variables over
>Application
> > Var?
> >



--
Jeffry Houser | mailto:[EMAIL PROTECTED]
DotComIt, Putting you on the web
AIM: Reboog711  | Phone: 1-203-379-0773
--
My CFMX Book:

My Books: http://www.instantcoldfusion.com
My Band: http://www.farcryfly.com


~|
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: Application variables

2002-11-25 Thread Jeffry Houser
  Request variables and Application variables are two completely different 
things, so i don't know if they deserve direct comparison.  It depends what 
you want to use them for.

  Request variables exist during a single page execution.
  They are not persistent across page requests.
  You do not need to lock them.
  If 100 users hit the same page at once, then 100 instances of each 
request variable will exist simultaneously.
  Request variables are available to all templates in the request, 
including custom tags.  Because of this, I like to say that they are global 
to the request.  Many people use them to avoid passing parameters into 
custom tags.  I feel that is the only use for them over local variables 
(I.E. the variables scope ).

  Application variables are locked into an application via the 
cfapplication tag.
  They are persistent across page requests.
  You really should lock them.
   If 100 users hit the same page at once, then only 1 copy of each 
application variable will exist.
   They are available to all templates in the request, including custom tags.

   Does that give you enough to go on?


At 10:40 AM 11/25/2002 -0800, you wrote:
>From: "Andy Ousterhout" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Monday, November 25, 2002 10:31 AM
>Subject: RE: Application variables
>
>
> > What's are the Pro's and Con's  of using Request Variables over
>Application
> > Var?
> >



--
Jeffry Houser | mailto:[EMAIL PROTECTED]
DotComIt, Putting you on the web
AIM: Reboog711  | Phone: 1-203-379-0773
--
My CFMX Book: 

My Books: http://www.instantcoldfusion.com
My Band: http://www.farcryfly.com 

~|
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: CFAPPLICATION causes NULL Error for new users

2002-11-25 Thread Dustin Snell [Unisyn Software, LLC]
No - actually it seems to have broken other things.  This upgrade from 4.5
to MX is turning into a
nightmare.  Can anyone tell me why CFApplication with session and client
management turned on causes a NULL error message for all new users?

Dustin Snell
Unisyn Software, LLC
http://www.unisyn.com




- Original Message -
From: "Dustin Snell [Unisyn Software, LLC]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 10:45 AM
Subject: Re: CFAPPLICATION causes NULL Error for new users


> Answering my own post.  I changed the variable handling mechanism from
> Registry to Cookie and it seemed to fix the problem.  I still don't know
why
> though.
>
> Dustin Snell
> Unisyn Software, LLC
> http://www.unisyn.com
>
> - Original Message -
> From: "Dustin Snell [Unisyn Software, LLC]" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, November 25, 2002 9:01 AM
> Subject: CFAPPLICATION causes NULL Error for new users
>
>
> > Hello all,
> >
> > I upgraded from CF 4.5 to MX the other day and among other problems I
ran
> > into a strange issue where the presence of CFAPPLICATION in my
> > application.cfm file would cause a new visitor (that is, one that had
not
> > been to the site to receive a cookie) would receive an CF generated
error
> > message with no line number or any other information except the text
> "Null".
> > The only way I could find to fix the error was to remove the
CFapplication
> > line which looked like this:
> >
> >  > SESSIONTIMEOUT=#CreateTimeSpan(0,11,0,0)#
> > APPLICATIONTIMEOUT=#CreateTimeSpan(0,11,0,0)#>
> >
> > Any idea?
> >
> > Dustin Snell
> > Unisyn Software, LLC
> > http://www.unisyn.com
> > The Leader in System AutoMation Software for Windows
> >
> >
> > 
~|
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: Application variables

2002-11-25 Thread Andy Ousterhout
Do you have to set them each time, for each page?

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 12:40 PM
To: CF-Talk
Subject: Re: Application variables


Well a big plus is that you don't need to lock REQUEST scoped vars.

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: "Andy Ousterhout" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 10:31 AM
Subject: RE: Application variables


> What's are the Pro's and Con's  of using Request Variables over
Application
> Var?
>
> -Original Message-
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 12:16 PM
> To: CF-Talk
> Subject: Re: Application variables
>
>
> You can overwrite them with  ... though I typically use  request.myapp.myvar = "something"> instead of application variables for
this
> sort of thing also. The app could be using  tags instead of

> tags in which case it would chew through the xml file on each request
> unecessarily since the param won't overwrite the existing value.
>
> Or it could use something like  structkeyexists(application,"init")> to determine when to load the
> application vars, in which case, it won't reload them when you modify the
> xml file because application.init already exists. You could use a url
> variable to force the app to reload the xml file in this situation,
however,
> which wouldn't be too tough to accomplish or too hard on the server...
>
>  default="#yesnoformat(not structkeyexists(application,"init"))#">
> 
> ... chew up the xml file here ...
> 
>
> Then when you update the xml file, just load the application's default
page
> with &init=true in the query string
>
> > You have to restart CF to reset APPLICATION vars (timing out the app
might
> > work too).
>
> > Personally I like to use REQUEST scope over APPLICATION scope ;-)
>
> > 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: "Cutter (CF_Talk)" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Monday, November 25, 2002 10:00 AM
> > Subject: Application variables
>
>
> >> I've been on http://www.benorama.com looking at a CF design pattern. In
> >> this tutorial it talks about using your Application.cfm to call
> >> _init.cfm, which parses through an xml file to create your application
> >> variables. I've done this (very closely following the sample app). I've
> >> created a page using cfdump to show me the application variables, but
> >> when I change my xml doc and refresh my page the application variables
> >> do not appear to update? Any ideas?
> >>
> >> Cutter
> >>
> >>
> >
>
>

~|
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: Java in CF (CFMX)

2002-11-25 Thread Dick Applebaum
Joe

Below is the Java source, originally caalled DBViewer.

This is working code that I modified to use the CFMX cfsnippets db (The  
PointBase
database shipped with the Linux distro).

I want to accomplish the same thing within CFMX, and generalize it a  
bit so it will
work with any JDBC driver and database,
remote or local, on any platform.

For remote dbs, there will be a stub program that determines the  
platform, CF
version, etc. and Uses COM objects or the Java interface as needed.
Requests and data are exchanged via WDDX packets.

For local dbs the function could be included inline (for performance)  
or via the
stub (for convenience)

The problem statements are shown at:  30, 38, and 45.

It is fairly easy to program equivalent CF code, but you can't pass  
nulls from CF.

Given more time, I would probably do this:

   Use a Java program (similar to this) to do the actual manipulation
   of the JDBC driver.

   Use a CF routine to interface the Java program:  providing input
   paramaters for the desired db request;  and presentation of the
   results

   Use an alias (such as 'MyNull'), to exchange psuedo nulls between
   CF and Java, as necessary

Any help will be greatly appreciated.

TIA

Dick



1 //  public abstract ResultSet getIndexInfo(String catalog, String  
schema,String table, boolean unique, boolean approximate)  
throws SQLException;
2 //  public abstract ResultSet   getColumns(String catalog, String  
schemaPattern, String tableNamePattern, String columnNamePattern)  
throws SQLException;

3
4 import java.sql.*;
5 import java.util.StringTokenizer;

6 public class DBViewerPB {

7   final static String jdbcURL =  
"jdbc:pointbase:cfsnippets,database.home=/opt/coldfusionmx/db";
8   final static String jdbcDriver =  
"com.pointbase.jdbc.jdbcUniversalDriver";
9   final static String username = "PBPUBLIC";
10   final static String password = "PBPUBLIC";

11   public static void main(java.lang.String[] args) {

12 System.out.println("--- Database Viewer ---");
13
14 try {
15   Class.forName(jdbcDriver);
16   Connection con = DriverManager.getConnection(jdbcURL,  
username, password);

17   DatabaseMetaData dbmd = con.getMetaData(  );

18   System.out.println("Driver Name: " + dbmd.getDriverName(  ));
19   System.out.println("Database Product: " +  
dbmd.getDatabaseProductName(  ));
20   System.out.println("Database Version: " +  
dbmd.getDatabaseProductVersion(  ));
21   System.out.println("SQL Keywords Supported:");
22   //StringTokenizer st = new  
StringTokenizer(dbmd.getSQLKeywords(  ), ",");
23   //while(st.hasMoreTokens(  ))
24   //  System.out.println(" " + st.nextToken(  ));
25
26   // Get a ResultSet that contains all of the tables in this  
database
27   // We specify a table_type of "TABLE" to prevent seeing system  
tables,
28   // views and so forth
29   String[] tableTypes = { "TABLE" };
30   ResultSet allTables =  
dbmd.getTables(null,null,null,tableTypes);
31   while(allTables.next(  )) {
32 String table_name = allTables.getString("TABLE_NAME");
33 System.out.println("Table Name: " + table_name);
34 System.out.println("Table Type:  " +  
allTables.getString("TABLE_TYPE"));
35 System.out.println("Indexes: ");

36 // Get a list of all the columns for this table
37 ResultSet columnList =
38  dbmd.getColumns(null,null,table_name,null);
39 while(columnList.next(  )) {
40   System.out.println(" Column Name:  
"+columnList.getString("COLUMN_NAME"));
41 }
42 columnList.close(  );

43 // Get a list of all the indexes for this table
44 ResultSet indexList =
45   
dbmd.getIndexInfo(null,null,table_name,false,false);
46 while(indexList.next(  )) {
47   System.out.println(" Index Name:  
"+indexList.getString("INDEX_NAME"));
48   System.out.println(" Column Name:  
"+indexList.getString("COLUMN_NAME"));
49 }
50 indexList.close(  );
51   }

52   allTables.close(  );
53   con.close(  );
54 }
55 catch (ClassNotFoundException e) {
56   System.out.println("Unable to load database driver class");
57 }
58 catch (SQLException e) {
59   System.out.println("SQL Exception: " + e.getMessage(  ));
60 }
61   }
62 }


On Monday, November 25, 2002, at 08:42 AM, Joe Eugene wrote:

> Dick,
> Can we see your code? Cant you have a method that converts CF String  
> "null" to
> Java String=null?
>
>> tried to invoke it with cfobject.  We could not
>> make the interface work
>> because we could not pass Nulls between CF and
>> Java.
>
> Here is an example
>
> public class StringType{
>   private String str;
>   public String getString(String s){
>String val="";
>str=s;
>if(str.equals("null")){
>val="Your String was null, setting to null  now";
>str = null;
>val= val+ " " +"Now Java v

Re: CFAPPLICATION causes NULL Error for new users

2002-11-25 Thread jon hall
I've seen this problem in action, but never on one of my installs, but
this bug was the topic of a thread about a month ago.

-- 
 jon
 mailto:[EMAIL PROTECTED]

Monday, November 25, 2002, 1:45:46 PM, you wrote:
DSUSL> Answering my own post.  I changed the variable handling mechanism from
DSUSL> Registry to Cookie and it seemed to fix the problem.  I still don't know why
DSUSL> though.

DSUSL> Dustin Snell
DSUSL> Unisyn Software, LLC
DSUSL> http://www.unisyn.com

DSUSL> - Original Message -
DSUSL> From: "Dustin Snell [Unisyn Software, LLC]" <[EMAIL PROTECTED]>
DSUSL> To: "CF-Talk" <[EMAIL PROTECTED]>
DSUSL> Sent: Monday, November 25, 2002 9:01 AM
DSUSL> Subject: CFAPPLICATION causes NULL Error for new users


>> Hello all,
>>
>> I upgraded from CF 4.5 to MX the other day and among other problems I ran
>> into a strange issue where the presence of CFAPPLICATION in my
>> application.cfm file would cause a new visitor (that is, one that had not
>> been to the site to receive a cookie) would receive an CF generated error
>> message with no line number or any other information except the text
DSUSL> "Null".
>> The only way I could find to fix the error was to remove the CFapplication
>> line which looked like this:
>>
>> > SESSIONTIMEOUT=#CreateTimeSpan(0,11,0,0)#
>> APPLICATIONTIMEOUT=#CreateTimeSpan(0,11,0,0)#>
>>
>> Any idea?
>>

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



TUCOWS / OpenSRS

2002-11-25 Thread Sean Daniels
If anyone out there has had success interfacing with the OpenSRS domain 
name reseller system, and has any tips or code samples they can 
provide, I would be much obliged.

TIA

~|
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: Application variables

2002-11-25 Thread Raymond Camden
Depending on how you use them, in cfmx you don't need to lock
application vars as well.

===
Raymond Camden, ColdFusion Jedi Master for Hire

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: Bryan Stevenson [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, November 25, 2002 12:40 PM
> To: CF-Talk
> Subject: Re: Application variables
> 
> 
> Well a big plus is that you don't need to lock REQUEST scoped vars.
> 
> 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: "Andy Ousterhout" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, November 25, 2002 10:31 AM
> Subject: RE: Application variables
> 
> 
> > What's are the Pro's and Con's  of using Request Variables over
> Application
> > Var?


~|
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: CFAPPLICATION causes NULL Error for new users

2002-11-25 Thread Dustin Snell [Unisyn Software, LLC]
Answering my own post.  I changed the variable handling mechanism from
Registry to Cookie and it seemed to fix the problem.  I still don't know why
though.

Dustin Snell
Unisyn Software, LLC
http://www.unisyn.com

- Original Message -
From: "Dustin Snell [Unisyn Software, LLC]" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 9:01 AM
Subject: CFAPPLICATION causes NULL Error for new users


> Hello all,
>
> I upgraded from CF 4.5 to MX the other day and among other problems I ran
> into a strange issue where the presence of CFAPPLICATION in my
> application.cfm file would cause a new visitor (that is, one that had not
> been to the site to receive a cookie) would receive an CF generated error
> message with no line number or any other information except the text
"Null".
> The only way I could find to fix the error was to remove the CFapplication
> line which looked like this:
>
>  SESSIONTIMEOUT=#CreateTimeSpan(0,11,0,0)#
> APPLICATIONTIMEOUT=#CreateTimeSpan(0,11,0,0)#>
>
> Any idea?
>
> Dustin Snell
> Unisyn Software, LLC
> http://www.unisyn.com
> The Leader in System AutoMation Software for Windows
>
>
> 
~|
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: Application variables

2002-11-25 Thread Bryan Stevenson
Well a big plus is that you don't need to lock REQUEST scoped vars.

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: "Andy Ousterhout" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 10:31 AM
Subject: RE: Application variables


> What's are the Pro's and Con's  of using Request Variables over
Application
> Var?
>
> -Original Message-
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 12:16 PM
> To: CF-Talk
> Subject: Re: Application variables
>
>
> You can overwrite them with  ... though I typically use  request.myapp.myvar = "something"> instead of application variables for
this
> sort of thing also. The app could be using  tags instead of

> tags in which case it would chew through the xml file on each request
> unecessarily since the param won't overwrite the existing value.
>
> Or it could use something like  structkeyexists(application,"init")> to determine when to load the
> application vars, in which case, it won't reload them when you modify the
> xml file because application.init already exists. You could use a url
> variable to force the app to reload the xml file in this situation,
however,
> which wouldn't be too tough to accomplish or too hard on the server...
>
>  default="#yesnoformat(not structkeyexists(application,"init"))#">
> 
> ... chew up the xml file here ...
> 
>
> Then when you update the xml file, just load the application's default
page
> with &init=true in the query string
>
> > You have to restart CF to reset APPLICATION vars (timing out the app
might
> > work too).
>
> > Personally I like to use REQUEST scope over APPLICATION scope ;-)
>
> > 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: "Cutter (CF_Talk)" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Monday, November 25, 2002 10:00 AM
> > Subject: Application variables
>
>
> >> I've been on http://www.benorama.com looking at a CF design pattern. In
> >> this tutorial it talks about using your Application.cfm to call
> >> _init.cfm, which parses through an xml file to create your application
> >> variables. I've done this (very closely following the sample app). I've
> >> created a page using cfdump to show me the application variables, but
> >> when I change my xml doc and refresh my page the application variables
> >> do not appear to update? Any ideas?
> >>
> >> Cutter
> >>
> >>
> >
>
> 
~|
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: Application variables

2002-11-25 Thread Andy Ousterhout
What's are the Pro's and Con's  of using Request Variables over Application
Var?

-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 12:16 PM
To: CF-Talk
Subject: Re: Application variables


You can overwrite them with  ... though I typically use  instead of application variables for this
sort of thing also. The app could be using  tags instead of 
tags in which case it would chew through the xml file on each request
unecessarily since the param won't overwrite the existing value.

Or it could use something like  to determine when to load the
application vars, in which case, it won't reload them when you modify the
xml file because application.init already exists. You could use a url
variable to force the app to reload the xml file in this situation, however,
which wouldn't be too tough to accomplish or too hard on the server...



... chew up the xml file here ...


Then when you update the xml file, just load the application's default page
with &init=true in the query string

> You have to restart CF to reset APPLICATION vars (timing out the app might
> work too).

> Personally I like to use REQUEST scope over APPLICATION scope ;-)

> 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: "Cutter (CF_Talk)" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, November 25, 2002 10:00 AM
> Subject: Application variables


>> I've been on http://www.benorama.com looking at a CF design pattern. In
>> this tutorial it talks about using your Application.cfm to call
>> _init.cfm, which parses through an xml file to create your application
>> variables. I've done this (very closely following the sample app). I've
>> created a page using cfdump to show me the application variables, but
>> when I change my xml doc and refresh my page the application variables
>> do not appear to update? Any ideas?
>>
>> Cutter
>>
>>
>

~|
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: Application variables

2002-11-25 Thread S . Isaac Dealey
You can overwrite them with  ... though I typically use  instead of application variables for this
sort of thing also. The app could be using  tags instead of 
tags in which case it would chew through the xml file on each request
unecessarily since the param won't overwrite the existing value.

Or it could use something like  to determine when to load the
application vars, in which case, it won't reload them when you modify the
xml file because application.init already exists. You could use a url
variable to force the app to reload the xml file in this situation, however,
which wouldn't be too tough to accomplish or too hard on the server...



... chew up the xml file here ...


Then when you update the xml file, just load the application's default page
with &init=true in the query string

> You have to restart CF to reset APPLICATION vars (timing out the app might
> work too).

> Personally I like to use REQUEST scope over APPLICATION scope ;-)

> 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: "Cutter (CF_Talk)" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, November 25, 2002 10:00 AM
> Subject: Application variables


>> I've been on http://www.benorama.com looking at a CF design pattern. In
>> this tutorial it talks about using your Application.cfm to call
>> _init.cfm, which parses through an xml file to create your application
>> variables. I've done this (very closely following the sample app). I've
>> created a page using cfdump to show me the application variables, but
>> when I change my xml doc and refresh my page the application variables
>> do not appear to update? Any ideas?
>>
>> Cutter
>>
>>
> 
~|
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: Application variables

2002-11-25 Thread Bryan Stevenson
You have to restart CF to reset APPLICATION vars (timing out the app might
work too).

Personally I like to use REQUEST scope over APPLICATION scope ;-)

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: "Cutter (CF_Talk)" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 10:00 AM
Subject: Application variables


> I've been on http://www.benorama.com looking at a CF design pattern. In
> this tutorial it talks about using your Application.cfm to call
> _init.cfm, which parses through an xml file to create your application
> variables. I've done this (very closely following the sample app). I've
> created a page using cfdump to show me the application variables, but
> when I change my xml doc and refresh my page the application variables
> do not appear to update? Any ideas?
>
> Cutter
>
> 
~|
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.



Application variables

2002-11-25 Thread Cutter (CF_Talk)
I've been on http://www.benorama.com looking at a CF design pattern. In 
this tutorial it talks about using your Application.cfm to call 
_init.cfm, which parses through an xml file to create your application 
variables. I've done this (very closely following the sample app). I've 
created a page using cfdump to show me the application variables, but 
when I change my xml doc and refresh my page the application variables 
do not appear to update? Any ideas?

Cutter

~|
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: session variables & nested application.cfm files

2002-11-25 Thread S . Isaac Dealey
Afaik session variables are application specific, so if your subdirectroy
cfapplication tag has a different name attribute, the subdirectory will have
separate sessions.

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

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

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

> I'm working on a site that has two application.cfm files, one in the root
> directory and the other in a subdirectory.  Each  tag has
> different name attributes.

> I would like to use session variables to restrict access to the
> subdirectory.  If I create a session varible within the scope of the root
> application.cfm, is it recognized in the subdirectory where different
> application.cmf is referenced?

> Dwayne Cole, MS in MIS, MBA
> Florida A&M University
> Certified Advanced ColdFusion Developer
> 850-591-0212


~|
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: Message Board

2002-11-25 Thread Michael Greenberg
Try Simpleboard -
http://www.simplemessageboard.com

Or you might want to try CFBB as well
http://www.adersoftware.com/index.cfm?page=cfbb
I've heard good things about both

Thanks,
Michael


- Original Message -
From: "Double Down, Inc." <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 12:13 PM
Subject: Message Board


> Does anyone know of a good free message board program? I have checked out
the ones on the developers exchange and was wondering if anyone had any
others that they would recommend.
>
> TIA
> 
~|
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



session variables & nested application.cfm files

2002-11-25 Thread Dwayne Cole
I'm working on a site that has two application.cfm files, one in the root directory 
and the other in a subdirectory.  Each  tag has different name 
attributes.  

I would like to use session variables to restrict access to the subdirectory.  If I 
create a session varible within the scope of the root application.cfm, is it 
recognized in the subdirectory where different application.cmf is referenced?

Dwayne Cole, MS in MIS, MBA
Florida A&M University
Certified Advanced ColdFusion Developer
850-591-0212
 

~|
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: What are your experiences with PDF forms/FDF/CFMX?

2002-11-25 Thread Rob Rohan
Shameless plug again http://treebeard.sourceforge.net/cfx_treebeard.php

Rob

Certified Organic
"When you put things in quotes, people think someone actually said it."
http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 4:34 AM
To: CF-Talk
Subject: RE: What are your experiences with PDF forms/FDF/CFMX?


Look at ActivePDF.com, Have to be careful with MX and COM, though.

Also you can do XML -> PDF with xml-fo fop.apache.org.

also look at

http://www.school-for-champions.com/coldfusion/cftopdf.htm
http://www.cfcomet.com/pdf/



web guy


> -Original Message-
> From: Jeff Small [mailto:[EMAIL PROTECTED]]
> Sent: 25 November 2002 05:12
> To: CF-Talk
> Subject: What are your experiences with PDF forms/FDF/CFMX?
>
>
> Large insurance company has a lot of "forms" that are pdf files.
> They're not
> true forms, in the sense that they've had form fields placed in them and
> defined. They're merely Word documents (and in some caseno lie...scans
> of older forms, saved as tifs, and output as a pdf from photoshop...trust
> me, I had NOTHING to do with the origin of these pdf files...lol)
> that have
> been saved as pdf files.
>
> Now, here's the question.
>
> They want to turn them into forms that will accept data, and
> submit it, then
> on the back end, populate a pdf from the submitted fdf file, and attach it
> to an email and send it to the person receiving the form
> submission. I think
> there's something about how it (the form) has to be submitted exactly like
> it appears so that the person receiving it on the other end can
> simply print
> it and file it. (I know, I know...please...I went all around this over the
> weekend).
>
> I can think of about a hundred reasons why I hate the very idea of
> approaching this project in this manner, and I offered a
> compromise solution
> of creating web forms in dreamweaver, and, using cfmx, store the
> information
> in a database, and generate an email with a link to a page that
> will display
> the submitted information, and allow the users to click a link that will
> take that information and generate a dynamically populated PDF file, then
> give them the ability to attach it to an email and send it to a
> predetermined recipient list.
>
> This was somewhat well received, and I began the task of
> searching for ways
> to accomplish this. It seems easy enough on the backend. Has anyone else
> tried anything like this? It would be generated on a Windows
> Machine running
> IIS and Windows 2000 server, running ColdFusionMX.
>
> What ways did you do it? Was it successful? Any advice on
> pitfalls to avoid?
> Any advice at all?
>
> I think we *might* need to actually submit a PDF file (due, believe it or
> not, to some insurance laws about hard copies of applications and form
> submissions), and I'm particularly interested in any tales of experiences
> with "Digital Signatures" in Acrobat, and how to handle that in CF.
>
>

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



Message Board

2002-11-25 Thread Double Down, Inc.
Does anyone know of a good free message board program? I have checked out the ones on 
the developers exchange and was wondering if anyone had any others that they would 
recommend.

TIA
~|
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: CFC Addressing

2002-11-25 Thread Jeffry Houser
  You can access CFCs just like you would access custom tags.

  They can be put in the customtags directory of the ColdFusion installation.
  Or they can be in a directory that you can access via a ColdFusion mapping.
  Or they can be in the same directory as the page that invokes it.  ( Or a 
relative directory to the page that invokes it )



At 10:52 AM 11/25/2002 -0600, you wrote:
>I have just finished Hal Helm's CFC book for the second time and this
>stuff is looking pretty nice. (of course I started programming in OO, so
>I knew it would be useful).
>
>My question is with regards to addressing a CFC. All of Hal's examples
>were directly under the MX wwwroot directory. How do you address a CFC
>if it is not under the wwwroot? For example, on my laptop, I have a
>virtual directory setup in IIS to point to d:\sandbox for my
>testing/play area. How would I invoke a cfc here?
>
>Would this also not be a problem for shared/virtual hosting where you
>might or might not know where the wwwroot folder is? This does not sound
>real portable if you have to have a 'physical' path to the wwwroot?
>
>Thanks
>-- Jeff
>
>
~|
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: Anyone have experience in writing Postscript files from CF?

2002-11-25 Thread Rob Rohan
As a shameless plug: http://treebeard.sourceforge.net/cfx_treebeard.php

Rob

Certified Organic
"When you put things in quotes, people think someone actually said it."
http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Samuel Neff [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 23, 2002 12:41 PM
To: CF-Talk
Subject: RE: Anyone have experience in writing Postscript files from CF?


Apache FOP can be used to convert XSL-FO into a variety of formats,
including both PostScript and PDF.  I've played with it a little and had
trouble using it directly from CF (even CFMX), but after acquiring a
more CF-friendly Java class it was easy to use (well, easy once you get
over the XSL-FO learning curve).

http://xml.apache.org/fop/


> -Original Message-
> From: Stacy Young [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 23, 2002 1:16 PM
> To: CF-Talk
> Subject: Anyone have experience in writing Postscript files from CF?
>
>
> Any how-to hints would be much appreciated!
>
> Stace
>
>



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



CFAPPLICATION causes NULL Error for new users

2002-11-25 Thread Dustin Snell [Unisyn Software, LLC]
Hello all,

I upgraded from CF 4.5 to MX the other day and among other problems I ran
into a strange issue where the presence of CFAPPLICATION in my
application.cfm file would cause a new visitor (that is, one that had not
been to the site to receive a cookie) would receive an CF generated error
message with no line number or any other information except the text "Null".
The only way I could find to fix the error was to remove the CFapplication
line which looked like this:



Any idea?

Dustin Snell
Unisyn Software, LLC
http://www.unisyn.com
The Leader in System AutoMation Software for Windows


~|
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: remove all linebreaks

2002-11-25 Thread jon hall
Doh...that was too easy, thanks. I've got a bunch of large formatted XML
files that I need to programmatically create and I was gettting really
sick of going through and deleting all the line breaks...

-- 
 jon
 mailto:[EMAIL PROTECTED]

Monday, November 25, 2002, 11:14:57 AM, you wrote:
MJSCWY> In studio goto "search"extended replace.."find what".hit the
MJSCWY> enter key in that box, leave "replace with" blank, and hit "replace"
MJSCWY> caution: make sure you have a copyonce done, it's not easily undone, and
MJSCWY> FYI, the resulting code is very hard to read.



MJSCWY> -Original Message-
MJSCWY> From: jon hall [mailto:[EMAIL PROTECTED]]
MJSCWY> Sent: Monday, November 25, 2002 10:19 AM
MJSCWY> To: CF-Talk
MJSCWY> Subject: remove all linebreaks


MJSCWY>   Kind of an odd request, but does anyone know if it's possible to use
MJSCWY>   Studio's replace function to replace all line breaks from a
MJSCWY>   document, and if so, how?

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



  1   2   >