Solved

Error in ColdFusion (Open BlueDragon) CFScript  Badly formatted tag

Posted on 2011-09-10
4
469 Views
Last Modified: 2012-05-12
I have a hosting site that has added 'ColdFusion' support to my site.  I found out that it is not the Adobe CF but Open BlueDragon.  I put together a simple page to see how well BD works as I've not used it before.  I get an error on this code and the hosting service has not been responsive to see if they have a bad install or is it just something bad on my part.  I can run this page on other true Adobe CF sites and it works.  
Am I missing something obvious?

Any thoughts?

Here is the error:
Bad File Exception
Request	/junk/cfScriptTest.cfm

Type	Template
Message	Badly formatted tag
Position	Line=4; Column=16
Detail	Problem occurred while parsing: Syntax error at line 2, column 16. Encountered: "=" after : "<"
Source	

1: <html>
2: <title>CfScriptTest</title>
3: <cfscript>
4:   for ( x=1; x <= 5; x++ ){
5:       WriteOutput( x );

^ Snippet from underlying CFML source

BlueDragon Time @ Server: 08:23:03.790 Saturday, 10 September 2011 

Open in new window

<html>
<title>CfScriptTest</title>
<cfscript>
	for ( x=1; x <= 5; x++ ){
  		WriteOutput( x );
	}
</cfscript>
<body>
CFSCRIPT test

<br />
</body>
</html>

Open in new window

E43509-498938.flv
0
Comment
Question by:E43509
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
cfEngineers earned 500 total points
Comment Utility
replace <= with LTE and replace x++ with x=x+1
0
 

Author Comment

by:E43509
Comment Utility
Wow that worked!  I don't understand why as the BD manualOpenBdManual show this as its example
// Looping Simple
for ( x=1; x <= 5; x++ ){
  WriteOutput( x );
}

Open in new window


Using your LTE and x=x+1 also worked on my Adobe CF servers.
Thanks.  Just curous ... do you think it is a version of Blue Dragon issue?
0
 
LVL 6

Expert Comment

by:cfEngineers
Comment Utility
It could be.

Which version of BD are you using?
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
> do you think it is a version of Blue Dragon issue?
>> It could be.

That'd make sense as even ACF didn't support the <= and ++ syntax until version 8 I think.  With 7 and earlier you still have to use the LTE and x = x + 1 syntax.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now