RE: Struct Insert

2004-09-15 Thread Pascal Peters
Yes, but you have to set it to true. If you set it to false, it will throw an error if the key already exists. If you don't care, set it to true. Personally I always use: cfset form[tmpFieldList.id] = tmpFieldList.defaultvalue (if I want to insert if it exists or not) OR cfif NOT

Re: Struct Insert

2004-09-15 Thread Andrew Grosset
Isn't that what the Allow Overwrite is for? To overwrite the key if it exists? Ricardo. Douglas Knudsen wrote: I think you need to change it to true instead of false to allow the key to be overwritten (I'm not 100% sure on this but it would be easy to set up a test template to try it out).

2d array question

2004-09-15 Thread Charlie Griefer
ok...in ColdFusion, a 2d array is a 1d array of 1d arrays.i think that's the first sentence in the docs under '2d arrays'.that's all well and good. i'm curious tho...is there any recommendation regarding the 2nd 'dimension' being uniform length?for example, if I have the following: cfscript

Re: cffile write question, sending but not parsing cf code

2004-09-15 Thread Andrew Dixon
Not sure I have understood this right, but I assume the file you are trying create a CF Script, but remove the database call. In that case, you can put all your bits of script into a variable and than right that variable. The script will not be processed by CFFILE, for example: cfset pageString =

Re: 2d array question

2004-09-15 Thread Andrew Dixon
Hi. Personally I don't see anything different between your first way of doing it and the second. I would thing that the second way is simply doing the work CF would be doing behind the scenes anyway. The main problem you are going to have is that if your code tries to reference an array element

CF/Flash Question

2004-09-15 Thread Andrew Dixon
Hi Everyone. I'm about to create some flash navigation within a website that I'll need to have pass out the CFID and CFTOKEN session variables, does anyone know of an easy way to get these variables from within Flash or would i have to have them passed to the flash movie to start with? Andrew.

Re: CF/Flash Question

2004-09-15 Thread dave
just have a cfm page set them as variables then deliver them to flash by any of the available means depends on how ur going about it one of the easiest ways is to set the variables as normal in flash the output them with an $ infront of each, the do a loadvar in your flash movie --

Re: CF/Flash Question

2004-09-15 Thread Andrew Dixon
Hi Dave. Thanks for the info, but can you give me an example of how to pass the variables in the Flash parameters and the actionscript to pick them up. Bit new to Flash. Thanks. Andrew. - Original Message - From: dave [EMAIL PROTECTED] Date: Wed, 15 Sep 2004 06:16:33 -0400 Subject: Re:

Re: CF/Flash Question

2004-09-15 Thread dave
try this cfm page ex: cfmvariables.cfm - !--- set uuid and cftoken variables --- //set these how ever ur getting them (cookie, session, whatever) cfset uuid = #youruuidstring# cfset cftoken = #cftoken# !--- set output to flash variables --- cfoutput

CFC/MVC - Where to put data validation

2004-09-15 Thread d.a.collie
Hello I'm been trying to use CFC's in a more OO way using a sort of MVC methodology.I'm getting my head round most of the concepts but I'm kinda stumped at one question in my head,Could anybody provide any pointers?When considering user input data from the View layer, should data validation

Re: CF/Flash Question

2004-09-15 Thread Andrew Dixon
I will give it a try and let you know. Thanks. Andrew. On Wed, 15 Sep 2004 06:57:05 -0400, dave [EMAIL PROTECTED] wrote: try this cfm page ex: cfmvariables.cfm - !--- set uuid and cftoken variables --- //set these how ever ur getting them (cookie,

Re: CFC/MVC - Where to put data validation

2004-09-15 Thread simon
Personally, I like having validation inside of or as close as possible to the object that stores the data (the Model). When you're talking about a high level MVC where the View is the client making requests (web browser, WAP device, Flash App, etc.), if you want client-side validation then

Javascript submit button vs html submit button

2004-09-15 Thread Mike Kear
How true is the following statement? : [quote] If you use a _javascript_ form submit button, you have to make sure your form variables dont get too large because the _javascript_ function passes the input to the action page using the GET method, and the total length of a URL and all the URL

