Re: Includes, paths, templates, directory path problems...and a philosophical Question

2004-12-22 Thread Greg Stewart
Or you could also simply use the base href tag (base href=www.yourdomain.com) and then have all your images/style sheets/javascript references do something like this: img src=/images/image.jpg / And it will automatically resolves. G On Wed, 22 Dec 2004 05:38:44 -0800, Barney Boisvert [EMAIL

Re: [OT] Eclispe and Java

2004-12-21 Thread Greg Stewart
IS this what you are after? public class Welcome { public static void main(String[] args) { String greeting []; greeting = new String [2]; greeting[0] = Welcome; greeting[1] = howdy; for (int i = 0; i

Re: AW: IgniteFusion anyone?

2004-12-16 Thread Greg Stewart
BlueDragon does support SSL, in the upcoming release (6.2) they will remove support for SSL on the free version, but it'll be in the full one. G On Thu, 16 Dec 2004 12:07:23 -0500, Damien McKenna [EMAIL PROTECTED] wrote: The restrictions on the free version are regarding redistribution, i.e.

Re: css - height 100% - i'd like to kill the crack-addicts who wrote the w3c box model

2004-12-16 Thread Greg Stewart
Hmm it may seem like a lot of trouble, but using Doug's technique you can control the number of columns displayed and their order through CSS, just by changing the body ID, one template many possible layouts, I think it's worth the effort to look more closely at it. I use it all the time by

Re: css - height 100% - i'd like to kill the crack-addicts who wrote the w3c box model

2004-12-16 Thread Greg Stewart
Hmm it may seem like a lot of trouble, but using Doug's technique you can control the number of columns displayed and their order through CSS, just by changing the body ID, one template many possible layouts, I think it's worth the effort to look more closely at it. I use it all the time by

Re: Eclipse

2004-11-08 Thread Greg Stewart
Also have a read of this blog entry (an interview with one of the CFeclipse developers): http://cybersonic.blogspot.com/2004/09/rob-rohan-interview.html It contains some really must have plugins (other than cfeclipse)... Cheers G On Mon, 08 Nov 2004 09:32:12 -0400, Bob Clingan [EMAIL PROTECTED]

Re: Bluedragon Server

2004-11-04 Thread Greg Stewart
No that's not true, you can load jar and java classes it's just not as straightforward as simply adding them to the class path. See Spike's article on loading jars. Cheers G On Wed, 03 Nov 2004 09:40:53 -0400, Ryan Jones [EMAIL PROTECTED] wrote: Well Tom, at this point I guess my primary

Re: jrun.security.NTAuth question

2004-11-03 Thread Greg Stewart
I have only ever used it as an authentication method, i.e. rather than checking against say a database I used this to authenticate the user against the domain, if true set the appropriate session variables and that was that. So to log out simply cleared the session. You don't necessarily have to

Re: includes and cfc's

2004-11-01 Thread Greg Stewart
Josh, You can find a few best practices/gudieliens here: http://www.dintenfass.com/cfcbestpractices/. Nathan kindly put these together based on threads/discussions on the CFCzone mailing list (http://www.cfczone.org/). Cheers Greg On Sun, 31 Oct 2004 21:25:52 -0500, JT News [EMAIL PROTECTED]

Re: OT: editors, back to HomeSite+ for me

2004-10-29 Thread Greg Stewart
Larry, Here's my blog entry relating to HE3 not starting (and it was the same fix for cfeclipse): http://gregs.tcias.co.uk/mach-ii/he3_first_steps.php If you need more help drop me a line. After a little fiddling with both of the plugins I can only say that they are awesome (especially once you

Re: OT: JavaScript Form Behaviour

2004-10-28 Thread Greg Stewart
Jillian, The answer is yes. In your drop down have an onChange event, that calls a function that checks the value selected and then does a document.formName.formFieldFame.selected = true based on that value. This should work. HTH G On Thu, 28 Oct 2004 09:28:29 -0600, Jillian Koskie [EMAIL

Re: Using Java to Get Image Sizes

2004-10-22 Thread Greg Stewart
To read a file from a URL I think you may need to do something like this: theUrl = your URL; u = createObject(java,java.net.URL).init(theUrl); inP = createObject(java,java.io.BufferedInputStream).init(u.openStream()); ImageObject = createObject(java,javax.imageio.ImageIO).read(inP); However I am

Re: Execute Query string w CFQUERYPARAM

2004-10-18 Thread Greg Stewart
Sounds to me like you are looking at the DAO pattern (http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html). Without starting an OO/mach-ii debate or anything like that, you may want to have a quick look at the Phil Cruz's mach-ii.info site to see how he implemented the

Re: CFMX 61 - J2EE Configuration

2004-10-08 Thread Greg Stewart
Here's a little snippet that I used to determine the version of drivers: cfscript jdbcDriver = CreateObject(java, macromedia.jdbc.sqlserver.SQLServerDriver); writeoutput(jdbcDriver.getMajorVersion() . jdbcDriver.getMinorVersion()); /cfscript Cheers G On Thu, 7 Oct 2004 15:43:27 -0400, Dave

Re: CFMX 6.1 Bug? WEB-INF directory showing up in my CF site.

2004-10-05 Thread Greg Stewart
Same problem at our end on Solaris. It looks like the updater has to re-compile all CFCs but somehow gets the location wrong and dumps them into the web root. We backed them up (just in case) and deleted them and they haven't come back since. On Tue, 5 Oct 2004 16:16:24 +0100, Gavin Brook [EMAIL

Re: Headache with # in table colors

2004-10-05 Thread Greg Stewart
I'd say Stylesheets all the way G On Tue, 5 Oct 2004 10:55:22 -0500, Donna French [EMAIL PROTECTED] wrote: Is there an easy way to go about handling table rows/columns colors as I am doing my page design/layout? -- Donna French [EMAIL PROTECTED] [Todays Threads] [This Message]

Re: Help with GetPageContext().Include()!!!

2004-09-16 Thread Greg Stewart
I can't confirm whether or not this is the expected behaviour, but I can confirm this behaviour applies to a number of scopes, in fact the only one that worked was the request scope (and though I haven't tested this the application scope should work as well). If you do a : cfdump

Re: Looping in CFSCRIPT

2004-09-09 Thread Greg Stewart
Here's my write up on using cfscript for looping over a query: http://gregs.tcias.co.uk/cold_fusion/outputting_queries_with_cfscript.php Hope this helps G On Thu, 9 Sep 2004 10:42:18 +0100, Andrew Dixon [EMAIL PROTECTED] wrote: Hi Everyone. Does anyone know how to loop within CFSCRIPT over

Re: Looping in CFSCRIPT

2004-09-09 Thread Greg Stewart
I know, I know... :) >From a time before BlueDragon free version was around, I am actually in the process of re-building the site to use cfml and Mach-ii as the framework. Still no harm in trying out PHP, it has a very rich feature set... G On Thu, 9 Sep 2004 11:31:26 +0100, Andrew Dixon

Re: MX 6.1 W2K3 Installation Hangs

2004-09-07 Thread Greg Stewart
Hi Alistair, Anything in the install log? And what kind of an install are you performing? J2EE/standalone? Also maybe this post can help a little: http://www.bpurcell.org/index.cfm?mode=entryentry=949 and there are a fwe comments relating to win2k3 as well.. Cheers G On Tue, 7 Sep 2004 13:39:47

Re: Stopping Macromedia JRUN CFusion Server Services

2004-09-07 Thread Greg Stewart
Not sure if Dave was referring to stopping/starting the service, but I can also recommend starting/stopping your JRun/CFMX instance using (again from the command line): $ jrun -start cfusion So far I have never had any problems using this as opposed to using a windows service. Furthermore you

updater and instances

2004-09-02 Thread Greg Stewart
Hi all, I have just installed the CFMX updater and immediately spotted that it only updates the default cfusion instance whenyou are using the J2EE configuration option. I was wondering if anybody had figured out a best practice for patching the other instances? The only thing I can think of is

Re: updater and instances

2004-09-02 Thread Greg Stewart
Thanks Dave, That looks like the path of least resistance... the other option I was considering to try out was to create backups of all the instance specific neo*.xml files and then doing the whole copying larck and restoring the XML files again. But I think your suggestion is probably the safest!

Re: Datasource

2004-08-24 Thread Greg Stewart
One possibility, are both the ColdFusion MX ODBC server and ColdFusion MX ODBC agent services running? G On Tue, 24 Aug 2004 09:23:39 -0400, vishnu prasad [EMAIL PROTECTED] wrote: Hi All i have my coldfusion application run in jrun when i create the datasource through contol panetl odbctest

Re: cold fusion mx

2004-08-23 Thread Greg Stewart
Hi, Fomr the documentation: New in ColdFusion MX: The connectString, dbName, dbServer, provider, providerDSN, and sql attributes, and all values of the dbtype attribute except query, are deprecated. Do not use them. They do not work, and might cause an error, in releases later than ColdFusion 5.

Re: Updating to CFMX 6.1

2004-08-18 Thread Greg Stewart
Hi, A little late maybe, but if you are running CFMX 6, then you could always try using a car file (CF admin under: Archives and Deployment) to backup and then re-store your settings once you have upgraded to 6.1. Cheers G On Tue, 17 Aug 2004 06:51:19 -0700, vicky [EMAIL PROTECTED] wrote:

Re: Query from within a cfscript

2004-08-18 Thread Greg Stewart
Hi, Could you post your code? In the meantime, here is how I went about it: http://gregs.tcias.co.uk/cold_fusion/outputting_queries_with_cfscript.php I based it on the same example but opted for placing the query in a CFC and invoking it using CreateObject(); Hope this helps a little G On

Re: Query from within a cfscript

2004-08-18 Thread Greg Stewart
True but you still need to cerate a function called cfquery, here is the code from the article: cffunction name=CFQUERY access=public returntype=query cfargument name=SQLString type=string required=yes cfargument name=Datasource type=string required=yes cfargument name=dbType type=string default=

Re: server-side forwarding in CFMS

2004-08-09 Thread Greg Stewart
Just out of curiosity is it possible to a re-direct to a new domain/url? something like: cfscript getPageContext().forward(http://www.somedomain.com/); /cfscript I know this doesn't work, but is there an equivalent (idealy using cfscript) without having to do a client side re-driect? Cheers G

Re: server-side forwarding in CFMS

2004-08-09 Thread Greg Stewart
Cheers Micha, but I was looking for a sever side re-direct! ;) On Mon, 9 Aug 2004 13:58:07 +0200, Micha Schopman [EMAIL PROTECTED] wrote: cflocation but I wonder, have you even checked the cfml reference? :-) Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 ALAmersfoort

Re: server-side forwarding in CFMS

2004-08-09 Thread Greg Stewart
Ah well, thanks Isaac. G On Mon, 9 Aug 2004 08:40:19 -0400, S. Isaac Dealey [EMAIL PROTECTED] wrote: Just out of curiosity is it possible to a re-direct to a new domain/url? something like: cfscript getPageContext().forward(http://www.somedomain.com/); /cfscript I know this doesn't

Re: Output in 2 columns

2004-08-09 Thread Greg Stewart
Just to get really into the semantics of markup ;)... I'd suggest using a list, here's DC's modified code for that... cfset noNews = news.recordCount / cfset halfNews = int(news.recordCount/2) / div id=news cfoutput query=news cfif news.currentRow eq 1 ol id=news-left /cfif li#news.item#/li

Re: FileExists sample code?

2004-08-05 Thread Greg Stewart
Check out livedocs: http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi79.htm#wp1104406 Cheers G On Thu, 5 Aug 2004 11:07:40 -0500, Donna French [EMAIL PROTECTED] wrote: Can someone post sample code using FileExists? I have 2 books and can't find a code sample in either and my online

Re: CFMX / JRUN / Apache virtual servers

2004-07-29 Thread Greg Stewart
Hi Doug, You'll need to modify your httpd.conf file to look something like this: VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /your/document/root ServerName your.domain.com ErrorLog logs/yourErrorLog-error_log CustomLog logs/yourAcesslog-access_log common JRunConfig Serverstore

Re: How to make CF session variables available to PHP

2004-07-27 Thread Greg Stewart
Don't believe this is directly possible. You might be able to do something using cookies and/or client vars though. Cheers G On Mon, 26 Jul 2004 16:42:41 +0100, Dave Wilson [EMAIL PROTECTED] wrote: Hi all, I've a section of development ongoing with PHP developers and it has come to the

Re: Urgent help needed Please

2004-07-23 Thread Greg Stewart
What is the error that is being returned? G On Thu, 22 Jul 2004 21:40:33 -0400, Sangeeta Karmokar [EMAIL PROTECTED] wrote: I am posting this question and no one is responding... Can anyone please respond. I think I am sounding dum in your world... Sangeeta Can anyone help me I am

Re: OT: js pop-up

2004-07-23 Thread Greg Stewart
Works just fine in FireFox and IE... On Fri, 23 Jul 2004 09:56:59 -0400, Robert Orlini [EMAIL PROTECTED] wrote: I get an error on a _javascript_ pop-up code. Something about Expected ) Its either a ) or } I'm not sure. I'm not that good with _javascript_. Any ideas on the code below please?

