Urgent: Trouble in getting editor's contents

Last post 02-14-2007, 12:17 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  02-14-2007, 10:48 AM 26705

    Urgent: Trouble in getting editor's contents

    Dear CuteSoft support Team,
     
    I am experiencing some issues when trying to get the editor's contents using my javascript....
     
    let say i initialize the editor on a page, and given it id htmlCode, for example;
     
    editor.ID = "htmlCode"
    editor.Text = ""
     
    then editor is showing up properly on the page... then let say i started typing something in the editor, just like right now i am typing in your this cute soft editor... after typing something i want to get the contents that whatever i have written in the editor, but i want to get it using javascript...
     
    for example;
     
    alert(document.getElementById('htmlCode').value);   (it displays nothing, this is the problem for me, i really need the editor's contents to get using javascript)
     
    however, i can get the contents using server side script using ASP when submit the page, for example;
     
    request.form("htmlCode") (it works fine)
     
    But i need the contents without submitting the form, i need the contents using javascript like;
     
    document.getElementById('htmlCode').value
     
    please suggest something, how can i get the contents i am writing to my editor using javascript...
     
    looking forward for your prompt response.
     
    regards,
     
    Nadir Ali Shah
  •  02-14-2007, 12:17 PM 26710 in reply to 26705

    Re: Urgent: Trouble in getting editor's contents

    Nadir,
     
     
    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