RE: Intel HyperThreading

2004-09-15 Thread Mark W. Breneman
HT will not make a large difference in most stuff that you do on your desktop. Keep in mind the theory behind HT. In a very simplified nut shell you take one CPU and make it two logical CPUs.(more or less)So it will not make a 3Ghz CPU any faster then a 3Ghz CPU. Where you do see a difference is

Re: any java cf'ers online?

2004-09-15 Thread Lori
I figured out the problem I was having earlier but now I have a new one :)I am getting an error message on this line: cfset t.transcode(input,output) The error message is: null Enclosed Exception: Unable to make sense of URL for connection The code: cfcomponent cffunction name=run

RE: Javascript submit button vs html submit button

2004-09-15 Thread Steve Brownlee
I'm guessing this is true.If memory serves correct, the maximum length of a URL is only 2,048 characters.If you need to transfer more data than that, you have to use POST. From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 8:08 AM To:

Re: Javascript submit button vs html submit button

2004-09-15 Thread Andy J
Wow, one question, do you need to actually pass 40,000 user id's, thats make you page site huge? Also Js would submit the form using whatever method was declared in the form tag. Here's some test code script language=_javascript_ function submitform() { document.myform.submit(); } /script form

RE: Javascript submit button vs html submit button

2004-09-15 Thread Pascal Peters
It depends on what you mean by _javascript_ form submit button. But doing form.submit() in JS simply submits the form using the method specified in the form. If this is POST the values are passed in the HTTP body and not in the URL. Pascal -Original Message- From: Mike Kear

Re: Javascript submit button vs html submit button

2004-09-15 Thread Stephen Moretti (cfmaster)
Mike Kear wrote: How true is the following statement? : [quote] If you use a _javascript_ form submit button, you have to make sure your form variables dont get too large because the _javascript_ function passes the input to the action page using the GET method, and the total length of a

RE: Javascript submit button vs html submit button

2004-09-15 Thread Micha Schopman
Internet Explorer is limited by 2048 bytes in urls, that is why GET actions should be used with caution. If you send a form by _javascript_ keep in mind the onsubmit handler of a form will not be fired. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 ALAmersfoort Tel

Assigning value to property using COM

2004-09-15 Thread Shahzad.Butt
I am using COM and trying to assign a value to the property. In the code below the lines with *** is VB code and the line beneath is coldfusion equivalent of that line. Set Axapta = CreateObject(AxaptaCOMConnector.Axapta) cfobject action="" class=#Attributes.ProgId# type=COM

Basics Clarification

2004-09-15 Thread Steve Brownlee
We've all said it a million times - don't use the hashes inside a CF tag that processes on its own. !--- No no no --- cfif #check# eq 1 But one thing I've always wondered is why.I know doing this is wrong from years of seeing people scream at developers who do it, but I never heard an

Re: Javascript submit button vs html submit button

2004-09-15 Thread Mike Kear
Heheh Andy I didnt believe it myself either.However it's sort of historical to some extent.We have to live with some aspects of the system we're working with.The user gets to select all or some of the members in the membership database, and there are more than 40,000 members.So it's possible they

Re: Basics Clarification

2004-09-15 Thread Andrew Dixon
I have no idea why, as far as I know it don't actually cause any problem, but I think it just look bad and makes the code more difficult to read. Andrew. - Original Message - From: Steve Brownlee [EMAIL PROTECTED] Date: Wed, 15 Sep 2004 05:37:44 -0700 Subject: Basics Clarification To:

CF Forum cheapest or free

2004-09-15 Thread Web Specialist
Do you know any? I'm looking for any CF Forum based application. Galleon looks like nice. More examples? Thanx [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: CF Forum cheapest or free

2004-09-15 Thread Massimo Foti
Do you know any? I'm looking for any CF Forum based application. Galleon looks like nice. More examples? http://www.adersoftware.com/index.cfm?page=cfbb http://sourceforge.net/projects/smb/ http://sourceforge.net/projects/fbopenforums/ http://www.stickshiftsolutions.com/

Re: Basics Clarification