Re: Caching CFC's

2004-07-22 Thread Greg Stewart
One other thing about storing the cfc in the application scope was that any changes to the CFC wouldn't be reflected until the application re-started. So I'd also consider adding something like this: cfif NOT IsDefined('application.IOFactory') OR (isDefined(url.killApp) AND url.killApp eq yes)

Re: Resources for CF MX Enterprise

2004-07-22 Thread Greg Stewart
Hi Michael, I compiled these resources about JRun and getting started: http://gregs.tcias.co.uk/jrun/jrun_resources.php If anyone has other ones, I'd be happy to hear about them. Cheers G On Wed, 21 Jul 2004 19:03:08 -0500, Dawson, Michael [EMAIL PROTECTED] wrote: Other than the LiveDocs, can

Re: Resources for CF MX Enterprise

2004-07-22 Thread Greg Stewart
14:21:35 +0100, Greg Stewart [EMAIL PROTECTED] wrote: I compiled these resources about JRun and getting started: http://gregs.tcias.co.uk/jrun/jrun_resources.php [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: CFForm, CFInput, etc not xhtml compatible![ENCRYPTED]

2004-07-21 Thread Greg Stewart
in the label. I meant that to be title (like you were doing). ID shouldn't be in the label - just the input. - Original Message - From: Greg Stewart And I still get it wrong... :) I just checked with the webstandards.org website and they recommend: label for="" Name:/lab

