Would it be possible (or even easier) to make two versions? 

Or two versions in one where as 6.1 code is in one folder and 7 in another.
Then you could either read the version yourself and choose the folder to run
from or let the user change a setting somewhere to specify their version and
let that be the deciding factor as to which folder code is executed from.

Just an idea... let me know when you want some testing on 6.1 :)

 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: Ryan Guill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 01, 2005 9:13 AM
To: CF-Talk
Subject: Re: qBrowser Released

Hey guys, heres a question.

I have been working on allowing qBrowser to work on cfmx 6.1.  I am
getting the version of cf from server.coldfusion.productVersion.  And
then I am doing a cfif statement to say if you are using 6.1, do this
query without the results attribute, and otherwise, (I have already
checked to make sure you arent below 6.1) then you must be on 7 and so
you can use the results attribute.

The problem is, cf is still scanning the template ahead of time, and
seeing the results attribute on the query and throwing an error.

Is there any way to have cf not look at the code that its not supposed
to be because of the version?

I haven't tested it yet, but would a <cfinclude> work?  would it scan
through the include if the <cfif> didnt evaluate to let it?


On 12/1/05, Ryan Guill <[EMAIL PROTECTED]> wrote:
> Yes, this app currently only supports cf 7 or better.  I do hope to
> try to support 6.1 in it soon, but right now it relies on the results
> attribute of the cfquery tag to show you some of the information.
> Without that, you basically would just be getting results, no
> information at all.  But I do suppose that would be better than
> nothing.
>
> One note though, this app is *not* to be used in a production
> environment unless it is strictly guarded.  This app gives full access
> to your databases, not something you want people to stumble upon.
>
>
> On 12/1/05, wolf2k5 <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I tried qBrowser on ColdFusion MX 6.1 (with Updater) and got the
> > following error:
> >
> > The CFML compiler encountered an unexpected
> > java.lang.NullPointerException exception.
> > The reason for this was: Occurred
> > at:<pre>java.lang.NullPointerException at
> >
coldfusion.compiler.NeoTranslationContext.findTagName(NeoTranslationContext.
java:336)
> > at
coldfusion.compiler.NeoTranslationContext.isKnownTag(NeoTranslationContext.j
ava:193)
> > at
coldfusion.compiler.CFMLParserBase.isKnownTagName(CFMLParserBase.java:62)
> > at
coldfusion.compiler.cfml40TokenManager.TokenLexicalActions(cfml40TokenManage
r.java:6507)
> > at
coldfusion.compiler.cfml40TokenManager.getNextToken(cfml40TokenManager.java:
6384)
> > at coldfusion.compiler.cfml40.getToken(cfml40.java:6603) at
> >
coldfusion.compiler.CFMLParserBase.isTrivialAngleBracket(CFMLParserBase.java
:135)
> > at coldfusion.compiler.cfml40.jj_3_1(cfml40.java:5977) at
> > coldfusion.compiler.cfml40.jj_3R_46(cfml40.java:6016) at
> > coldfusion.compiler.cfml40.jj_3_28(cfml40.java:4898) at
> > coldfusion.compiler.cfml40.jj_3_27(cfml40.java:5208) at
> > coldfusion.compiler.cfml40.jj_2_27(cfml40.java:3990) at
> > coldfusion.compiler.cfml40.cfml(cfml40.java:2244) at
> > coldfusion.compiler.cfml40.start(cfml40.java:2373) at
> > coldfusion.comp...</pre>
> >
> > The error occurred in
> > /Users/me/Sites/cfusion/source/qBrowser/index.cfm: line 287
> >
> > Do you plan to add support for CFMX6.1 anytime soon?
> > A lof of production applications still run on it ...
> >
> > Thanks!
> >
> > 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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

Reply via email to