2004-09-15 Thread Stephen Moretti (cfmaster)
Steve Brownlee wrote: We've all said it a million times - don't use the hashes inside a CF tag that processes on its own. !--- No no no --- cfif #check# eq 1 But one thing I've always wondered is why.I know doing this is wrong from years of seeing people scream at developers who do

RE: Basics Clarification

2004-09-15 Thread Dave Watts
Originally you had to do your cfifs this way back in version 2 land. Well, actually, I'm pretty sure that they weren't even needed then. However, no one had really figured out appropriate usage for them yet. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax:

RE: Basics Clarification

2004-09-15 Thread Dave Watts
We've all said it a million times - don't use the hashes inside a CF tag that processes on its own. !--- No no no --- cfif #check# eq 1 But one thing I've always wondered is why. I know doing this is wrong from years of seeing people scream at developers who do it, but I never heard an

Users Online, Take 2

2004-09-15 Thread Sung Woo
So I've finally gotten around to rewriting the who is online? portion of my site, and it turns out that I didn't have to do much rewriting at all.The script below was using CFID to keep track, which, as many people pointed out, was not a good idea.I keep a session variable (session.UserID) in my

Re: any java cf'ers online?

2004-09-15 Thread Qasim Rasheed
Lori, Even though I am not familiar with this particular package that you are working with, here is what seem kind of confusing to me. cfset input.init('svgURI') cfset ostream.init('arguments.image') cfset output.init('ostream') For all these above functions, you are passing strings, shouldn't

Re: Trouble with Two Table Query - Doh!

2004-09-15 Thread Al Everett
I think this will do what you want: cfquery name=qArticleByIndustry datasource=#DSN# SELECT A.id, A.article_title, A.article_date, I.indus_name FROM Articles A, Industry I WHERE I.industry_id=A.indus_id ORDER BY I.indus_name, A.article_date DESC /cfquery cfoutput query=qArticleByIndustry

Re: CF Forum cheapest or free

2004-09-15 Thread Web Specialist
Thanx Massimo great list Cheers - Original Message - From: Massimo Foti [EMAIL PROTECTED] Date: Wed, 15 Sep 2004 14:55:04 +0200 Subject: Re: CF Forum cheapest or free To: CF-Talk [EMAIL PROTECTED] Do you know any? I'm looking for any CF Forum based application. Galleon looks like

RE: SOT: How to apply a style sheet to a file upload bottom.

2004-09-15 Thread Sandy Clark
Go here http://www.quirksmode.org/dom/inputfile.html Sandy Clark http://www.shayna.com http://www.shayna.com/ CF Pretty Accessible at http://www.shayna.com/blog Now offering 4 days Hands on CSS training October 11-14th. Rockville, MD. For more information go to:

RE: Users Online, Take 2

2004-09-15 Thread Katz, Dov B (IT)
I'm not sure how java internals of cfloop/collection work, but chances are it's dangerous to loop through a collection you are deleting/adding items to/from. Perhaps change to CFLOOP list=StructKeyList(application.UsersInof)and then retreive the item if it's there... Also, How do you keep

Re: any java cf'ers online?

2004-09-15 Thread Lori
DOH!Thanks.It is all working now. -Lori - Original Message - From: Qasim Rasheed To: CF-Talk Sent: Wednesday, September 15, 2004 9:14 AM Subject: Re: any java cf'ers online? Lori, Even though I am not familiar with this particular package that you are working with, here is what seem

RE: Read directory

2004-09-15 Thread Patrick McGeehan
Asim, Yes the upper in the order by should work fine. Patrick Patrick McGeehan Applications Developer DIT CF_DIT#mcg#/CF_DIT -Original Message- From: Asim Manzur [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 1:02 AM To: CF-Talk Subject: Re: Read directory I

Re: Basics Clarification

2004-09-15 Thread Stephen Moretti (cfmaster)
Dave Watts wrote: Originally you had to do your cfifs this way back in version 2 land. Well, actually, I'm pretty sure that they weren't even needed then. However, no one had really figured out appropriate usage for them yet. I think you're probably right.I vaguely remember there being

Re: Trouble with Two Table Query - Doh!

