Search these areas:
Help
Support Forums
Product Info



-Introduction
-DataWeb: What's New
-Creating an Application
-The DataWeb Designer
-Application Management
-Data Tables
-Data Tables
-Views
-Templates
-Components
-Data Analysis
-Members
-Security
-Importing
-Exporting
-FTP
-JavaScript
-Object Model
-Full-Text Search
-Domain and Email Hosting
-HotBlock Modules
-Account Management
-Glossary
-New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

KnowledgeBase


Info: Including the characters "--" within script in a view file results in a syntax error
Article TypeInfo
TitleIncluding the characters "--" within script in a view file results in a syntax error
<i>I am trying to write script within a view that uses the decrement operator ("--"). When I save my view, I get a syntax error, "Illegal sequence in comment". Here is an example of my code:</i>

<pre>
&lt;!--#
var counter = 10;
while (counter != 0)
   {
   counter--;
   }
#--&gt;
</pre>

<p>To work around this problem, write your script in a Westside class file, and import that class file into your view to use the function. For more information, see <a href="?Topic=westsidescript/wsscriptclasses" class="mainLink2">Building Westside Script Classes</a>.
Last ReviewedFebruary 20, 2015 14:06:11

  
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
DataWeb, 720 North 10th Street, A #145, Renton, Washington 98057 *425-583-5970* Fax 484-770-4706* Email Us