Why would CF 4.5.2 suddenly stop processing pages?

2004-07-20 Thread Rick Faircloth
I'm working and everything is fine, then kaput! Suddenly CF won't process it's own code. The .cfm page shows up without the code processed just like it would if it were in file mode.  CF code is showing, such as #DateFormat(Now(), "mmm d, ")# without being processed...ideas? When I try to go

Re: merge data from two queries

2004-07-20 Thread Tony Weeg
thanks jim!  looks interesting, off i go...later. tony On Tue, 20 Jul 2004 20:01:57 -0400, Jim Davis <[EMAIL PROTECTED]> wrote: > In MX or 5.0 I'd use Query of queries.  However an ago (in the CF 4.5 days) > I did a challenge on this very topic.  The results are here: > > http://www.depressedpre

RE: Is this possible? was mediaPlayer

2004-07-20 Thread cfhelp
This was my thought I am just not sure how to read the MP3 file. Isn't there a file header that contains all the info on the file Artist, Song, Date, time and so on? I also think that Flash would be a better in this situation. Go look at http://www.rush.com/   and click on Rush Radio. That is e

Re: Urgent help needed Please.....

2004-07-20 Thread Sangeeta Karmokar
Yes Simon I have closed the query, I forgot to paste it and I have sav ed as thanks.cfm. I think the problem will be as u mentioned coldfusion is not parsing c ode before handing it over to the webserver. we are working on Mac OS X with MySql. How to fix this It was working fine on PC, this i

Re: Urgent Help....

2004-07-20 Thread Ubqtous
Does the query page have a CFM or CFML extension? Are other ColdFusion pages running successfully, i.e., no CF code is displaying in the browser? On Tue, 20 Jul 2004 20:05:52 -0400, Sangeeta Karmokar <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to CF. i am stuck in the middle. > We have backend

Re: Urgent Help....

2004-07-20 Thread Jordan Michaels
The only reason I can think of why this would happen is that the page you're submitting your form to is not a page that has a .cfm extension. What is the page name that your form submitting to? Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Sangeeta Karmokar wrote:

Re: Urgent help needed Please.....

2004-07-20 Thread Sangeeta Karmokar
Yes Simon I have closed the query, I forgot to paste it and I have saved as thanks.cfm. I think the problem will be as u mentioned coldfusion is not parsing code before handing it over to the webserver. we are working on Mac OS X with MySql. It was working fine on PC, this is the first time we are

RE: Accessing query results by row number

2004-07-20 Thread Jim Davis
Just a tiny plug, but if you want to learn more about this kind of thing have I guide for you?  Yes I do! http://www.depressedpress.com/DepressedPress/Content/ColdFusion/Guides/Varia bles/Index.cfm Covers all of this stuff in somewhat excruciating detail. Jim Davis From: [EMAIL PROTECTED] [mail

Urgent Help....

2004-07-20 Thread Sangeeta Karmokar
Hi, I am new to CF. i am stuck in the middle. We have backend as MySql and I am trying to add new member to the daabase using this query: INSERT INTO members (name,email) VALUES ('#name#','#email#') When I preview this first page and click on submit button, it takes me to this page, but ins

RE: merge data from two queries

2004-07-20 Thread Jim Davis
In MX or 5.0 I'd use Query of queries.  However an ago (in the CF 4.5 days) I did a challenge on this very topic.  The results are here: http://www.depressedpress.com/DepressedPress/Content/ColdFusion/Challenge/Co mbineSortQuery/Index.cfm There's some interesting stuff in there - much of it still

Register a dsn in coldfusion code

2004-07-20 Thread Julia Young
I've been on this for about a week now and It's bugging me because I know it's possible but I keep running into dead ends.  I'm trying to create and register a database in a coldfusion function.  I've copied new information into the service factory and the registry but I still haven't gotten anythi

Re: XPay - CFMX - XML

2004-07-20 Thread Robert Munn
> The XML packet is being pushed to the IP on port 5000. > > Paul Giesenhagen > QuillDesign You need to use something like Microsoft.XMLHTTP, or use cfimport to expose the Java URL class so you can POST raw XML data to the port. Here is an example from DevShed using the MS object: http://forum

cftreeitem Duplicate Parent Name Problem