2004-09-15 Thread Philip Arnold
On Wed, 15 Sep 2004 06:23:25 -0700 (PDT), Al Everett wrote: cfoutput query=qArticleByIndustry group=indus_name #indus_name#br cfoutput query=qArticleByIndustry blockquote #article_title# - #DateFormat(article_date,, )#br /blockquote /cfoutput /cfoutput Don't you mean group rather

RE: Basics Clarification

2004-09-15 Thread Jim Davis
I reverse the issue - instead of a don't I use an only - as in only use hashes to specify a variable/_expression_ in a string. That's really the only time you need it (remembering that CFOUTPUT really encloses a string as well).So the following is legal but not good: cfif #foo#/cfif cfset foo =

Re: Intel HyperThreading

2004-09-15 Thread Jacob
Well.. The newest CF servers we have are: SuperMicro 6013P Dual Xeon 3.4 Ghz, 800 MHz FSB, 1MB L2 Cahce with HT 4 GB PC3200 Ram 1 Seagate U320 15K RPM 18GB 1 Seagate U320 10K RPM 146GB About $3500 and Kicks @$$! We have always used dual CPUs on our CF servers.I have noticed a major performance

RE: Intel HyperThreading

2004-09-15 Thread Jim Davis
I, for one, really miss my dually desktop. ;^) Remember that while most desktop apps are not able to fully to take advantage of dual CPUs you are far more likely to be running multiple apps at once on a desktop.There's an odd feeling of power on a dually: even while doing something processor

RE: Oracle Stored Procedures

2004-09-15 Thread Janet Schmitt
Scott - This test would fail because you did not pass a parameter to the procedure that is expecting.It is not the same situation as in your CF code.To adequately test this, you need to set up the call to the procedure from SQL*Plus that passes in a refcursor parameter. Janet. At 03:42 PM

Dynamically creating distribution lists

2004-09-15 Thread Rick Root
Has anyone here ever used Coldfusion via a com object or some other method to dynamically create distribution lists in Exchange server? - Rick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

RE: Dynamically creating distribution lists

2004-09-15 Thread Dawson, Michael
I created a COM object to create user accounts, with mailboxes, on our Win2k3 AD and Exchange servers.I would suspect that the dist lists (dist groups) would be quite similar and probably much easier. Look for ADSI scripts.You can easily create a COM object that CF can consume. Roland

Re: Intel HyperThreading

2004-09-15 Thread Russell Patterson
Jim, I am going to have to agree with you! Russell Patterson - Original Message - From: Jim Davis To: CF-Talk Sent: Wednesday, September 15, 2004 9:14 AM Subject: RE: Intel HyperThreading I, for one, really miss my dually desktop. ;^) Remember that while most desktop apps are not

Re: Users Online, Take 2

2004-09-15 Thread Sung Woo
Hi Dov, I think the CFLOOP via COLLECTION is similar to what you propose with the LIST -- at least that's what the documentation tells me. The number of threads on my machine usually hovers around 54.Just now, it jumped to 96!I took the CFLOOP out, and now it's back to 54.So I still need to find

Re: Data Visualization

2004-09-15 Thread Don
Pretty cool.What tool combination that you used to create them?Thanks. Has anyone worked on data visualization technique(s) with CF/CFMX? Hi, just released a new tag today, and I think it falls in this category. See CFX_mapData here:

RE: cffile write question, sending but not parsing cf code

2004-09-15 Thread mayo
Andrew, Thx but I'm still not getting what I'm looking for. I need to include an unparsed variable in CFFILE. I would like to do something like cffile action='' file='someFile' output=' cfparam name=style default=rmg !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head

Re: Basics Clarification

2004-09-15 Thread Claude Schneegans
But one thing I've always wondered is why. IMHO it's simply logic: the purpose of # delimiter is to specify that an _expression_ inside should be evaluated when it is not implied by context. Inside a CFIF, the content cannot be something else, then # are just useless. Furthermore, I would think

[structures] How would you do this?

2004-09-15 Thread Phill B
I'm trying to put some picture info into a variable that will be easy for the designers to use. I have to query a database to get specific images. I then tweak the results and want to put them into a variable similar to this. FeaturesOptions.image1.fileLocation = http://www.asdf.com/asdf.jpg

