Re: the editor doesn't seem to pass its content through POST

  •  09-28-2006, 1:32 AM

    Re: the editor doesn't seem to pass its content through POST

    Hi all

    Here is the ASP-file I use with CuteEditor. The CuteEditor save button is disabled and a page submit button is used.

    <%@ Language=VBScript %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
      <!--#include file = "../../../_UpInclude/external/CuteEditor_Files/include_CuteEditor.asp" -->
    </head>

    <body>

    <form name="__UpForm" id="__UpForm" enctype="multipart/form-data" method=POST>
      <script language="JavaScript">
    function SubmitForm()
    {
      window.document.__UpForm.action = "__UpDataPump.asp?rq_strIdStack=-1&rq_lAppId=255&rq_lTargetId=2953&rq_lSenderId=2951&rq_lMode=4&rq_lLevelCount=-1&rq_strTarget=00&rq_bDelete=0&rq_bBack=0&rq_lClosePopUp=0&rq_lReloadOpener=0&rq_bIsPopup=0";
      document.forms[0].submit();

      return;
    }
      </script>
        <input type=hidden value="" name="fr_strMailSendTo" ID="Hidden1">
      <table width="98%" align="left" cellpadding=0 cellspacing=0 border=0 ID="Table1">
        <tr>
          <td>&nbsp;</td>
          <td valign="top">
            <table width="100%" border=0 cellspacing=2 cellpadding=2 ID="Table2">
              <tr>
                <td width="10%"><img src="../../../images/10pxtrans.gif" width=150 height=1 border=0></td>
                <td width="50%"><img src="../../../images/10pxtrans.gif" width=10  height=1 border=0></td>
                <td width="40%"><img src="../../../images/10pxtrans.gif" width=10  height=1 border=0></td>
              </tr>

                        <input value="-1" type="hidden" id="lid" name="lid">
                        <input value="<%= Now() %>" type="hidden" id="dtedit" name="dtedit">

                    <tr>
                <td class="h1" colspan="3">
                 CuteEditor Test
                  <hr>    <br>
                </td>
              </tr>
              <tr>
                <th valign="top">
                  Name
                </th>

                <td nowrap valign="top">
                  <input name="xname" value="" />
                </td>

                <td class="OnlineHelp">
                </td>
              </tr>

                    <tr>
                        <th valign="top">
                            Textbox
                        </th>

                        <td colspan="2" valign="top">
    <%
            Set editor = New CuteEditor
            editor.ID = "xtextbox"
            editor.Text = ""
            editor.FilesPath = "../../../_UpInclude/external/CuteEditor_Files"
            editor.MediaGalleryPath = "../../images"
            editor.FlashGalleryPath = "../../images"
            editor.TemplateGalleryPath = "../../images"
            editor.FilesGalleryPath = "../../images"
            editor.ImageGalleryPath = "../../images"
            editor.Draw()
    %>
                            </td>
                        </tr>

                <tr>
                  <td>
                  </td>
                  <td colspan="2" nowrap align="center">
                    <input onClick="SubmitForm();" value="Save" type="button" id="Save" name="Save">
                  </td>
                </tr>
            </table>
          </td>
        </tr>
      </table>
    </form>


    </script>

    </body>
    </html>


View Complete Thread