Very strange problem

Last post 08-20-2004, 4:00 PM by ahenriksen. 7 replies.
Sort Posts: Previous Next
  •  08-20-2004, 1:58 PM 1574

    Very strange problem

    I have a Dell PowerEdge 1750 Server running Windows 2000 Server and the latest service packs. My problem is this. I have successfully gotten the form to work on my ASP page, but it will only work one time and then not post any data. For example, I enter text in the CuteEditor form and click Submit. My data goes through successfully to the database. I use the same exact form again, enter data and click submit. No data is passed to the database. The only way I've found to get the CuteEditor working again is to reboot the server. Restarting IIS alone does not fix the problem. Any help will be greatly appreciated.

     
    Thanks,
    Adam Henriksen
  •  08-20-2004, 2:09 PM 1575 in reply to 1574

    Re: Very strange problem

     

    If you didn't use the save button, please check your submit button and make sure that you implement the onfocus event as followings:

     

    <input type="submit" value="Update" onfocus="save(Editor1)">


    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

  •  08-20-2004, 2:14 PM 1576 in reply to 1575

    Re: Very strange problem

    I do have the onFocus="save(Editor1)" in my code. I've tried it both ways using the save button and with my submit button.
  •  08-20-2004, 2:42 PM 1577 in reply to 1576

    Re: Very strange problem

  •  08-20-2004, 3:14 PM 1578 in reply to 1577

    Re: Very strange problem

    Here is my code:

     

    <%@ LANGUAGE=VBScript %>
    <!-- #include file="include_CuteEditor.asp" -->
    <%
    If Request.Form("save") = "yes" Then
     Set edit = Server.CreateObject("ADODB.Recordset")
     edit.Open "tTable", strDB, adOpenKeyset, adLockPessimistic

     edit.AddNew
     edit("Content") = Request.Form("Editor1_HTMLContent")
     edit.Update

     edit.Close
     Set edit = nothing
    End If
    %>
    <html>
    <head>
    <title>Test</title>
    </head>
    <body>

    <form name="form" method="post" action="Employment_Add.asp">
    <input type="hidden" name="save" value="yes">
    <%
    Dim strContent

    strContent = Request.Form("Editor1_HTMLContent")

    Dim editor
    Set editor = New CuteEditor

    editor.ID = "Editor1"
    editor.Text = strContent
    editor.FilesPath = "CuteEditor_Files"
    editor.ImageGalleryPath = "../uploads"
    editor.DocumentPath= "../uploads"
    editor.FlashPath= "../uploads"
    editor.AllowUpload = "true"
    editor.ShowLogo = "false"

    editor.Template = "G_Start,Save,Print,Separator,Cut,Copy,Paste,PasteText,PasteWord,Delete,Separator,Undo,Redo," & _
     "Separator,InsertTable,AddRow,DeleteRow,AddColumn,DeleteColumn,Separator,AddCell,DeleteCell,MergeCell,SplitCell,Separator,EditRow,EditCell,G_End,Break," & _
     "G_Start,ToggleBorder,AbsolutePosition,G_End,G_Start,Separator,Char,G_End," & _
     "G_Start,Separator,ImageGallery,DownloadableFiles,Separator,G_End," & _
     "G_Start,Bold,Italic,Underline,G_End," & _
     "G_Start,Separator,JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone,Separator,FontColor,HighLight,G_End," & _
     "G_Start,Separator,InsertOrderedList,InsertUnorderedList,Separator,Indent,Outdent,G_End," & _
     "G_Start,Separator,Subscript,Superscript,Strikethrough,Separator,Hr,Link,UnLink,Separator,RemoveFormat,SelectAll,SelectNone,CleanupCode,G_End,Break," & _
     "G_Start,paragraphDropDown,fontDropDown,sizeDropDown,G_End"

    editor.ParagraphsList = "Normal,Heading 1,Heading 2,Heading 3,Formatted"
    editor.FontFacesList = "Arial,Verdana"
    editor.FontSizesList = "1,2,3,4,5"
    editor.StyleSheetPath = "StylesEditor.css"
    editor.Width = 482
    editor.Height = 200
    editor.Draw()
    %>
    </form>

    </body>
    </html>

  •  08-20-2004, 3:34 PM 1579 in reply to 1578

    Re: Very strange problem

    Here is something interesting. If I set editor.Text = "Something" and save the form the default data gets sent to the database, but if I change the text to "Something Else" prior to clicking save and then click save "Something" is still posted to the database. I have tried this on 3 different computers at two different locations and get the same result.
  •  08-20-2004, 3:49 PM 1580 in reply to 1579

    Re: Very strange problem

    ahenriksen,

    Please rename your hidden field name to save1 (not save).

    <input type="hidden" name="save1" value="yes">

    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

  •  08-20-2004, 4:00 PM 1581 in reply to 1580

    Re: Very strange problem

    Fixed!! Thanks for your help!!
View as RSS news feed in XML