close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


WA AltClass Iterator function with ColdFusion Page

Thread began 4/27/2010 4:28 pm by martinique124148 | Last modified 4/28/2010 10:22 am by Jason Byrnes | 930 views | 1 replies |


WA AltClass Iterator function with ColdFusion Page

I just purchased DataAssist 2.0 and am running into this error when pages are uploaded to the server:

Error Diagnostic Information

Just in time compilation error

Invalid parser construct found on line 70 at position 10. ColdFusion was looking at the following text: WA_AltClassIteratorInvalid expression format. The usual cause is an error in the expression structure.

The last successfully parsed CFML construct was a CFSCRIPT tag occupying document position (68:1) to (68:10).

Server: IIS/5.0 + ColdFusion 4.5 (Yes, I know there is a version 9), but this is what they gave me.

This is the code created by WA:

//WA AltClass Iterator
function WA_AltClassIterator(theArray,theStartIndex) {
if (Len(theArray) GT 1) {
if (Left(theArray, 1) EQ "|")
theArray = "WABLANKCLASS" & theArray;
if (Right(theArray, 1) EQ "|")
theArray = theArray & "WABLANKCLASS";
theArray = Replace(theArray, "||", "|WABLANKCLASS|");
else {
if (theArray EQ "|") {
theArray = ListToArray(theArray, "|");
StructInsert(tempStruct, "ClassArray", theArray);
StructInsert(tempStruct, "ClassCounter", theStartIndex);
return tempStruct;

function WA_AltClassIterator_getClass(loopObj, incrementClass) {
if (ArrayLen(loopObj.ClassArray) EQ 0)
return "";
if (incrementClass) {
if (loopObj.ClassCounter GT ArrayLen(loopObj.ClassArray))
loopObj.ClassCounter = 1;
loopObj.ClassCounter = loopObj.ClassCounter + 1;
retVal = "";
if (loopObj.ClassCounter GT 1)
retVal = loopObj.ClassArray[loopObj.ClassCounter-1];
retVal = loopObj.ClassArray[1];
if (retVal EQ "WABLANKCLASS") return "";
return retVal;

Sign in to reply to this post

Jason ByrnesWebAssist

ColdFusion 4.5 is not supported by DataAssist.

to use DataAssist in a ColdFusion environment, you need to have ColdFusion 6 or later.

The system requirements listed on the DataAssist product page are:


* Windows Vista, Windows XP SP2, or Windows Server 2003
* 128 MB RAM (256 MB recommended)
* Dreamweaver CS4, Dreamweaver CS3, Dreamweaver 8
* Works with static, dynamic or template pages.

One of the following Application Server Models

* ColdFusion 6.x and later
* ASP JavaScript
* ASP VBScript
* PHP 4.2 +


* Mac PowerPC or Mac Intel
* MacOS 10.4.x, MacOS 10.5.x
* Dreamweaver CS4, Dreamweaver CS3, Dreamweaver 8
* Works with static, dynamic or template pages.

One of the following Databases

* Microsoft Access (with ASP and ColdFusion)
* Microsoft SQL Server (with ASP and ColdFusion)
* Oracle (with ASP and ColdFusion)
* MySQL 4 and MySQL 5 (with PHP)  
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...