Dynamic loading of content via javascript

Last post 11-01-2006, 4:19 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  11-01-2006, 4:00 PM 23951

    Dynamic loading of content via javascript

    I'm wondering if i can use javascript to set the content of the cute editor.  for example:
     
    <input type="text" name="test" id="test" value="">
     
    produces an empty input field.  i can use javascript to then fill it:
     
    document.getElementById('test').value="i love lamp";
     
    and the input field now has the "i love lamp" text inside it.
     
    we were using the ASP Edit tool and that had two textareas... one was the <input type="text" name="Editor1_HTMLContent" value="blah blah blah">  and that "blah blah blah" was the default content.  The other was a div, named "Editor1_editbox".  I see you can set the original text using cute editor by doing editor.text="blah blah blah" editor.draw().  however, i want to use javascript to reset that value after the editor has been drawn.  in ASP Edit, i had to use javascript to set the value of the Editor1_editbox, not the Editor1_HTMLContent.  I just want to confirm that i can do this with Cute Editor by calling document.getElementById('Editor1_sandbox').innerHTML="new message";
     
    Thanks!
     - Lindsay
  •  11-01-2006, 4:19 PM 23952 in reply to 23951

    Re: Dynamic loading of content via javascript

    lbklatzkin,
     
    This example shows you how to set HTML code to editor:

    http://cutesoft.net/asp/JavaScript-API.asp
     
    The source code of this example can be found in the download package.
     
     

    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

View as RSS news feed in XML