Problem adding html

Last post 01-15-2009, 11:40 AM by Adam. 3 replies.
Sort Posts: Previous Next
  •  01-13-2009, 5:08 PM 47708

    Problem adding html

    When I add html I can see the layout in the preview pane and the normal pane, but when I hit save everything disapears. 
     
    When I just add some text and hit save...Fine
     
    When I add an image from my server...Fine.
     
     
    What could be the problem with this code for example?
     

    <html>
    <head>
    <title>Real Estate</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
    <!-- ImageReady Preload Script (index.psd) -->
    <script type="text/javascript">
    <!--

    function newImage(arg) {
     if (document.images) {
      rslt = new Image();
      rslt.src = arg;
      return rslt;
     }
    }

    function changeImages() {
     if (document.images && (preloadFlag == true)) {
      for (var i=0; i<changeImages.arguments.length; i+=2) {
       document[changeImages.argumentsIdea].src = changeImages.arguments[i+1];
      }
     }
    }

    var preloadFlag = false;
    function preloadImages() {
     if (document.images) {
      home_page_over = newImage("images/home-page-over.jpg");
      buying_over = newImage("images/buying-over.jpg");
      new_homes_over = newImage("images/new-homes-over.jpg");
      selling_over = newImage("images/selling-over.jpg");
      renting_over = newImage("images/renting-over.jpg");
      contacts_over = newImage("images/contacts-over.jpg");
      preloadFlag = true;
     }
    }

    // -->
    </script>
    <!-- End Preload Script -->
    <link href="css/styles.css" rel="stylesheet" type="text/css">
    </head>
    <center>
    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="preloadImages();">
    <!-- ImageReady Slices (index.psd) -->
    <table width="776" height="801" border="0" cellpadding="0" cellspacing="0" class="frame" id="Table_01">
     <tr>
      <td width="10" height="800" rowspan="24" bgcolor="#EDEFEE"></td>
      <td colspan="6">
       <a href="index.html"
        onmouseover="window.status='home page'; changeImages('home_page', 'images/home-page-over.jpg'); return true;"
        onmouseout="window.status=''; changeImages('home_page', 'images/home-page.jpg'); return true;"
        onmousedown="changeImages('home_page', 'images/home-page-over.jpg'); return true;"
        onmouseup="changeImages('home_page', 'images/home-page-over.jpg'); return true;">
        <img name="home_page" src="images/home-page.jpg" width="146" height="64" border="0" alt="home page"></a></td>
      <td colspan="4">
       <a href="buying.html"
        onmouseover="window.status='buying'; changeImages('buying', 'images/buying-over.jpg'); return true;"
        onmouseout="window.status=''; changeImages('buying', 'images/buying.jpg'); return true;"
        onmousedown="changeImages('buying', 'images/buying-over.jpg'); return true;"
        onmouseup="changeImages('buying', 'images/buying-over.jpg'); return true;">
        <img name="buying" src="images/buying.jpg" width="113" height="64" border="0" alt="buying"></a></td>
      <td colspan="3">
       <a href="new.html"
        onmouseover="window.status='new homes'; changeImages('new_homes', 'images/new-homes-over.jpg'); return true;"
        onmouseout="window.status=''; changeImages('new_homes', 'images/new-homes.jpg'); return true;"
        onmousedown="changeImages('new_homes', 'images/new-homes-over.jpg'); return true;"
        onmouseup="changeImages('new_homes', 'images/new-homes-over.jpg'); return true;">
        <img name="new_homes" src="images/new-homes.jpg" width="143" height="64" border="0" alt="new homes"></a></td>
      <td colspan="2">
       <a href="selling.html"
        onmouseover="window.status='selling'; changeImages('selling', 'images/selling-over.jpg'); return true;"
        onmouseout="window.status=''; changeImages('selling', 'images/selling.jpg'); return true;"
        onmousedown="changeImages('selling', 'images/selling-over.jpg'); return true;"
        onmouseup="changeImages('selling', 'images/selling-over.jpg'); return true;">
        <img name="selling" src="images/selling.jpg" width="111" height="64" border="0" alt="selling"></a></td>
      <td colspan="3">
       <a href="renting.html"
        onmouseover="window.status='renting'; changeImages('renting', 'images/renting-over.jpg'); return true;"
        onmouseout="window.status=''; changeImages('renting', 'images/renting.jpg'); return true;"
        onmousedown="changeImages('renting', 'images/renting-over.jpg'); return true;"
        onmouseup="changeImages('renting', 'images/renting-over.jpg'); return true;">
        <img name="renting" src="images/renting.jpg" width="118" height="64" border="0" alt="renting"></a></td>
      <td colspan="2">
       <a href="contacts.html"
        onmouseover="window.status='contacts'; changeImages('contacts', 'images/contacts-over.jpg'); return true;"
        onmouseout="window.status=''; changeImages('contacts', 'images/contacts.jpg'); return true;"
        onmousedown="changeImages('contacts', 'images/contacts-over.jpg'); return true;"
        onmouseup="changeImages('contacts', 'images/contacts-over.jpg'); return true;">
        <img name="contacts" src="images/contacts.jpg" width="124" height="64" border="0" alt="contacts"></a></td>
      <td width="10" height="800" rowspan="24" bgcolor="#EDEFEE"></td>
      <td>
       <img src="images/spacer.gif" width="1" height="64" alt=""></td>
     </tr>
     <tr>
      <td colspan="20">
       <img src="images/main.jpg" width="755" height="238" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="1" height="238" alt=""></td>
     </tr>
     <tr>
      <td colspan="12">
       <a href="#"
        onmouseover="window.status='learn more';  return true;"
        onmouseout="window.status='';  return true;">
        <img src="images/learn-more.jpg" width="315" height="76" border="0" alt="learn more"></a></td>
      <td colspan="8">
       <img src="images/main-16.jpg" width="440" height="76" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="1" height="76" alt=""></td>
     </tr>
     <tr>
      <td colspan="20">
       <img src="images/main-17.jpg" width="755" height="9" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="1" height="9" alt=""></td>
     </tr>
     <tr>
      <td colspan="9">
       <img src="images/search.jpg" width="232" height="47" alt=""></td>
      <td colspan="2" rowspan="19">
       <img src="images/main-19.jpg" width="30" height="350" alt=""></td>
      <td colspan="3" rowspan="5" align="left" valign="top">
       <img src="images/featured.jpg" width="229" height="135" alt=""></td>
      <td colspan="2" rowspan="19" align="left" valign="top">
       <img src="images/main-21.jpg" width="23" height="350" alt=""></td>
      <td colspan="3" align="left" valign="top">
       <img src="images/welcome.jpg" width="219" height="47" alt=""></td>
      <td width="22" height="350" rowspan="19" align="left" valign="top"></td>
      <td>
       <img src="images/spacer.gif" width="1" height="47" alt=""></td>
     </tr>
     <tr>
      <td width="24" height="239" rowspan="14" align="left" valign="top"></td>
      <td width="208" height="30" colspan="8" align="left" valign="middle" class="text2" style="padding-top:6px">price per month</td>
      <td width="219" height="109" colspan="3" rowspan="6" align="left" valign="top" style="padding-top:7px; padding-left:5px"><span class="text1">Consetetur pscing elitr, sed diam nonumy eirmod Erat, sed diam
              </span><br>
          Dolores et ea consetetur sadi pscing elit consetetur pscing elitr, sed diam nonumy eirmod Dolores et ea consetetur sadi pscing elit consetetur pscing elitr <a href="#" class="b">more...</a></td>
      <td>
       <img src="images/spacer.gif" width="1" height="30" alt=""></td>
     </tr>
     <tr>
      <td width="95" height="26" align="left" valign="top" class="text2"><span class="text4" style="line-height:18px">
        <input type="text" name="textfield" style="width:90px">
      </span></td>
      <td width="14" height="26" align="left" valign="top" class="text2">to</td>
      <td width="99" height="26" colspan="6" align="left" valign="top" class="text2"><span class="text4" style="line-height:18px">
        <input type="text" name="textfield2" style="width:90px">
      </span></td>
      <td>
       <img src="images/spacer.gif" width="1" height="26" alt=""></td>
     </tr>
     <tr>
      <td width="208" height="17" colspan="8" align="left" valign="top" class="text2">location</td>
      <td>
       <img src="images/spacer.gif" width="1" height="17" alt=""></td>
     </tr>
     <tr>
      <td width="208" height="32" colspan="8" rowspan="2" align="left" valign="top" class="text2"><span class="text4" style="line-height:18px">
        <select name="select" style="width:180px">
              </select>
      </span></td>
      <td>
       <img src="images/spacer.gif" width="1" height="15" alt=""></td>
     </tr>
     <tr>
      <td width="229" height="55" colspan="3" rowspan="4" align="left" valign="top" background="images/b_feat1.jpg"  style="padding-left:24px; padding-right:20px; padding-top:3px"><a href="#" class="c">Consetetur pscing elitr, sed diam </a><br>
         Dolores et ea consetetur sadi pscing elit consetetur pscing elitr <a href="#" class="b">more...</a></td>
      <td>
       <img src="images/spacer.gif" width="1" height="17" alt=""></td>
     </tr>
     <tr>
      <td width="110" height="17" colspan="3" rowspan="2" align="left" valign="top" class="text2">min. bedrooms</td>
      <td width="98" height="17" colspan="5" rowspan="2" align="left" valign="top" class="text2">property type</td>
      <td>
       <img src="images/spacer.gif" width="1" height="4" alt=""></td>
     </tr>
     <tr>
      <td colspan="3" rowspan="3" align="left" valign="top">
       <img src="images/mortgage.jpg" width="219" height="41" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="1" height="13" alt=""></td>
     </tr>
     <tr>
      <td width="110" height="33" colspan="3" rowspan="3" align="left" valign="top" class="text2"><span style="line-height:18px">
        <select name="select4" style="width:80px">
              </select>
      </span></td>
      <td width="98" height="33" colspan="5" rowspan="3" align="left" valign="top" class="text2"><span style="line-height:18px">
        <select name="select2" style="width:80px">
              </select>
      </span></td>
      <td>
       <img src="images/spacer.gif" width="1" height="21" alt=""></td>
     </tr>
     <tr>
      <td colspan="3" rowspan="7" align="left" valign="top">
       <img src="images/featured-25.jpg" width="229" height="101" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="1" height="7" alt=""></td>
     </tr>
     <tr>
      <td rowspan="9" align="left" valign="top">
       <img src="images/mortgage-26.jpg" width="25" height="153" alt=""></td>
      <td width="194" height="153" colspan="2" rowspan="9" align="left" valign="top" style="line-height:22px; padding-top:8px"><a href="#" class="a">Consetetur pscing elitr, sed diam nonumy </a><br>
           <a href="#" class="a">eirmod Erat, sed diam Dolores et ea</a><br>
           <a href="#" class="a">consetetur sadi pscing elit consetetur</a> <br>
           <a href="#" class="a">pscing elitr, sed diam nonumy eirmod</a><br>
           <a href="#" class="a">Dolores et ea consetetur sadi pscing elit</a> <br>
           <a href="#" class="a">consetetur pscing elitr lorem ipsum sed</a></td>
      <td>
       <img src="images/spacer.gif" width="1" height="5" alt=""></td>
     </tr>
     <tr>
      <td width="110" height="16" colspan="3" align="left" valign="top" class="text2">availability</td>
      <td width="98" height="16" colspan="5" align="left" valign="top" class="text2">furnished</td>
      <td>
       <img src="images/spacer.gif" width="1" height="16" alt=""></td>
     </tr>
     <tr>
      <td width="110" height="34" colspan="3" align="left" valign="top" class="text2"><span style="line-height:18px">
        <select name="select3" style="width:80px">
              </select>
      </span></td>
      <td width="98" height="34" colspan="5" align="left" valign="top" class="text2"><span style="line-height:18px">
        <select name="select5" style="width:80px">
              </select>
      </span></td>
      <td>
       <img src="images/spacer.gif" width="1" height="34" alt=""></td>
     </tr>
     <tr>
      <td width="114" height="34" colspan="4" rowspan="2" align="left" valign="top" class="text2"></td>
      <td colspan="3" align="left" valign="top" class="text2">
       <a href="#"
        onmouseover="window.status='submit';  return true;"
        onmouseout="window.status='';  return true;">
        <img src="images/submit.jpg" width="80" height="22" border="0" alt="submit"></a></td>
      <td width="14" height="34" rowspan="2" align="left" valign="top" class="text2"></td>
      <td>
       <img src="images/spacer.gif" width="1" height="22" alt=""></td>
     </tr>
     <tr>
      <td width="80" height="12" colspan="3" align="left" valign="top" class="text2"></td>
      <td>
       <img src="images/spacer.gif" width="1" height="12" alt=""></td>
     </tr>
     <tr>
      <td colspan="9" rowspan="2" align="left" valign="top">
       <img src="images/newsletter.jpg" width="232" height="28" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="1" height="5" alt=""></td>
     </tr>
     <tr>
      <td width="229" height="59" colspan="3" rowspan="3" align="left" valign="top" background="images/b_feat2.jpg" style="padding-left:24px; padding-right:20px; padding-top:3px" ><a href="#" class="c">Consetetur pscing elitr, sed diam </a><br>
         Dolores et ea consetetur sadi pscing elit consetetur pscing elitr <a href="#" class="b">more...</a></td>
      <td>
       <img src="images/spacer.gif" width="1" height="23" alt=""></td>
     </tr>
     <tr>
      <td width="181" height="36" colspan="7" rowspan="2" align="right" valign="top" style="padding-right:10px"><span class="text4" style="line-height:18px">
        <input type="text" name="textfield3" style="width:150px">
      </span></td>
      <td align="left" valign="top">
       <a href="#"
        onmouseover="window.status='go';  return true;"
        onmouseout="window.status='';  return true;">
        <img src="images/go.jpg" width="37" height="20" border="0" alt="go"></a></td>
      <td width="14" height="36" rowspan="2" align="left" valign="top"></td>
      <td>
       <img src="images/spacer.gif" width="1" height="20" alt=""></td>
     </tr>
     <tr>
      <td width="37" height="16" align="left" valign="top"></td>
      <td>
       <img src="images/spacer.gif" width="1" height="16" alt=""></td>
     </tr>
     <tr>
      <td width="755" height="63" colspan="20" align="center" valign="middle" background="images/b_links.jpg" class="text3" ><a href="index.html">HOME</a> | <a href="#">ABOUT US</a> | <a href="buying.html">BUYING</a> | <a href="new.html">NEW HOMES</a> | <a href="selling.html">SELLING</a> | <a href="renting.html">RENTING</a> | <a href="contacts.html">CONTACTS</a><br>
         Copyright © Your Company Name</td>
      <td>
       <img src="images/spacer.gif" width="1" height="63" alt=""></td>
     </tr>
     <tr>
      <td>
       <img src="images/spacer.gif" width="10" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="24" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="95" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="14" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="1" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="4" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="8" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="35" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="37" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="14" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="27" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="3" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="53" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="87" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="89" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="22" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="1" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="25" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="92" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="102" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="22" height="1" alt=""></td>
      <td>
       <img src="images/spacer.gif" width="10" height="1" alt=""></td>
      <td></td>
     </tr>
    </table>
    <!-- End ImageReady Slices -->
    </body>
    </center>
    </html>

     
     
  •  01-13-2009, 5:19 PM 47710 in reply to 47708

    Re: Problem adding html

    home page buying new homes selling renting contacts
    learn more
    price per month Consetetur pscing elitr, sed diam nonumy eirmod Erat, sed diam
    Dolores et ea consetetur sadi pscing elit consetetur pscing elitr, sed diam nonumy eirmod Dolores et ea consetetur sadi pscing elit consetetur pscing elitr more...
    to
    location
    Consetetur pscing elitr, sed diam
    Dolores et ea consetetur sadi pscing elit consetetur pscing elitr more...
    min. bedrooms property type
    Consetetur pscing elitr, sed diam nonumy
    eirmod Erat, sed diam Dolores et ea
    consetetur sadi pscing elit consetetur
    pscing elitr, sed diam nonumy eirmod
    Dolores et ea consetetur sadi pscing elit
    consetetur pscing elitr lorem ipsum sed
    availability furnished
    submit
    Consetetur pscing elitr, sed diam
    Dolores et ea consetetur sadi pscing elit consetetur pscing elitr more...
    go
    HOME | ABOUT US | BUYING | NEW HOMES | SELLING | RENTING | CONTACTS
    Copyright © Your Company Name
  •  01-15-2009, 9:29 AM 47773 in reply to 47710

    Re: Problem adding html

    Is there some sort of support for Members?  I wrote the post 2 days ago and still nothing.  As you can see the html I posted here works fine.  In my system, when I hit the save button: all the code is erased.
  •  01-15-2009, 11:40 AM 47791 in reply to 47708

    Re: Problem adding html

    Please set the following property to true then try again:
     

    Editor.EditCompleteDocument Property

    Specify whether a complete HTML document is being edited.

     


    Example Code

    <?php
             $editor=new CuteEditor();
             $editor->ID="Editor1";
             $editor->Text="Type here";
             $editor->FilesPath="CuteEditor_Files";
             $editor->EditCompleteDocument=true;
             $editor->Draw();
             $editor=null; 

             //use $_POST["Editor1"]to catch the data
    ?>

     

    Remarks

    If false, the editor will only process content inside the page body i.e. all content inside of the <body>...</body> tags of a page. If true, the editor will process content outside the page body and preserve header tags (e.g. <head>...</head>, <title>...</title>, etc.).


    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

View as RSS news feed in XML