Re: Data Visualization

2004-09-15 Thread Claude Schneegans
What tool combination that you used to create them? You mean to create the images? see CFX_mapData here: http://www.contentbox.com/claude/customtags/mapData/viewmapData.cfm?p=hf You mean to create CFX_mapData? VC++ 5.0 -- ___ REUSE CODE! Use custom tags; See

Re: Users Online, Take 2

2004-09-15 Thread Sung Woo
Just found my stupid mistake -- the file was pulling in application.cfm, so it must've been pulling up the login page instead.Makes sense why it would run when I ran it manually (since I was already logged in).I moved the file to a non-application.cfm-enabled directory, and now it works just

Major Driver problems

2004-09-15 Thread Alisa Thomson
Is anyone else out there using Sybase??? We are TRYING to upgrade to CFMX from CF5 (running on Solaris with Sybase 12.5) and we are running into major issues with database drivers. I have tried the driver that ships with CFMX and I ran into big problems including not being able to use output

Re: Basics Clarification

2004-09-15 Thread Andrew Dixon
Try reading this article by the mighty Ben Forta. It is titled: To # or not to # http://www.defusion.com/articles/index.cfm?ArticleID=26 Andrew - Original Message - From: Claude Schneegans [EMAIL PROTECTED] Date: Wed, 15 Sep 2004 11:24:24 -0400 Subject: Re: Basics Clarification To:

OT- SQL PADDING QUESTION

2004-09-15 Thread Eric Creese
I forget how to do this, it has been some time. I got values that need to be at least 7 characters long. So if the value is 552, I need to pad it out to look like this 552 in my return set. Can anyone out there refresh my memory please. [Todays Threads] [This Message] [Subscription]

Re: Intel HyperThreading

2004-09-15 Thread Jochem van Dieten
Donna French wrote: I am now considering dual processors - just not sure and want to get as much feedback as possible before diving into putting the new system together. I am hoping to order parts Thursday and build this weekend. If anyone has ANY comments on their system and what kind of

RE: Intel HyperThreading

2004-09-15 Thread Mark W. Breneman
I guess I should have qualified what I said by saying that HT is more or less dual CPU emulation. I would gladly take a dual CPU system for a development workstation in a heart beat. but, I just don't want to pay for one. :-) I guess that is my point / question. Are the advantages of a dual

RE: Major Driver problems

2004-09-15 Thread Dave Watts
Is anyone else out there using Sybase??? We are TRYING to upgrade to CFMX from CF5 (running on Solaris with Sybase 12.5) and we are running into major issues with database drivers. I have tried the driver that ships with CFMX and I ran into big problems including not being able to use output

RE: OT- SQL PADDING QUESTION

