Saving Content with Safari

  •  03-30-2006, 9:47 PM

    Saving Content with Safari

    The editor works great with IE, but unfortunately the one user I have to make happy uses Safari on the Mac.  I implemented CE with my own Update and Add buttons to update/add the content to a db.  The form fields outside the editor make it to the db but not the content for the editor.  Any ideas?
     
    Thanks for your help.
     
    Neal
     
    Here's the important parts of my code:
     
    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->
    <%
    Dim Content, src
    Dim MessageField 
    If Request.Form.Count > 0 Then
     src = Request.Form("SUBMIT1")
     If src = "Update" Then
      Content.Find("ID=" & Request.Form("ID"))
      Content("PAGE_NAME") = Request.Form("PAGE_NAME")  
      Content("CONTENT") = Request.Form("Editor1")  
      UpdateTheRow Content("PAGE_NAME"), Content("CONTENT"), Content("ID")
     ElseIf src = "Add" Then
      Content("PAGE_NAME") = Request.Form("PAGE_NAME")  
      Content("CONTENT") = Request.Form("Editor1")  
      InsertTheRow Content("PAGE_NAME"), Content("CONTENT")
     End If
    End If
    %>
    <form name="TheForm" action="<%=request.servervariables("SCRIPT_NAME")%>" method="post" ID="Form1">
      <%
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "Editor1"
       editor.Text = MessageField
       editor.FilesPath = "CuteEditor_Files"
       editor.EditorBodyStyle = "font:normal 12px arial;"
       editor.EditorWysiwygModeCss = "asp.css"
       editor.AutoConfigure = "simple"
       editor.Draw()
      %>
    <INPUT TYPE="submit" NAME="SUBMIT1" VALUE="Update" onfocus="save(Editor1)">
    <INPUT TYPE="submit" NAME="SUBMIT1" VALUE="Add" onfocus="save(Editor1)">
View Complete Thread