Error Messege

Last post 01-13-2007, 2:54 PM by Maximus5684. 10 replies.
Sort Posts: Previous Next
  •  01-03-2007, 10:35 AM 25495

    Error Messege

    I am receiving an error will attempting to render the Cute Editor for ASP.
    Error listed below...

    Microsoft JScript compilation  error '800a03ec'

    Expected ';'

    /mfvfd/CuteEditor_Files/include_CuteEditor.asp, line 2

    Class CuteEditor
    ------^


    I don't know exactly why I am getting this. If you need to see some of my code on the page, tell me what parts. There are a couple hundred lines and don't want to post everything. Any help would be great, thanks in advance.

  •  01-03-2007, 10:51 AM 25496 in reply to 25495

    Re: Error Messege

    Microsoft JScript compilation  error '800a03ec'

    Expected ';'

    /mfvfd/CuteEditor_Files/include_CuteEditor.asp, line 2

    Class CuteEditor
    ------^


    JScript != VBScript.
     
    You have told your asp pages to use JScript as the page language, not VBScript.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-03-2007, 12:00 PM 25502 in reply to 25496

    Re: Error Messege

    Am I not able to use JScript with the cute editor? I already have everything written up in JScript. Is there a work around?
  •  01-03-2007, 12:23 PM 25503 in reply to 25502

    Re: Error Messege

    Eivo:
    Is there a work around?
     
    Can you post the code of that asp page?
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-03-2007, 12:30 PM 25504 in reply to 25503

    Re: Error Messege

    I can do without it for right now, but for future reference I would need to know.

    ____BOF____

    <%@LANGUAGE="JAVASCRIPT"%>
    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->
    <!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=iso-8859-1" />
    <title>Martins Ferry Volunteer Fire Department and EMS :: Fire Safety</title>

    <link rel="stylesheet" type="text/css" href="main.css" />

    <script type="text/javascript">
    fireOn=new Image()
    fireOn.src="images/firesafety_glow.png"
    fireOff=new Image()
    fireOff.src="images/firesafety_basic.png"
    recOn=new Image()
    recOn.src="images/recruitment_glow.png"
    recOff=new Image()
    recOff.src="images/recruitment_basic.png"
    galleryOn=new Image()
    galleryOn.src="images/gallery_glow.png"
    galleryOff=new Image()
    galleryOff.src="images/gallery_basic.png"
    histOn=new Image()
    histOn.src="images/history_glow.png"
    histOff=new Image()
    histOff.src="images/history_basic.png"
    townOn=new Image()
    townOn.src="images/town_glow.png"
    townOff=new Image()
    townOff.src="images/town_basic.png"
    linksOn=new Image()
    linksOn.src="images/links_glow.png"
    linksOff=new Image()
    linksOff.src="images/links_basic.png"
    contactOn=new Image()
    contactOn.src="images/contact_glow.png"
    contactOff=new Image()
    contactOff.src="images/contact_basic.png"
    function fireOver() {document.b1.src =fireOn.src}
    function fireOut() {document.b1.src =fireOff.src}
    function recOver() {document.b2.src =recOn.src}
    function recOut() {document.b2.src =recOff.src}
    function galleryOver() {document.b3.src =galleryOn.src}
    function galleryOut() {document.b3.src =galleryOff.src}
    function histOver() {document.b4.src =histOn.src}
    function histOut() {document.b4.src =histOff.src}
    function townOver() {document.b5.src =townOn.src}
    function townOut() {document.b5.src =townOff.src}
    function linksOver() {document.b6.src =linksOn.src}
    function linksOut() {document.b6.src =linksOff.src}
    function contactOver() {document.b7.src =contactOn.src}
    function contactOut() {document.b7.src =contactOff.src}
    </script>

    </head>

    <body background="images/TextureBG.gif">

    <!-- Start Header -->
    <div id="header" style="z-index:4; position:absolute; width:819px; height:107px; left:102px; top:0px; visibility:visible; background-image:url(images/header.png)">
    <table width="819" height="60" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="619">&nbsp;</td>
        <td width="200"><div style="color:#FFFFFF; padding-right:5px; font-size:12px; font-family:Arial, Helvetica, sans-serif; text-align:right; ">
    Martins Ferry    740·633·0515<br />
    <a href="index.asp" style="color:#FFFFFF; text-decoration:none">Contact Us <img src="images/mini_home.gif" align="top" border="none" /></a><br />
    <a href="article_index?cat=contact" style="color:#FFFFFF; text-decoration:none">Home <img src="images/mini_mail.gif" align="top" border="none" /></a>
        </div></td>
      </tr>
    </table>
    </div>
    </div>
    <!-- End Header -->

    <!-- Start Navigation -->
    <div id="navigation" style="z-index:3; position:absolute; width:204px; height:313px; left:102px; top:107px; visibility:visible; ">
    <a href="firesafety.asp" onmouseover="fireOver()" onmouseout="fireOut()">
    <img src="images/firesafety_basic.png" name="b1" border="none"/></a><br/>
    <a href="article_index.asp?cat=recruitment" onmouseover="recOver()" onmouseout="recOut()">
    <img src="images/recruitment_basic.png" name="b2" border="none"/></a><br/>
    <a href="article_index.asp?cat=gallery" onmouseover="galleryOver()" onmouseout="galleryOut()">
    <img src="images/gallery_basic.png" name="b3" border="none"/></a><br/>
    <a href="article_index.asp?cat=history" onmouseover="histOver()" onmouseout="histOut()">
    <img src="images/history_basic.png" name="b4" border="none"/></a><br/>
    <a href="article_index.asp?cat=town" onmouseover="townOver()" onmouseout="townOut()">
    <img src="images/town_basic.png" name="b5" border="none"/></a><br/>
    <a href="article_index.asp?cat=links" onmouseover="linksOver()" onmouseout="linksOut()">
    <img src="images/links_basic.png" name="b6" border="none"/></a><br/>
    <a href="article_index.asp?cat=contact" onmouseover="contactOver()" onmouseout="contactOut()">
    <img src="images/contact_basic.png" name="b7" border="none"/></a>
    </div>
    <!-- End Navigation -->

    <!-- Start Mass -->
    <div id="mass" style="z-index:1; position:absolute; width:819px; left:102px; visibility:visible; background-color:#000000; top: 0px;">
    <!-- Start Story -->
    <div id="story" style="position:relative; width:615px; left:204px; top:107px; visibility:visible; background-color:#000000; z-index:4;">
    <h1 class="titlestory">Edit</h1>
      <form name="form1" id="form1" method="post" action="">
        <table width="470" height="162" border="0" align="center" cellpadding="0" cellspacing="0" class="story">
        <tr>
          <td height="22">Author:</td>
          <td><input name="author" type="text" value="Enter the Author name here..." size="50" /></td>
        </tr>
        <tr>
          <td height="24">Date:</td>
          <td><select name="month">
            <option value="No Month was selected" selected="selected">Month</option>
            <option value="Jan">January</option>
            <option value="Feb">Febuary</option>
            <option value="Mar">March</option>
            <option value="Apr">April</option>
            <option value="May">May</option>
            <option value="Jun">June</option>
            <option value="Jul">July</option>
            <option value="Aug">August</option>
            <option value="Sep">September</option>
            <option value="Oct">October</option>
            <option value="Nov">November</option>
            <option value="Dec">December</option>
          </select>
          <select name="date">
            <option value="No Date was selected" selected="selected">Date</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
            <option value="6">6</option>
            <option value="7">7</option>
            <option value="8">8</option>
            <option value="9">9</option>
            <option value="10">10</option>
            <option value="11">11</option>
            <option value="12">12</option>
            <option value="13">13</option>
            <option value="14">14</option>
            <option value="15">15</option>
            <option value="16">16</option>
            <option value="17">17</option>
            <option value="18">18</option>
            <option value="19">19</option>
            <option value="20">20</option>
            <option value="21">21</option>
            <option value="22">22</option>
            <option value="23">23</option>
            <option value="24">24</option>
            <option value="25">25</option>
            <option value="26">26</option>
            <option value="27">27</option>
            <option value="28">28</option>
            <option value="29">29</option>
            <option value="30">30</option>
            <option value="31">31</option>
          </select>
          <input name="year" type="text" value="2007" size="8" maxlength="4" /></td>
        </tr>
        <tr>
          <td height="22">Title:</td>
          <td><input name="title" type="text" value="Enter the Title here..." size="50" /></td>
        </tr>
        <tr>
          <td height="70" valign="top">Story:</td>
          <td>
          <%
               Dim editor
               Set editor = New CuteEditor
               editor.ID = "Story"
               editor.Text = "Hello World"
               editor.Width = 500
               editor.ConfigurationPath = "CuteEditor_Files/Configuration/AutoConfigure/Simple.config"
               editor.Draw()
          %>      </td>
        </tr>
        <tr align="right">
          <td colspan="2"><input type="reset" name="Reset" value="Clear" />
            <input type="submit" name="Submit" value="Save" /></td>
          </tr>
      </table>
    </form>


    </div>
    <!-- End Story -->
    <br/>
    <br/><br/><br/><br/><br/><br/><br/><br/>

    <!-- Start Sublinks -->
    <div id="sublinks" class="sublinks" style="text-align:center">
    <a href="index.html" class="sublinks">Home</a>
    <a href="index.html" class="sublinks">Fire Safety</a>
    <a href="index.html" class="sublinks">Recruitment</a>
    <a href="index.html" class="sublinks">Events</a>
    <a href="index.html" class="sublinks">History and Heritage</a>
    <a href="index.html" class="sublinks">Our Town</a>
    <a href="index.html" class="sublinks">Press</a>
    <a href="index.html" class="sublinks">Contact Us</a>
    <a href="index.html" class="sublinks">Login</a><br />
    &copy; Copyright 2006 Martins Ferry Volunteer Fire Department. All Rights Reserved.<br />
    Site design and e-commerce by <a href="http://www.youradsolution.com/index.html" class="sublinks">Liquid Media Solutions, LLC.</a><br /><br /><br /><br />
    </div>
    <!-- End Sublinks -->
    </div>
    <!-- End Mass -->

    <!-- Start News -->
    <div id="news" style="z-index:5; position:absolute; top:420px; left:102px; width:204px; height:348px; visibility:visible; background-color:#000000; background-image:url(images/barbl.png); background-repeat:no-repeat; overflow: hidden;">
    <%
    var connectionObject = new ActiveXObject("ADODB.Connection");
    var connectionString = "Provider=sqloledb; Data Source=******,1433; Initial Catalog=******; User Id=*****; Password=*****;"
    connectionObject.Open(connectionString);
    var recordset = new ActiveXObject("ADODB.Recordset");
    var find = "SELECT * FROM mfvfd WHERE category LIKE 'news'"
    recordset.Open(find,connectionObject);
    Response.Write("<table width=\"204\" height=\"353\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r");
    Response.Write("<tr><td height=\"44\" valign=\"bottom\"><img src=\"images/news_bar.png\" style=\"padding-top:20px;\" /></td></tr>\r");
    Response.Write("<tr><td valign=\"top\"><div class=\"story\">\r");
    Response.Write(recordset("story"));
    Response.Write("</div></td></tr>\r");
    Response.Write("</table>\r");
    recordset.Close;
    connectionObject.Close;
    connectionObject = null;
    %>
    </div>
    <!-- End News -->

    <!-- Start Backer -->
    <div id="backer" style="z-index:0; position:absolute; width:819px; height:768px; left:102px; top:0px; visibility:visible; background-color:#000000"></div>
    <!-- End Backer -->

    </body>
    </html>


    ___EOF___

    That's all of it. Currently unfinished in certain places.

  •  01-05-2007, 7:43 AM 25568 in reply to 25503

    Re: Error Messege

    That's all of it for that page
  •  01-09-2007, 9:46 AM 25649 in reply to 25568

    Re: Error Messege

    :\

    I really need to find out if it is at all possible to get the cute editor to work nicely with js. If it helps, I get errors anytime I include the <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> with the editor on the same page. Any help would be greatly welcome.

  •  01-09-2007, 2:11 PM 25674 in reply to 25649

    Re: Error Messege

    I tried the <script> tag to try and run that part as VB but I get errors this way also. Here is what I have...

    <script src="CuteEditor_Files/include_CuteEditor.asp" language="vbscript" runat="server">
    <%
    Dim editor
    Set editor = New CuteEditor
    editor.ID = "Story"
    editor.Text = "Hello World"
    editor.Width = 500
    editor.ConfigurationPath = "CuteEditor_Files/Configuration/AutoConfigure/Simple.config"
    editor.Draw()
    %>
    </script>

    I put the path to the include file in the source cuase the errors suggested I do and gave me errors if I put it anywhere else. But now I get the error...

    Microsoft VBScript compilation error '800a0400'

    Expected statement

    /mfvfd/CuteEditor_Files/include_CuteEditor.asp, line 1

    <%
    ^

    So now I have a VBScript error, which puts me closer then before where I had a JS error.  I could really use help on this please. It's holding up my entire project.  :(
    Thanks in advance.

  •  01-09-2007, 2:22 PM 25675 in reply to 25674

    Re: Error Messege

    You need to figure out how to have both JavaScript and VBScript routines on the same page.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-09-2007, 2:43 PM 25679 in reply to 25675

    Re: Error Messege

    I know, that is why I put in the <script> tag. And from what I understand about the error it is reading the include_CuteEditor.asp in VB.

    Microsoft VBScript compilation error '800a0400'

    Expected statement

    /mfvfd/CuteEditor_Files/include_CuteEditor.asp, line 1

    <%
    ^
    And is having an error with the <% at the beginning of that file. Has anyone else run into this problem?
  •  01-13-2007, 2:54 PM 25770 in reply to 25679

    Re: Error Messege

    Just a little offer from another user...
     
    Try this instead:
     
    <script src="CuteEditor_Files/include_CuteEditor.asp" language="vbscript" runat="server"></script>
    <script runat="server" language="vbscript">
    <%
    Dim editor
    Set editor = New CuteEditor
    editor.ID = "Story"
    editor.Text = "Hello World"
    editor.Width = 500
    editor.ConfigurationPath = "CuteEditor_Files/Configuration/AutoConfigure/Simple.config"
    editor.Draw()
    %>
    </script>
       
View as RSS news feed in XML