2004-09-15 Thread Cornillon, Matthieu (Consultant)
SELECT MyNumber, TO_CHAR(MyNumber,'000') FROM NUMBERS returns: 1, 001 552,552 1234567,1234567 HTH, Matthieu -Original Message- From: Eric Creese [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 11:33 AM To: CF-Talk Subject: OT- SQL PADDING QUESTION I

RE: OT- SQL PADDING QUESTION

2004-09-15 Thread Eric Creese
thanks I alo found a UDF that works and is pretty usefull as well. here is the link. http://www.databasejournal.com/scripts/article.php/3385491 -Original Message- From: Cornillon, Matthieu (Consultant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 10:54 AM To:

Re: [structures] How would you do this?

2004-09-15 Thread Barney Boisvert
I'd use an array of structures, personally. images[n].fileLocation = ; images[n].fileTitle = ; images[n].fileDescription = ; Arrays lend themselves to looping better than structures, because the order of elements returned in a structure loop is undefined.Arrays will always return in the same

Re: Basics Clarification

2004-09-15 Thread S . Isaac Dealey
We've all said it a million times - don't use the hashes inside a CF tag that processes on its own. !--- No no no --- cfif #check# eq 1 But one thing I've always wondered is why.I know doing this is wrong from years of seeing people scream at developers who do it, but I never heard an

Re: [structures] How would you do this?

2004-09-15 Thread Phill B
I figured it out. On Wed, 15 Sep 2004 10:25:07 -0500, Phill B [EMAIL PROTECTED] wrote: I'm trying to put some picture info into a variable that will be easy for the designers to use. I have to query a database to get specific images. I then tweak the results and want to put them into a

Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Jeff Small
When I output GetTemplatePath() on my home page, I see: C:\Inetpub\wwwroot\MySite\index.cfm When I'm on the Gallery page, naturally, I see: C:\Inetpub\wwwroot\MySite\Gallery\index.cfm I'd love to be able to trim everything from here: C:\Inetpub\wwwroot\MySite\ and be left with: index.cfm or

Re: Basics Clarification

2004-09-15 Thread Charlie Griefer
On Wed, 15 Sep 2004 12:01:29 -0400, S. Isaac Dealey [EMAIL PROTECTED] wrote: We've all said it a million times - don't use the hashes inside a CF tag that processes on its own. !--- No no no --- cfif #check# eq 1 But one thing I've always wondered is why.I know doing this is

Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Barney Boisvert
How about cgi.script_name instead?That should give you what you need. cheers, barneyb On Wed, 15 Sep 2004 12:05:32 -0400, Jeff Small [EMAIL PROTECTED] wrote: When I output GetTemplatePath() on my home page, I see: C:\Inetpub\wwwroot\MySite\index.cfm When I'm on the Gallery page, naturally,

Re: CF Forum cheapest or free

2004-09-15 Thread S . Isaac Dealey
http://www.fusiontap.com/forum it's not publicly available - yet ... I'm waiting on someone who's creating a logo for the framework Thanx Massimo great list Cheers - Original Message - From: Massimo Foti [EMAIL PROTECTED] Date: Wed, 15 Sep 2004 14:55:04 +0200 Subject: Re:

CFFILE question, rewritten

2004-09-15 Thread mayo
I am using CFFILE to create articles for a magazine publisher. I would like to include CF code that is not processed when CFFILE is executed. In effect I'm looking for a tag that is something like: #doNotProcess(CGI.path_info)# where the CFFILE does not process CGI.path_info but in the

Re: CFFILE question, rewritten

2004-09-15 Thread Thomas Chiverton
On Wednesday 15 Sep 2004 17:23 pm, mayo wrote: The resulting page should look like the code below: ... link href="" type=text/css rel=stylesheet Construct the contents of the page in a string, then write this string to a file - this will enable you to subsituate as needed. -- Tom Chiverton

cfexecute or cfx_execute issues

2004-09-15 Thread Steve Dworman
doesn't matter which one i use for this problem. i am trying to execute perl inline, however, i can't get back the result (2).this works if i go right to the unix command line and run it. cfx_Execute name=/usr/bin/perl arguments=-e '$test=2; print $test;' outputvar=outfile2 showdebug=yes

Re: CFFILE question, rewritten

2004-09-15 Thread Barney Boisvert
It'll only work if the generated file is a CFM template, but you can just write your standard CFML to the file and it'll be processed. You'll have to escape it while writing though.For example: cfoutput cfsavecontent variable=doc click a href="" to print /cfsavecontent /cfoutput cfset doc =

Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Casey C Cook
CGI.Script_name ? Thanks, CC x56927 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: cfexecute or cfx_execute issues

2004-09-15 Thread Barney Boisvert
If you want the output, i you have to add a timeout value.Otherwise CF just runs it and leaves it to do it's thing, immediately returning to page execution.Just set it to 10 or something and go.Make sure your CF is all patched up though, there was a bug at some point where CFEXECUTE always took

Re: Major Driver problems

2004-09-15 Thread Alisa Thomson
Sorry, I should have given more info about my setup.I am running CFMX 6.1 Updater 3.I double-checked the driver and it is the latest and greatest. Is anyone else out there using Sybase??? We are TRYING to upgrade to CFMX from CF5 (running on Solaris with Sybase 12.5) and we are running into

cfobject and java

2004-09-15 Thread Steve Dworman
here's the deal... i can, obviously, create an object for any class. i can also call any method that looks like public void addDir(java.io.File dir) and of course i have to something like createObject( java ,java.io.File ).init(tempdir), how do i access a method like public static void

RE: Basics Clarification

2004-09-15 Thread S . Isaac Dealey
It still meets my definition (I'm hashing x to specify the variable within a string).However other might are argue that the following is good: cfloop from=1 to=x index=Cnt/cfloop Tag attributes should be quoted in three situations: 1) always 2) always 3) always Imo even suggesting that

Re: cfexecute or cfx_execute issues

2004-09-15 Thread Steve Dworman
thanks for the suggestion, but it didn't seem to work.i just get a blank screen even when i set the timeout to 30.my cf is all up to date.any other suggestions? If you want the output, i you have to add a timeout value.Otherwise CF just runs it and leaves it to do it's thing, immediately

Re: cfobject and java

2004-09-15 Thread Barney Boisvert
If you want to call a static method, just do it directly on the createObject() result, much like you'd call the init() method to actually construct an object instance. cfset num = createObject(java, java.lang.Math).ceil(num) / You can create as many objects as you want, and pass information into

OT: Multi-CPU systems (was Re: Intel HyperThreading)

2004-09-15 Thread Damien McKenna
Another tangent.. If anyone is seriously considering dual-processor systems they should investigate dual Opteron systems and ones that have decent I/O.Start reading here: http://www.matrixlist.com/pipermail/pc_support/2004-April/004937.html and then work your way through these:

RE: cfobject and java

2004-09-15 Thread Guy Rish
Steve, Handling static methods is simple: X = createObject(java, someclass); X.staticMethod(1, 2); Note that I did not invoke the init method (constructor alias). As for sharing the results of methods between objects...You would handle that just as you might expect.Save the return value of a

Re: Basics Clarification

2004-09-15 Thread Barney Boisvert
Now if only there were an alternate syntax for the CFIF..CFELSEIF..CFELSE tags that was XML compliant...Totally optional, but available to use if you need XML compliant CFML for some reason. Of course, that's remarkably off-topic, but the hope that that might sometime exist is another tangible

Re: cfexecute or cfx_execute issues

2004-09-15 Thread Barney Boisvert
Silly question, but are you outputting your variable?Just to double check. On Wed, 15 Sep 2004 12:50:57 -0400, Steve Dworman [EMAIL PROTECTED] wrote: thanks for the suggestion, but it didn't seem to work.i just get a blank screen even when i set the timeout to 30.my cf is all up to date.any

Re: cfobject and java

2004-09-15 Thread Steve Dworman
i totally understand that, so i guess my problem is a little different. the following is my code to load a mib file.this works. cfscript mib = createobject(java, net.percederberg.mibble.MibLoader); nfo = createobject(java, net.percederberg.mibble.Mib); tempdir=my path here; tempvar =

Re: cfexecute or cfx_execute issues

2004-09-15 Thread Steve Dworman
sure am. cfx_Execute name=/usr/bin/perl arguments= -e '$test=2+2; print $test;' outputvar=outfile2 showdebug=yes lineend=br reload=Auto timeout=60 Cfoutput#outfile2#/Cfoutput Silly question, but are you outputting your variable?Just to double check. On Wed, 15 Sep 2004 12:50:57 -0400,

RE: Basics Clarification

2004-09-15 Thread Dave Watts
Tag attributes should be quoted in three situations: 1) always 2) always 3) always Imo even suggesting that it's possible to leave an attribute unquoted is reprehensible. Really? I suspect you use unquoted attributes all the time, at least with one tag. I know I do. For example, rather

