Urgent: Trouble in getting editor's contents

  •  02-14-2007, 10:48 AM

    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
View Complete Thread