<div class="gmail_extra">Update: solved!<br><br>This certainly this was more a ckeditor question, but anyway,<br>just in case someone had a similar problem:<br><br>the right way to update the textarea using javascript is <br>
<br><i>CKEDITOR.instances.UpdateContent.insertText('newer content')</i><br><br><br><div class="gmail_quote">On Mon, Nov 12, 2012 at 4:49 PM, Hugo Escobar <span dir="ltr"><<a href="mailto:hescobar@afslc.com" target="_blank">hescobar@afslc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi there:<br><br>I been implementing a testing environment for custom code based on selenium webdriver.<br>
<br>Testing environment: CentOS 6.3, Apache, MySQL, Firefox.<br>
<br>So far, I've been successful in running a set of test cases, the only<br>
problem I have is when I try to update the textarea (create, or reply<br>ticket). The js script executes showing no errors, etc but the content<br>never changes. My assumption is that the ckeditor is not updating <br>its content when a value has been assigned to the textarea element.<br>
<br>I show below a couple of the js snippets of my unsuccessful attempts:<br><br>=-=-=- <br>document.getElementsByName('UpdateContent')[0].value='Testing ticket reply.'<br><br>=-=-=-=<br><pre>function UpdateFields() {<br>
for (instance in CKEDITOR.instances) {<br> CKEDITOR.instance.setData('asdfasdfasdf');<br> // CKEDITOR.instances[instance].setData('asdfasdf');<br> }<br>}</pre><br>Any help will highly appreciated!<span><font color="#888888"><br clear="all">
<br>-- <br>Hugo Escobar<br><br><br><img title="AFS_logo.png" alt="AFS_logo.png" src="cid:ii_12ddc99660bf2d8d" height="35" width="171"><br><br>Follow us on Facebook and Linked-In<br clear="all"><br><a href="http://www.facebook.com/pages/Miami-FL/ASSOCIATION-FINANCIAL/64952991864" target="_blank"><img title="facebook-24x24.png" alt="facebook-24x24.png" src="cid:ii_12ddc9e6256d137a"></a> <a href="http://www.linkedin.com/companies/1006276" target="_blank"><img title="linkedin-24x24.png" alt="linkedin-24x24.png" src="cid:ii_12ddc9cb29a3a5d5"></a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Hugo Escobar<br><br><br><img title="AFS_logo.png" alt="AFS_logo.png" src="cid:ii_12ddc99660bf2d8d" height="35" width="171"><br><br>Follow us on Facebook and Linked-In<br clear="all">
<br><a href="http://www.facebook.com/pages/Miami-FL/ASSOCIATION-FINANCIAL/64952991864" target="_blank"><img title="facebook-24x24.png" alt="facebook-24x24.png" src="cid:ii_12ddc9e6256d137a"></a> <a href="http://www.linkedin.com/companies/1006276" target="_blank"><img title="linkedin-24x24.png" alt="linkedin-24x24.png" src="cid:ii_12ddc9cb29a3a5d5"></a><br>
<br>
</div>