Re: Error Messege

  •  01-03-2007, 12:30 PM

    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.

View Complete Thread