RE: cfobject and java

2004-09-15 Thread Guy Rish
Steven, I'm looking at the link that you sent and I don't see a constructor for the Mib class.I am presuming that when the Javadoc was generated it was set to only document public members - which doesn't appear to include any of the constructors for this class.Further upon reading the (slight)

Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread guy . mcdowell
What if you did a function on it like? cfset myPath= RemoveChars(GetTemplatePath()start point,num chars to remove) I haven't actually tried this, so I'm not sure exactly how to set the start point and would only work if the path to your root was consistently the same num of characters.

RE: Major Driver problems

2004-09-15 Thread Dave Watts
Sorry, I should have given more info about my setup. I am running CFMX 6.1 Updater 3. I double-checked the driver and it is the latest and greatest. Well, there isn't a CFMX 6.1 Updater 3, only an Updater 1. So, I'm not really sure what you're running, although I suspect you're running Updater

OT - ASP (vbscript) equivalent for #JSStringFormat#

2004-09-15 Thread CFDEV
Hi, does anybody knows if there is an equivalent in ASP (vbscript) for the CF function #JSStringFormat#? Thanks Pat [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: Basics Clarification

2004-09-15 Thread S . Isaac Dealey
Now if only there were an alternate syntax for the CFIF..CFELSEIF..CFELSE tags that was XML compliant... Totally optional, but available to use if you need XML compliant CFML for some reason. Of course, that's remarkably off-topic, but the hope that that might sometime exist is another