2004-07-20 Thread Michael Schlei
I recently upgraded Coldfusion from 6.0 to 6.1 (was forced to do so after upgrading the server to Windows Server 2003).  Now, I'm having problems with cftreeitems being put in the wrong place in the cftree control.  The following code shows an example of the problem: In 6.0, th

Re: An exception occurred when instantiating a Com object

2004-07-20 Thread Mike Chabot
Dave, Thank you for your link suggestion. It was very helpful. I finally had time to investigate the error further and I found the answer, as described below. Error message: An exception occurred when instantiating a Com object.   The cause of this exception was that: AutomationException: 0x800700

RE: securing CF Administrator

2004-07-20 Thread Dave Watts
> Really?  your connected web instances continued to work after > you moved the JRUN instances into a cluster? I tried this > exact thing and it failed (w/Apache and MX .1) Yes, that worked for me with CFMX 6.1 and IIS 5. However, I didn't really set it up like this intentionally, and normally

Re: XPay - CFMX - XML

2004-07-20 Thread Paul Giesenhagen
The XML packet is being pushed to the IP on port 5000. Paul Giesenhagen QuillDesign   - Original Message -   From: Robert Munn   To: CF-Talk   Sent: Tuesday, July 20, 2004 4:53 PM   Subject: Re: XPay - CFMX - XML   > The question is, how do I send an XML string to the XPay client via

Re: XPay - CFMX - XML

2004-07-20 Thread Robert Munn
> The question is, how do I send an XML string to the XPay client via an > internal socket?  It resides on 127.0.0.1 port 5000  if that helps ... Is it using Web services or is it just a raw XML packet being pushed to the IP on port 5000? If it uses Web services, you can use cfinvoke to invoke i

Re: securing CF Administrator

2004-07-20 Thread Ben Frame
Really?  your connected web instances continued to work after you moved the JRUN instances into a cluster?  I tried this exact thing and it failed (w/Apache and MX .1)   I'll give it another try though, just to double-check, and reply back tomorrow. Thanks for the info. -Ben - Original Messag

Re: Retrieve a random record from a database

2004-07-20 Thread Jeff Langevin
Yup.  That's much better.  Let the DB do all the work. :) --Jeff Charlie Griefer wrote: > SELECT TOP 1 > field1, > field2, > ... > FROM > table > WHERE > public = 1 > ORDER BY > newID() > > - Original Message - > From: "Dustin Snell [Network Automation, Inc]" > <[

Re: Retrieve a random record from a database

