Instantiate Editor with pure JavaScript

Last post 10-17-2007, 11:39 AM by Bill Rishsew. 4 replies.
Sort Posts: Previous Next
  •  10-17-2007, 9:37 AM 34378

    Instantiate Editor with pure JavaScript

    I appologize if this is in the Forum or Documentation, I could find it. Have to move on.
     
    I want to be able to instantiate an editor using pure JavaScript.
    i.e.
       var anEditor = new CuteEditor()
       anEditor.whatever = something;
       etc...
     
    Something?
     
    If this is already on the Forum or in the Documentation, don't just tell me it is, point me to it please.

    Work Hard! Play Harder!!
  •  10-17-2007, 9:39 AM 34379 in reply to 34378

    Re: Instantiate Editor with pure JavaScript

    Editor.GetString Method

    This function returns what the Draw function used to write to the response buffer as a string.

     


    Example Code

          <%
               Dim editor, content
               Set editor = New CuteEditor
               editor.ID = "Editor1"
               editor.Text = "Hello World"

               'returns what the Draw function used to write to the response buffer as a string.
               content = editor.GetString()
               Response.Write content
          %>


    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

  •  10-17-2007, 9:59 AM 34380 in reply to 34379

    Re: Instantiate Editor with pure JavaScript

    Adam - Thanks
     
    I need a Pure JavaScript solution.
    The editor needs to be invoked at run time by user interaction.
    I don't know before hand if the editor will be wanted by the end user so ASP isn't an option.
     
    I'm currently combing through the CuteEditor_Files to see if I can take advantage of something or if I might write a custom piece.
    I really don't want to do any customization because of upgrade difficulties, besides the fact I'm feeling a bit lazy today.
     
    Is this clearer? I know things don't appear clear when texting back and forth.
     
    Thanks in advance.

    Work Hard! Play Harder!!
  •  10-17-2007, 10:44 AM 34388 in reply to 34380

    Re: Instantiate Editor with pure JavaScript

    wfrishse,
     
    This editor is not a pure JavsScript editor.
     
    It has to be created in the server side based on the security setting, property setting....

    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

  •  10-17-2007, 11:39 AM 34396 in reply to 34388

    Re: Instantiate Editor with pure JavaScript

    "This editor is not a pure JavsScript editor."
     
    You're kidding, right?
     
    The invocation process is ASP/VBScript, but the editor is pure client-side JavaScript.
    The ASP process simply probes, makes choices and assembles the client side code needed to present the editor to the web browser app. for display. This is great for pre run time descision making, but not for truly dynamic web apps. when descisions need to be made based on user input.
     
    I've already captured the resulting JavaScript and can present an instance of the editor w/o any reference to ASP files. Unfortunately the resulting code, when rendered human readable, is 758 lines.
     
    I'm of the opinion that the ability to invoke an instance of the Editor via pure JavaScript would be useful.
     
    I'll figure something out.
     
    Thanks.

    Work Hard! Play Harder!!
View as RSS news feed in XML