Can 2 web servers Java connector connect to 1 CF app. server

2004-09-15 Thread Chad Nikirk
Is it possible two have two IIS web boxes each running the java connector and have them connect to the same CF app. server running in distrubuted mode? My problem stems from trying to use a Cisco LDIR to load balance the two web servers and then have the two web servers connect to the CF server

RE: Intel HyperThreading

2004-09-15 Thread Jim Davis
Back in the day (the VP6/BP6 era) there really wasn't much of a price difference - you could set up a single processor on a dual board using desktop processors (early Celerons or any PIII).You could either chew the cost of the second chip immediately or wait and get it later. Now the motherboards

Re: Trouble with Two Table Query - Doh!

2004-09-15 Thread Al Everett
Don't you mean group rather than query on the inner CFOUTPUT? Maybe. I was doing it off the top of my head. I didn't test it. Actually, it should probably just be a vanilla cfoutput. Oh, and why not use a JOIN rather than doing it in the WHERE? I dislike the JOIN syntax. I'm used to using

Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Al Everett
Another alternative: truncatedPath=Replace(GetCurrentTemplatePath,C:\Inetpub\wwwroot\MySite\,) --- Jeff Small [EMAIL PROTECTED] wrote: When I output GetTemplatePath() on my home page, I see: C:\Inetpub\wwwroot\MySite\index.cfm When I'm on the Gallery page, naturally, I see:

String Function in Update Form

2004-09-15 Thread Eric Davis
I have a record where the Title field is: Marysville Monarchs vs. Worthington Cardinals This string is passed to the database with no problem using my input form. The problem arises when I try to populate an update form with this same string. Here's the code for the update form:

Re: String Function in Update Form

2004-09-15 Thread Joe Rinehart
I think this is done automatically in MX, but if you're pre-mx, try: cfinput type=Text name=Title required=No size=65 value=#HTMLEditFormat(Title)# -joe - Original Message - From: Eric Davis [EMAIL PROTECTED] Date: Wed, 15 Sep 2004 14:02:05 -0400 Subject: String Function in Update Form

RE: String Function in Update Form

2004-09-15 Thread Eric Davis
BINGO! Thanks... Eric Davis Webmaster, Worthington Public Library 820 High St. Worthington, Ohio 43085 E-mail: [EMAIL PROTECTED] WWW: http://www.worthingtonlibraries.org http://www.worthingtonlibraries.org/ Phone: 614-645-2620 Ext. 236 Fax: 614-645-2629 -Original Message- From:

Re: poll DB

2004-09-15 Thread daniel kessler
So now I'm trying to create in Oracle the tables for the poll.But when I try to create the first one, which references another table, I get the error, missing right parenthesis.The only other relational work that I've done was in mySQL so I'm sure that it's a syntax or keywordOracle issue. Here's

RE: Currently running page requests

2004-09-15 Thread Joe Gooch
I concur. I've modified the code to show the exception, it seems endPoint.getRequestURI(),endPoint.getRemoteHost(), and endPoint.getServerName() all return nulls. I get a java.lang.NullPointerException. Ideas? Joe -Original Message- From: Douglas Knudsen [mailto:[EMAIL PROTECTED]

  1   2   >