Re: CFMX 6.1-Windows authentication failure

2004-07-20 Thread Greg Stewart
Isaac Dealey Has written a pretty neat article on using JDBC (http://sys-con.com/story/?storyid=45569DE=1) It doesn't cover what you are trying achieve, but it certainly can get you started with JDBC. G On Tue, 20 Jul 2004 10:15:11 -0400, Dave Watts [EMAIL PROTECTED] wrote: Thanks Dave for

Re: OT: JavaScript window

2004-07-19 Thread Greg Stewart
I don't know if this is exactly what you need, but I have used a _javascript_ to open a pop up, display a form and which on submits returns the values to the calling page. You can find a sample here: http://gregs.tcias.co.uk/_javascript_/populate_form_from_pop_up.php Cheers G On Mon, 19 Jul 2004

Re: CFForm, CFInput, etc not xhtml compatible!

2004-07-14 Thread Greg Stewart
I pesonally have never used the CFFORM tags, but the xHTML directive is one of the reason's I have built up a form CFC so that I can cut down a little on my form building and amke sure I don't forget any of the attributes for xHTML/accessible forms... You can find them here:

Re: CFForm, CFInput, etc not xhtml compatible!

2004-07-14 Thread Greg Stewart
e= /label ORyou have to use the for attribute combined with the id attribute: label title=Enter Your Name Here id=nameYour Name:/label input type=text name=name value= id=name - Original Message ----- From: Greg Stewart Subject: Re: CFForm, CFInput, etc not xhtml compatible! I

Re: cfc and the application scope

2004-07-13 Thread Greg Stewart
This topic has been covered at great length on the cfcdev mailing list and you might want to also check out Nathan's CFC best practice page, I think that may well cover most of your questions: http://www.dintenfass.com/cfcbestpractices/ From what I read in an article I located (sorry I dont have

Re: CFMX is crashing daily with no hints in the log

2004-07-13 Thread Greg Stewart
This is not necessarily an answer to your problem, but in terms of applying some fail over you might want to consider installing CFMX as a J2EE application and then deploying a second instance of your site. So if one CFMX instance falls over the second can kick in and keep the application running.

query.columnList

2004-07-02 Thread Greg Stewart
Hi, I just noticed that if you execute a query like: select townId, town, country from table and you output the resulting columnList, CFMX orders the columnList alphabetically, i.e. it returns country, town, townId, rather than the order they were selected in. This wasn't what I expected.

Re: query.columnList

2004-07-02 Thread Greg Stewart
-Original Message- From: Greg Stewart [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 3:57 PM To: CF-Talk Subject: query.columnList Hi, I just noticed that if you execute a query like: select townId, town, country from table and you output the resulting columnList, CFMX

Re: sot: login box

2004-07-02 Thread Greg Stewart
Were you after something like this? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleUntitled Document/title script

Re: Notifying Server of Client Side Events

2004-06-29 Thread Greg Stewart
Here's a good article that allows you to use _javascript_ remoting, shoudld suit your needs! http://www.sys-con.com/story/?storyid=43998DE=1#RES G On Tue, 29 Jun 2004 10:19:37 -0500, Nick Baker [EMAIL PROTECTED] wrote: CF 5.0 I am converting an HTML site that uses a lot of Bookmark

Re: Cheap hosting

2004-06-28 Thread Greg Stewart
Depending on how much effort you are willing to put in I can seriously recommend Linode.com. for $19.95 you get a UML (User Mode Linux) account (i.e. root access to your VPS) and basically can do whatever you like with it. Install Apache, BlueDragon and MySQL and you are off! Downside is you have

Re: Cheap hosting

2004-06-28 Thread Greg Stewart
If you are looking for something a little closer to home, check out these guys: http://www.bytemark-hosting.co.uk/index.html They offer a similar set up to Linode, but are based in the UK. I also have an account with them though currently it's only hosting the secondary DNS. Their Debian

Re: Cheap hosting

2004-06-28 Thread Greg Stewart
Hey Paul, The documentation states that it supports all of the functions and in the compatibility chart it lists cfobject as supported as well. However COM and CORBA are not supported. G PS: loved the I18N articles you wrote for CFDJ, any more coming soon? On Mon, 28 Jun 2004 23:24:45 +0700,

Re: coldfusion-61-ibm-eval-win.exe

2004-06-24 Thread Greg Stewart
I would have though that you can simply download a trial version of the enterprise edition of CFMX and deploy CFMX as an EAR on Websphere? On Thu, 24 Jun 2004 11:13:08 +0100, John Beynon [EMAIL PROTECTED] wrote: or off IBM, at http://www-306.ibm.com/software/webservers/coldfusionmx/ On Thu,

Re: Verity Locale in ColdFusion MX J2EE

2004-06-23 Thread Greg Stewart
Yep, you are right of course. G On Tue, 22 Jun 2004 18:39:24 -0400, Dave Carabetta [EMAIL PROTECTED] wrote: On Tue, 22 Jun 2004 22:50:45 +0100, Greg Stewart [EMAIL PROTECTED] wrote: Hi, Or if you are using CFMX instances then the path would be something like this: {install path}Jrun4

Re: CFMX won't start

2004-06-23 Thread Greg Stewart
Have you tried starting the server from the command line? Using jrun - start? Starting it from the command line outputs start up info as it fires up, so that may give you a few more clues. >From what I can see, and I could be way wrong here, it looks like there is a problem with the SAX parser.

Re: Patch Error - CF Won't Start

2004-06-22 Thread Greg Stewart
Your jvm.config file should be located under in a bin/ folder of your CFMX installation root. you can edit it and remove the changes you made and then attempt to restart CFMX that way. BTW are you running CFMX as a standalone or as a JRUN instance? Cheers G On Tue, 22 Jun 2004 09:43:21 -0400,

Re: JRUN and ColdFusion MX

2004-06-22 Thread Greg Stewart
Also do check out Brandon Purcell's site out (http://www.bpurcell.org/) He has some pretty useful info on JRun and CFMX integration, logging information etc... G On Tue, 22 Jun 2004 16:43:53 +0100, Kola Oyedeji [EMAIL PROTECTED] wrote: I don't think there are any recent books specifically on

Re: Verity Locale in ColdFusion MX J2EE

2004-06-22 Thread Greg Stewart
Hi, Or if you are using CFMX instances then the path would be something like this: {install path}Jrun4/servers/{instanceName}/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ Cheers G On Tue, 22 Jun 2004 15:51:00 -0400, Dave Carabetta [EMAIL PROTECTED] wrote: On Tue, 22 Jun 2004 16:38:49 -0300,

Re: JRUN and ColdFusion MX

2004-06-21 Thread Greg Stewart
Hi, Why not have a look at the Cold Fusion Developer Journal (http://www.sys-con.com/coldfusion/). Over the last couple of months there were a number of articles on setting up JRun with CFMX as a J2EE application. Here you can find a bunch of resources I put together on the topic: