After certain lengt of text in editor, form cannot be submited.

Last post 08-28-2008, 2:07 PM by Pete W.. 16 replies.
Sort Posts: Previous Next
  •  03-15-2004, 3:54 AM 554

    After certain lengt of text in editor, form cannot be submited.

    Hi,

     

    I'm currently facing a problem where after a certain length of text is inputed into the editor.....once I press the submit button,

    the form cannot be submited, it just does nothing there.

     

    But if only a few text is key in / cut and paste into the editor, my form can be submited...

     

    I'm abit lost...can someone help me!

  •  03-15-2004, 5:34 AM 556 in reply to 554

    Re: After certain lengt of text in editor, form cannot be submited.

    Yo please help!!!....it's kinda urgent!!!!....

     

  •  03-15-2004, 9:08 AM 563 in reply to 556

    Re: After certain lengt of text in editor, form cannot be submited.

    Patrick,

     

    CuteEditor doesn't any length limitation.

     

    Have you tried your text on our online demo?


    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

  •  03-15-2004, 9:37 PM 565 in reply to 563

    Re: After certain lengt of text in editor, form cannot be submited.

    The online demo works!...but I was pressing the "save" button and not a submit button. If I test with a submit button, it can't work if I put it to much text. No kidding! Can u try it with a submit button?

     

    My code is straightforward:

     

    [CODE SAMPLE]

    Dim editor Set editor = New ASPEdit 'Create a new editor class object editor.ID = "Editor1" 'Set the ID of this editor class editor.Text = FBody 'Set the initial HTML value of editor control editor.FilesPath = "ASPEdit_Files" editor.ImageGalleryPath = "/Uploads" editor.MaxImageSize = 50 editor.AutoConfigure = "Simple" editor.DisableItemList = "Save,ImageGallery,Help" editor.StyleDropDownMenuNames = temp_styledropdownMenuNames editor.StyleDropDownMenuList = temp_styledropdownMenuList editor.CodeSnippetDropDownMenuNames = temp_snippetDropDownMenuNames editor.CodeSnippetDropDownMenuList = temp_snippetDropDownMenuList editor.ImagesDropDownMenuNames = temp_imagesDropDownMenuNames editor.ImagesDropDownMenuList = temp_imagesDropDownMenuList editor.LinksDropDownMenuNames = temp_linksDropDownMenuNames editor.LinksDropDownMenuList = temp_linksDropDownMenuList editor.StyleSheetPath = "Royalblue.css" editor.ShowLogo=False editor.Width = 549 editor.Height = 300

     

    <  form   >

    < tr >

     < td width="100%" >

    <% editor.draw() %>

    < /td >

    < /tr >

    <  input type="submit" value=" Save " name="B3" class="button" onfocus="save(Editor1)" >

    <   /form   >

     

    [END CODE SAMPLE ]

     

    Please help!..

  •  03-17-2004, 6:10 AM 574 in reply to 565

    Re: After certain lengt of text in editor, form cannot be submited.

    Anyone, have u all face a problem like this before?

    Adam, please help to verify my problem.....

  •  03-19-2004, 4:29 PM 587 in reply to 574

    Re: After certain lengt of text in editor, form cannot be submited.

    ?
  •  03-20-2004, 9:44 AM 590 in reply to 587

    Re: After certain lengt of text in editor, form cannot be submited.

  •  03-22-2004, 9:38 AM 593 in reply to 590

    Re: After certain lengt of text in editor, form cannot be submited.

    If I take out the form tag...how am I going to redirect the page to e.g....target.asp??

    Besides, I need to capture other input types within the <form> , </form>.

     

  •  03-22-2004, 2:43 PM 594 in reply to 593

    Re: After certain lengt of text in editor, form cannot be submited.

    patrick,

     

    I am a little confused.

     

    Can you explain what you are trying to do? Are you trying to pass the hidden field value to other pages?


    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

  •  03-23-2004, 5:31 AM 595 in reply to 594

    Re: After certain lengt of text in editor, form cannot be submited.

     , okay, I'll explain further.

     

    I'm integrating the editor into my form. With-in this form I have the rich text editor and other fields, e.g. name text box, email address text box

    that I need to capture to be inputted into a database.

    Thus I need to include "editor.draw" in a <form> </form> tag so that I am able to capture the other inputed values once the user

    press the "submit" button.

     

     

  •  03-23-2004, 4:03 PM 596 in reply to 595

    Re: After certain lengt of text in editor, form cannot be submited.

     patrick,

     

    You can't capture the values by request.form by putting the <form> tag and <input> tags into the editor html view. 

     

    You can achieve that using the following code:

     

    <body>

         <FORM id="Form1" name="theForm" action="target.asp" method="post">

               'Below are the other fields

               <input name="field1" type="text" maxlength="50" id="field1" size="10" />

               <input name="field2" type="text" maxlength="50" id="field2" size="10" />

               <input name="field3" type="text" maxlength="50" id="field3" size="10" />

               <input name="field4" type="text" maxlength="50" id="field4" size="10" />

               

                'Below is the CuteEditor         

              <%

                   'Create a new editor class object

                   Dim editor

                   Set editor = New CuteEditor

                   'Set the ID of this editor class

                   editor.ID = "Editor1"

                   'Set the initial HTML value of editor control

                   editor.Text = content

                   editor.Draw()

              %>

              <INPUT id="Submit1" onfocus="save(Editor1)" type="submit" value="Update" name="Submit1">

             <BR>

             <BR>

    </form>

    </body>


    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

  •  03-24-2004, 7:03 AM 598 in reply to 596

    Re: After certain lengt of text in editor, form cannot be submited.

    :) , thanks for the code. That is actually what I coded in my application. The PROBLEM is, once u copy and paste certain length of

    text into the editor, you can't submit the form.........

     

    Please refer to the email I send to you last saturday for the URL to test it out yourself.

    Sorry for the confusion.

  •  03-24-2004, 7:48 PM 602 in reply to 598

    Re: After certain lengt of text in editor, form cannot be submited.

    Patrick - In the page you post to are you using Request.Form("Editor1_HTMLContent")? It's not intuitive, because you would think it would be Request.Form("Editor1"). Does this help?

     

    Cheers, Kris.

  •  03-24-2004, 9:15 PM 603 in reply to 602

    Re: After certain lengt of text in editor, form cannot be submited.

    krisryden , thanks for you input. 

     

    In the target page I did code  Request.Form("Editor1_HTMLContent").

     

    But this has nothing to do with the target page. Please read carefully about my issue.

     

    AGAIN, as simple as can be.....the PROBLEM IS:

     

    I can't submit the form once I copy paste too much text into the editor. This has to do with the source page problem, not target page problem.

  •  03-24-2004, 9:47 PM 604 in reply to 603

    Re: After certain lengt of text in editor, form cannot be submited.

    Patrick - How much text are we talking about? 5,000 characters? 20,000 characters? More? I have tested 50,000 characters with no problems. Here is my code if it helps:

     

    <SCRIPT language="JavaScript1.2">

    function submitForm() {
     if (validateForm()) {
      document.forms[0].submit() ;
       }
    }

    function validateForm() {
    return true;
    }
    </SCRIPT>

    <!-- #include file="inc/page_header.inc" -->

    <Form Name="FrontPage_Form1" Action="Inv_Mkt_Comment_Add_Process.asp" Method=POST>
    <TABLE width=100% height=100% cellpadding=2 cellspacing=0>
     <TR>
      <TD valign=top>

      <TABLE cellpadding=2 cellspacing=0 border=0> 
       <tr>
         <td valign=top class="ms-formbody"><b>Add Market Commentary</b></td>
       <TR>
      </TABLE>
     
      <TABLE cellpadding=2 cellspacing=0 border=0>
       <TR>  
        <TD class="ms-toolbar" nowrap>
            <table cellpadding=1 cellspacing=0 border=0>
            <tr>
               <td class="ms-toolbar" nowrap> <a class="ms-toolbar" href="javascript:submitForm();" onfocus="save(Editor1)" target="_self"> <img src="images/saveitem.gif" alt="Save" border=0 width=16 height=16> </a> </td> <td nowrap> <a class="ms-toolbar" href="javascript:submitForm();" onfocus="save(Editor1)" target="_self">
                   <LocID ID="L_NewFormSaveClose">Save and Close</LocID>
               </a> </td>
            </tr>
            </table>
        </TD>
        <TD class=ms-separator>|</td>
        <TD class="ms-toolbar">
            <table cellpadding=1 cellspacing=0 border=0>
            <tr>
                <td colspan=2 nowrap>
                    <a class="ms-toolbar" href="javascript: history.back();" target="_self">
                           <LocID ID="L_NewFormGoBack">Cancel</LocID>
                    </a>
                </td>
            </tr>
            </table>
        </TD>    
       </TR>
      </TABLE>

      <table width=100% border=0 cellpadding=0 cellspacing=2>
      <tr>
       <td class="ms-sectionline" colspan=3 height=1><img border=0 width=1 height=1 src="images/blank.gif"></td>
      </tr>
      </table>

    <TABLE border=0 cellpadding=2>
    <tr>
      <TH valign=middle class="ms-formlabel">Year:<font color=red> *</font></TH>
      <TD class="ms-formbody"><select size="1" name="nYear">
         <%
     For i=Year(Now)-8 to Year(Now)+1
              %>
              <option <% If cInt(nYear)=i Then Response.Write "SELECTED" End If %> value="<%=i%>"><%=i%></option>
              <%
     Next
     %>
            </select></TD>
    </tr>
    <tr>
      <TH valign=middle class="ms-formlabel">Quarter:<font color=red> *</font></TH>
      <TD class="ms-formbody"><select size="1" name="nQuarter">
         <%
     For i=1 to 4
              %>
              <option <% If cInt(nQuarter)=i Then Response.Write "SELECTED" End If %> value="<%=i%>">Q<%=i%></option>
              <%
     Next
     %>
            </select></TD>
    </tr>
    <TR><TH valign=top class="ms-formlabel">Commentary:</TH>
      <TD class="ms-formbody">
    <%
     Dim editor
     Set editor = New CuteEditor 'Create a new editor class object
     editor.ID = "Editor1" 'Set the ID of this editor class
     editor.Text = strNotes 'Set the initial HTML value of editor control
     editor.FilesPath = "CuteEditor/CuteEditor_Files"
     editor.ImageGalleryPath = "/Uploads"
     editor.MaxImageSize = 50
     editor.HelpUrl = "http://yahoo.com"
     editor.AutoConfigure = "enableall"
     editor.DisableItemList = "Save"
     editor.StyleDropDownMenuNames = temp_styledropdownMenuNames
     editor.StyleDropDownMenuList = temp_styledropdownMenuList
     editor.CodeSnippetDropDownMenuNames = temp_snippetDropDownMenuNames
     editor.CodeSnippetDropDownMenuList = temp_snippetDropDownMenuList
     editor.ImagesDropDownMenuNames = temp_imagesDropDownMenuNames
     editor.ImagesDropDownMenuList = temp_imagesDropDownMenuList
     editor.LinksDropDownMenuNames = temp_linksDropDownMenuNames
     editor.LinksDropDownMenuList = temp_linksDropDownMenuList
     'editor.Template= "Bold,Italic,Underline"
     'editor.StyleSheetPath = "/CuteEditor/grey.css"
     editor.Width = 550
     editor.Height = 300
     editor.Draw()
    %>
      </TD>
    </TR>
    <tr>
      <TD valign=middle class="ms-formlabel" colspan="2"><input type="checkbox" name="bPublished" value="ON"> Check here to Publish this commentary.</TD>
    </tr>
    </table>

    </form>

  •  03-28-2004, 7:28 AM 607 in reply to 604

    Re: After certain lengt of text in editor, form cannot be submited.

    :) .....ladies and gentlemen...after some stupid playing around with my code......

    The problem lies with in "GET" or "POST".

     

    If I use  " <form name="Edit" method="GET" action="target.asp" onsubmit="return checkform()">"

     

    The form can only be submitted with certain length of text because the "GET" cache is limited ( until how much I dunno).

    I was doing "GET" for some asp coding purpose to get "query string"....but for now...I just have to find another alternative..

     

    So, it'll be safer to use " <form name="Edit" method=" POST " action="target.asp" onsubmit="return checkform()">"

     

    Sorry, and thank you all for yer help! . :)

  •  08-28-2008, 2:07 PM 43350 in reply to 604

    Re: After certain lengt of text in editor, form cannot be submited.

    The default settings for IIS is to process 200k ..
View as RSS news feed in XML