2004-07-20 Thread Charlie Griefer
as a rule, you should try not to pull more records than you need.  if his table contains a large amount of records, and he only needs 1, it's not efficient to pull them all. since he's using SQL Server, he has the newID() function available to him (but be aware that it's SQL Server specific...so y

Re: Retrieve a random record from a database

2004-07-20 Thread JediHomer
You could do something like SELECT TOP 1 * FROM Testiments WHERE Public = 1 ORDER BY NewID() HTH - Original Message - From: Dustin Snell [Network Automation, Inc] <[EMAIL PROTECTED]> Date: Tue, 20 Jul 2004 14:21:44 -0700 Subject: Retrieve a random record from a database To: CF-Talk <[EMA

Re: Retrieve a random record from a database

2004-07-20 Thread Charlie Griefer
SELECT TOP 1     field1,     field2,     ... FROM     table WHERE     public = 1 ORDER BY     newID() - Original Message - From: "Dustin Snell [Network Automation, Inc]" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 2:21 PM Subject: Retrieve a random r

Re: Retrieve a random record from a database

2004-07-20 Thread Jeff Langevin
You could query for all public records and then use randRange(1,myquery.recordcount).  That'll give you a random row.  Then use the primary key to do whatever you need form there.  HTH. --Jeff Dustin Snell [Network Automation, Inc] wrote: > We have a database with a bunch of customer testimoni

RE: CFFile upload problem

2004-07-20 Thread Samuel R. Neff
You can handle file uploads using the form field directly without using cffile if that meets your needs.  The form field value will be a path to the temp file where it's stored. This is useful for example if you want to read in the file and process it but don't need to make a copy. It's not docum

Re: server hang - cfexectask.cfm

2004-07-20 Thread Simon Whittaker
Adam, Did you ever work out what was going on with this? Have been experiencing something similar. Cheers Simon >I've been trying to hunt down a bug over the last week or so without much >luck. The CF service is hanging at least once a week on our CF5/win2k >server, and I believe it has to do wi

Re: Urgent help needed Please.....

2004-07-20 Thread Simon Whittaker
On Tue, 20 Jul 2004 17:21:17 -0400, Sangeeta Karmokar <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to CF. we have backend as MySql and I am trying to inser into a database created in SQL using this query: > > > INSERT INTO members > (name,email) > VALUES ('#name#','#email#') > > But it

Re: Urgent help needed Please.....

2004-07-20 Thread Jeff Langevin
Close the cfquery, perhaps?  Unless that was just a cut and paste issue... --Jeff INSERT INTO members (name,email) VALUES ('#name#','#email#') Sangeeta Karmokar wrote: > Hi, > > I am new to CF. we have backend as MySql and I am trying to inser into > a database created in SQL using this quer

Re: Urgent help needed Please.....

2004-07-20 Thread Jerry Johnson
Is your file running this code named .cfm? (Or some other extension handled by Cold Fusion) Is Cold Fusion Server installed and running on your server? Jerry Johnson >>> [EMAIL PROTECTED] 07/20/04 05:21PM >>> Hi, I am new to CF. we have backend as MySql and I am trying to inser into a database c

Re: Urgent help needed Please.....

2004-07-20 Thread Bryan Stevenson
at first glance you are missinga  closing tagfor anything beyond that I'd like to see ALL the code involved Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED]   - Original Message -   From: Sangeeta K

Re: OT: JS number check

2004-07-20 Thread Joe Rinehart
Oops...knew I rattled that off too quickly.  Yeah, use your _expression_. :) -joe - Original Message - From: Samuel R. Neff <[EMAIL PROTECTED]> Date: Tue, 20 Jul 2004 17:04:29 -0400 Subject: RE: OT: JS number check To: CF-Talk <[EMAIL PROTECTED]> and then try alert(isNumeric("0.3.2"));

Retrieve a random record from a database

2004-07-20 Thread Dustin Snell [Network Automation, Inc]
We have a database with a bunch of customer testimonials in it. Records can be added to it at anytime. Some are marked public and some or not. Does anyone know how I could pull a single record randomly from the database using MSSQL2000 and CF6.1 for display on the website - but only out of the reco

Urgent help needed Please.....

2004-07-20 Thread Sangeeta Karmokar
Hi, I am new to CF. we have backend as MySql and I am trying to inser into a database created in SQL using this query: INSERT INTO members (name,email) VALUES ('#name#','#email#') But it is not adding to the database, the submit is just going to the query page and we can see all these codes

Re: Virtual Mappings in jrun-web.xml

2004-07-20 Thread Mike Chabot
>By inserting a "virtual mapping" in the jrun-web.xml, we were able to >"intercept" requests to /CFIDE/administrator and redirect them as >desired.   Ben, Unless I am not understanding you properly, your scenario many not be applicable to a typical CFMX install, which is what I am dealing with. If

Re: Proper Case UDF

2004-07-20 Thread Robert Munn
>Does anyone have a handy CF Proper Case UDF they would like to share?  I was >going to write one but thought I would check the web (without success) and a >few discussion forums first. CFLib has one for title case (actually it title cases a list of elements), maybe you could start with that as a

Re: Proper Case UDF

2004-07-20 Thread Charlie Griefer
have you looked at www.cflib.org?  hard to believe there's nothing there that would fit your needs (?) - Original Message - From: "Wes" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 2:10 PM Subject: Proper Case UDF > Does anyone have a handy CF Proper

RE: Proper Case UDF

2004-07-20 Thread Barney Boisvert
Here's one I use for some internal things.  Nothing fancy, and never for any world-visible formatting, so I don't know how perfect it will work, particularly with edge cases.  However, it should do most of the job for you. removeChars(i, 1, 1), " ") /> Cheers, barneyb > -Or

Re: Proper Case UDF

2004-07-20 Thread Bryan Stevenson
www.cflib.org  that's where I've found it in the past Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED]   - Original Message -   From: Wes   To: CF-Talk   Sent: Tuesday, July 20, 2004 2:10 PM   Subject:

Proper Case UDF

2004-07-20 Thread Wes
Does anyone have a handy CF Proper Case UDF they would like to share?  I was going to write one but thought I would check the web (without success) and a few discussion forums first. Basically, my application sometimes has users entering in data in ALL CAPS. DON'T YOU HATE IT WHEN THEY DO THAT?!! 

Re: Errors 232s & Long running requests, and lots more stuff

2004-07-20 Thread Simon Whittaker
Tracy, Did you find a resolution for this issue? Am seeing it on a cf5 server which I need to get sorted. Cheers Simon >  I can't seem to find the answer to these contstant errors/warnings in > the log > file of cf 5... > > It seems all throughout the day, I'm seeing NT error 232 > A long-

RE: securing CF Administrator

2004-07-20 Thread Dave Watts
> Thanks for your response. On the clustering piece...  are > you saying that you are able to connect to an individual JRUN > instance with an external webserver (Apache, iPlanet, etc) > after the JRUN instance has been added to a cluster? Actually, I've set that up before adding the instance t

RE: OT: JS number check

2004-07-20 Thread Samuel R. Neff
and then try alert(isNumeric("0.3.2")); :-) > -Original Message- > From: Joe Rinehart [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 4:12 PM > To: CF-Talk > Subject: Re: OT: JS number check > > This may help: > >
> function isNumber2(inputStr, field) {
>   if (!inpu

Re: securing CF Administrator

2004-07-20 Thread Ben Frame
Dave, Thanks for your response.  On the clustering piece...  are you saying that you are able to connect to an individual JRUN instance with an external webserver (Apache, iPlanet, etc) after the JRUN instance has been added to a cluster? For example, lets say I've got a cluster called "cluster1"

Re: Quick SQL question...maybe.

2004-07-20 Thread Deanna Schneider
Oh yah, typing too fast and then cutting and pasting will do that to ya. Sorry. :) - Original Message - From: "Che Vilnonis" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 3:44 PM Subject: RE: Quick SQL question...maybe. > Thanks Deanna...I got an erro

Re: ColdFusion TechNote Notification: "ColdFusion MX: RemoveOnExcepti on errors in serverlog"

2004-07-20 Thread Dave Carabetta
On Tue, 20 Jul 2004 15:39:35 -0500, Deanna Schneider <[EMAIL PROTECTED]> wrote: > Dave, > Good questions. We see the similar problmes here. It's ironic that I keep > hearing how the 3.1 drivers were tested up the wazoo, but it only took a few > minutes of using them on our configuration (with Oracl

RE: Quick SQL question...maybe.

2004-07-20 Thread Che Vilnonis
Thanks Deanna...I got an error initially, but I remembered to add the END statement. SELECT SUM (CASE WHEN maepos = 1 THEN 1 ELSE 0 END) AS pos1Count,   SUM (CASE WHEN maepos = 2 THEN 1 ELSE 0 END) AS pos2Count,   SUM (CASE WHEN maepos = 3 THEN 1 ELSE 0 END) AS pos3Count,   SUM (CASE WHEN maepos =

Re: CFFile upload problem

2004-07-20 Thread Jim McAtee
- Original Message - From: "Dave Watts" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 2:16 PM Subject: RE: CFFile upload problem > > What I'm finding is that the form field contains a temp file name > > > > > >   #form.premphoto# > >    > > > > > > C

Re: ColdFusion TechNote Notification: "ColdFusion MX: RemoveOnExcepti on errors in serverlog"

2004-07-20 Thread Deanna Schneider
Dave, Good questions. We see the similar problmes here. It's ironic that I keep hearing how the 3.1 drivers were tested up the wazoo, but it only took a few minutes of using them on our configuration (with Oracle 8.1.7) for our server to come to a screeching halt. The other workaround to the error

Re: Quick SQL question...maybe.

2004-07-20 Thread S . Isaac Dealey
select (select count(meepos) from mae where maepos = 1) as pos1count, (select count(maepos) from mae where maepos = 2) as pos2count ... or better yet, select maepos, count(maepos) as poscount from mae group by maepos order by maepos This will return 2 columns and multiple rows - the first column

Re: Accessing query results by row number

2004-07-20 Thread Ben Doom
foo.title[1] You almost had it!  :-) --Ben [EMAIL PROTECTED] wrote: > Is there a way to access query results by referencing the record's row > number?  I've tried > > foo[1].Title > > to get the Title field in row 1 of my query named foo, but I get this error > > [Table (rows 1 columns TITLE

Re: Quick SQL question...maybe.

2004-07-20 Thread Deanna Schneider
SELECT SUM(CASE WHEN maepos = 1 THEN 1 ELSE 0) AS pos1Count, SUM(CASE WHEN maepos = 2 THEN 1 ELSE 0) AS pos2Count, SUM(CASE WHEN maepos = 3 THEN 1 ELSE 0) AS pos3Count, SUM(CASE WHEN maepos = 4 THEN 1 ELSE 0) AS pos1Count FROM    mae - Original Message - From: "Che Vilnonis" < > Is there

RE: Accessing query results by row number

2004-07-20 Thread nancy . tracy
Just what I needed!  I'd tried to find this in my docs, but just couldn't. Thank you Mike and Dave and Dave. :)   -Original Message- From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 2:30 PM To: CF-Talk Subject: RE: Accessing query results by row number queryn

RE: securing CF Administrator

2004-07-20 Thread Dave Watts
> To meet the requirement, we've been using web server > directory-based security (like an .htaccess file - ours > actually points to an ldap server) to lock down the > CFIDE/administrator directory. However, this can only > be accomplished by serving the CF administrator through an > enterpris

RE: Accessing query results by row number

2004-07-20 Thread Barney Boisvert
You were quite close.  This is what you need: Foo.title[1] This is unlike how recordsets work in JSP/JSTL.  CF recordsets are a collection of columns, with each column's rows indexable by record number. JSTL recordsets are an array (white lie) of record objects indexable by record number, with ea

RE: Accessing query results by row number

2004-07-20 Thread Dave Watts
> Is there a way to access query results by referencing the > record's row number?  I've tried > > foo[1].Title > > to get the Title field in row 1 of my query named foo, but I > get this error > > [Table (rows 1 columns TITLE): [TITLE: > [EMAIL PROTECTED] ] is not indexable by 1 > > I kno

securing CF Administrator

2004-07-20 Thread Ben Frame
Question for All: Are there a best practices for securing the CF Administrator application in the Enterprise?  I'm working with MX 6.1 (J2ee/Jrun) on Solaris, but the question is really a more general one. I work with a client whose security policies forbid any dependencies on shared passwords.  

RE: Accessing query results by row number

2004-07-20 Thread Tangorre, Michael
queryname.columnName[1] Mike [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: Accessing query results by row number

2004-07-20 Thread Dave Carabetta
On Tue, 20 Jul 2004 16:27:38 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is there a way to access query results by referencing the record's row > number?  I've tried > > foo[1].Title > > to get the Title field in row 1 of my query named foo, but I get this error > > [Table (rows 1 colu

Re: SOT: Is this possible? was mediaPlayer

2004-07-20 Thread John Dowdell
At 8:06 AM 7/20/4, Dick Applebaum wrote: >  [snip] Are you asking "How can I control a QuickTime file via _javascript_?" If so, then a Google search on "site:apple.com liveconnect" will bring up relevant documents. If you're instead asking something closer to "Can I stop a QuickTime stream?" then

Accessing query results by row number

2004-07-20 Thread nancy . tracy
Is there a way to access query results by referencing the record's row number?  I've tried foo[1].Title to get the Title field in row 1 of my query named foo, but I get this error [Table (rows 1 columns TITLE): [TITLE: [EMAIL PROTECTED] ] is not indexable by 1 I know I can loop through the qu

Re: ColdFusion TechNote Notification: "ColdFusion MX: RemoveOnExcepti on errors in serverlog"

2004-07-20 Thread Dave Carabetta
On Tue, 20 Jul 2004 15:53:49 -0400, Debbie Dickerson <[EMAIL PROTECTED]> wrote: > Check out the new TechNote at: > http://www.macromedia.com/support/coldfusion/ts/documents/removeonexception_ > error.htm > > _error.htm> > > Intro: > Occasionally RemoveOnException errors may appear in the ColdFusi

Quick SQL question...maybe.

2004-07-20 Thread Che Vilnonis
Is there an easy/simple way to combine these four queries into one? I'm not thinking clearly today. :( SELECT COUNT (MAEPOS) AS Pos1Count FROM MAE WHERE MAEPOS = 1 SELECT COUNT (MAEPOS) AS Pos2Count FROM MAE WHERE MAEPOS = 2 SELECT COUNT (MAEPOS) AS Pos3Count FROM MAE WHERE MAEPOS = 3 SELECT CO

Re: OT: JS number check

2004-07-20 Thread Joe Rinehart
This may help:
function isNumber2(inputStr, field) {
  if (!inputStr.match(new RegExp("[^0-9.]"))) {
    alert ("Please make sure your " + field + " entry are numbers only");
    return false;
  }
  return true;
}

alert(isNumeric("0.3"));
-joe [Todays

RE: CFFile upload problem

2004-07-20 Thread Dave Watts
> What I'm finding is that the form field contains a temp file name > > >   #form.premphoto# >    > > > C:\WINNT\TEMP\ACFA4A2.tmp > > That file is nowhere to be found on the server, so I assume > either CF or IIS is cleaning up after it generates the page > sent back to the browser. > > Is

RE: OT: JS number check

2004-07-20 Thread Kevin Rosenthal
HI Qasim, I was following this thread and wanted to ask a question. I follow your logic all the way until the break; at line 10. Can you comment the code to explain what is going on? I am real new and trying very hard to understand the code and the logic. Thanks! Kevin Professional Student (

Re:_ColdFusion_TechNote_Notification:_"ColdFusion_MX:_ RemoveOnExcepti_on_errors_in_serverlog"

2004-07-20 Thread S . Isaac Dealey
Speaking of which -- on my server at home, I frequently get an error that says "the specified instance (of my databse) does not exist or is not running" or something similar... but it's not "reproduceable"... that is to say, it happens frequently, but never twice in a row, so when I refresh the pag

RE: JS number check

2004-07-20 Thread Samuel R. Neff
What's wrong with just using isNaN?  Or if something wrong with that, what about regexp? function isNumber(testNumber) {    return String(testNumber).match(/^[0-9]*\.?[0-9]*$/); } Sam > -Original Message- > From: Robert Orlini [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 3:

Re: SOT: Is this possible? Resolved -- was mediaPlayer

2004-07-20 Thread Dick Applebaum
I resolved this by looking at Rick's code. He is embedding WMP in his page -- I didn't know you could do that (it appears that I need to follow my own advice and get out more, too!)   Duh! Anyway I resolved it by embedding QT in my page -- Rick is embedding WMP -- I may do that too. Anyway, it

Re: CFFile upload problem

2004-07-20 Thread Bryan Stevenson
there is always the temp file as you're finding...just not sure when it's written/deleted Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED]   - Original Message -   From: Jim McAtee   To: CF-Talk   Sent

Re: OT: JS number check

2004-07-20 Thread Qasim Rasheed
This might help you function isPostiveDecimal(num){ var validChars ="0123456789."; var allValid = true;    var decPoints = 0;    var allNum = ""; for (i = 0;  i < num.length;  i++){     ch = num.charAt(i);     for (j = 0;  j < validChars.length;  j++)    if (ch == validCh

ColdFusion TechNote Notification: "ColdFusion MX: RemoveOnExcepti on errors in serverlog"

2004-07-20 Thread Debbie Dickerson
Check out the new TechNote at: http://www.macromedia.com/support/coldfusion/ts/documents/removeonexception_ error.htm _error.htm> Intro: Occasionally RemoveOnException errors may appear in the ColdFusion logs, masking a real database issue. RemoveOnException is a data source level setting used

Re: CFFile upload problem

2004-07-20 Thread Jim McAtee
- Original Message - From: "Dave Watts" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2004 1:23 PM Subject: RE: CFFile upload problem > > ... > > Are MAXLENGTH and SIZE valid attributes for a file upload field? I've removed both, with the same results. W

OT: JS number check

2004-07-20 Thread Robert Orlini
I need a _javascript_ later to come up when anything but a number and/or a decimal point is entered into a price each field. The _javascript_ below is not allowing the decimal point. Can anyone suggest what I have to add or fix please? function isNumber2(inputStr, field) { for(var i=0; i { var

XPay - CFMX - XML

2004-07-20 Thread Paul Giesenhagen
I guess the first question would be, has anyone setup for Xpay? (Secure Trading)?  If so, would you mind sharing some information? Xpay facilitates the processing of realtime credit cards.  I need to send an XML document to the XPay via internal TCP/IP socket  then XPay picks up the XML and sends

Re: Dynamic variable assignment in CFSCRIPT?

2004-07-20 Thread Michael Dinowitz
You can leave out the temp and just do SetVariable('someStruct.'&myVar, 'somevalue') Assigning it to a variable is not required. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: Is this possible? was mediaPlayer

2004-07-20 Thread Joe Rinehart
It's doubleplus hackish, but could you use something to read the duration of the mp3, then use _javascript_ to have the parent window refresh the other window to the next song after that many seconds, plus a few for padding/load time? -joe [Todays Threads] [This Message] [Subscription] [Fas

RE: Dynamic variable assignment in CFSCRIPT?

2004-07-20 Thread Ryan Duckworth
Another method that can be used for nested dynamic structures: someStruct['tab#arguments.firstStruct#'].packet['applicant#locApplicantI D#'].valid = somevalue; Ryan Duckworth Macromedia ColdFusion Certified Professional Uhlig Communications 10983 Granada Lane Overland Park, KS 66211 (913) 754

Re: CFFile upload problem

2004-07-20 Thread Jim McAtee
Not in my testing, but I just happened to be looking at that and wondering if it was wise to have a maxlength on the field.  I removed it and got the same results. - Original Message - From: "Bryan Stevenson" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 20

RE: CFFile upload problem

2004-07-20 Thread Dave Watts
> ... Are MAXLENGTH and SIZE valid attributes for a file upload field? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

RE: Dynamic variable assignment in CFSCRIPT?

2004-07-20 Thread Wes
Or rather. Temp = SetVariable("someStruct.#myVar#", "somevalue") -Original Message- From: Nikhil Madani [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 3:02 PM To: CF-Talk Subject: Dynamic variable assignment in CFSCRIPT? How would one do this in CFSCRIPT- TIA Nikhil   _

RE: Dynamic variable assignment in CFSCRIPT?

2004-07-20 Thread Wes
I think this should work.  Or at least some use of SetVariable() should do the trick for you. tempVar = SetVariable("#myVar#", "somevalue"); -Original Message- From: Nikhil Madani [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 3:02 PM To: CF-Talk Subject: Dynamic

Re: CFFile upload problem

2004-07-20 Thread Bryan Stevenson
could the maxlength attribute be truncating the file path?? Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED]   - Original Message -   From: Jim McAtee   To: CF-Talk   Sent: Tuesday, July 20, 2004 12:06

RE: Dynamic variable assignment in CFSCRIPT?

2004-07-20 Thread Barney Boisvert
If that CFSET tag works, then this should work too:     someStruct."#myVar#"=somevalue; However, the much easier way is to do it this way:     someStruct[myVar] = somvalue; Cheers, barneyb > -Original Message- > From: Nikhil Madani [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2

Re: Dynamic variable assignment in CFSCRIPT?

2004-07-20 Thread Nikhil Madani
>> How would one do this in CFSCRIPT- >> > >someStruct[myVar] = somevalue; > >Dave Watts, CTO, Fig Leaf Software >http://www.figleaf.com/ >phone: 202-797-5496 >fax: 202-797-5444 Thank you.! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donati

CFFile upload problem

2004-07-20 Thread Jim McAtee
CF5.  I'm having a bit of a time using cffile action="" used it in the past with no problems, but for some reason... I've got a large form containing an input field of type="file".   enctype="multipart/form-data"> ... In the action template, I have filefield="premphoto"

RE: Dynamic variable assignment in CFSCRIPT?

2004-07-20 Thread Dave Watts
> How would one do this in CFSCRIPT- > someStruct[myVar] = somevalue; Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Dynamic variable assignment in CFSCRIPT?

2004-07-20 Thread Nikhil Madani
How would one do this in CFSCRIPT- TIA Nikhil [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: single vs. multiple cfoutputs in CFMX

2004-07-20 Thread G
Amen to that. I've noticed that CF'ers seem especially susceptible to "optimizing in the wrong place" so to speak. It's easier to move CF tags around than to step into the database world, or deal with caching, or.. My guess is that if Steve said one way was preferable, and Ben said another w

Re: Using the internal Web server for CFAdmin

2004-07-20 Thread Mike Chabot
Securing CFAdmin in Sun ONE would not be very difficult, although not having to do this saves me a step. I have already copied a minimal CFIDE directory so that port 80 sees it. Perhaps there is some performance issue. Is the server appreciably slower with the CFMX Web server running on it? -Mik

Re: Virtual Mappings in jrun-web.xml

2004-07-20 Thread Ben Frame
Mike, Not sure I can answer all the parts of your question, but I recently worked through an issue with MACR tech support on the use of a JRUN virtual mapping. In my case, we wanted to move the location of the files which make up the CF Administrator...  for example, instead of using the CFIDE/ad

Re: single vs. multiple cfoutputs in CFMX

2004-07-20 Thread Claude Schneegans
>>the CF server looks at EVERY character from top to bottom of your page looking for a # and then it's end #. Since it is looking for <...> and analysing every tag anyway, I do not think it is a big deal to look for # in the same time. -- ___ REUSE CODE! Use cu

RE: single vs. multiple cfoutputs in CFMX

2004-07-20 Thread Marlon Moyer
I would think that nowadays since the page is compiled, the only time you'll notice a speed difference, if even then, will be during compilation. > -Original Message- > From: Bryan Stevenson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 12:45 PM > To: CF-Talk > Subject: Re: sing

RE: single vs. multiple cfoutputs in CFMX

2004-07-20 Thread Barney Boisvert
My money is on "if you care about the nanoseconds that processing CFOUTPUT tags, don't use CF, because it's obviously too slow as a whole".  Also, the "parse the whole file" thing has no weight on CFMX, because the template gets compiled only once (unlike CF5 and below). However, I did some testin

Re: single vs. multiple cfoutputs in CFMX

2004-07-20 Thread Bryan Stevenson
Things have changed in the past few yearsit used to be slower to wrap the whole page in CFOUTPUTnot anymore (or it's so insignificant it's not worth the PITA to open/close everywhere). For me it's all about clean codewrap the whole page...nice and clean ;-) HTH Cheers Bryan Stevenso

RE: single vs. multiple cfoutputs in CFMX

2004-07-20 Thread Dave Watts
> Ben Forta explained this in a CFUG a couple years or so back. > He said that it was more efficient to have CFOUTPUTS around > each variable output rather than the entire page because > otherwise, the CF server looks at EVERY character from top to > bottom of your page looking for a # and then

RE: single vs. multiple cfoutputs in CFMX

2004-07-20 Thread Wes
Ben Forta explained this in a CFUG a couple years or so back.  He said that it was more efficient to have CFOUTPUTS around each variable output rather than the entire page because otherwise, the CF server looks at EVERY character from top to bottom of your page looking for a # and then it's end #.

Re: Is this possible? was mediaPlayer

2004-07-20 Thread Bryan Stevenson
So no BODY tag whatsoever in the popup? That aside...someone else mentioned Flash...I would most definately build something like this in Flash...way more control and could also be built as a projector for standalone use (no browser required). Cheers Bryan Stevenson B.Comm. VP & Director of E-Com

Re: Is this possible? was mediaPlayer

2004-07-20 Thread Dick Applebaum
On Jul 20, 2004, at 8:13 AM, Bryan Stevenson wrote: > hmmm.,.. > >  Have you tried running JS onUnLoad? > >  Bryan Stevenson B.Comm. > That sounds good, except the content of the popup is an mp3, served with   value="attachment; filename=song.mp3"> file=#FilePath# deletefile = "No"

RE: Carriage returns in XML file

2004-07-20 Thread Wes
You can remove the carriage returns and Line feeds like so. #Replace(yourVarHere, chr(13), "", "ALL")#   <--  For Carriage returns. #Replace(yourVarHere, chr(10), "", "ALL")#   <--  For linefeeds -Original Message- From: Ben Densmore [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 200

Re: SOT: Is this possible? was mediaPlayer

2004-07-20 Thread mavinson
Dick Applebaum <[EMAIL PROTECTED]> 07/20/2004 11:06 AM Please respond to cf-talk To: CF-Talk <[EMAIL PROTECTED]> cc: Subject:SOT: Is this possible? was mediaPlayer Is this possible with _javascript_? -- probably Is it possible with a Java applet? -- certai

RE: cfset vs. cfsavecontent

2004-07-20 Thread Barney Boisvert
You're correct, it's not a bug, though it's not necessarily what you'd expect.  Just think of CFSETTING as turning on a request-level flag (which affects ALL templates in the request), indicating that nothing should be output. I'd recommend always putting generated content inside CFOUTPUT tags any

  1   2   >