PDA

View Full Version : updatemanager



juantascon
27 Mar 2007, 12:16 PM
hi i have this troubleshooting:

----js------
...
var mgr = Ext.get("editarea").getUpdateManager();
mgr.setDefaultUrl("cgi/content.cgi");
mgr.refresh(Ext.get("editarea").repaint);
...
---------------

------html-------
...
<textarea id=\"editarea\"></textarea>
...
------------------

-------content.cgi-----------
#! /usr/bin/env ruby

require "json"
require "cgi"

cgi = CGI.new()
cgi.out do
"hello"
end
------------------------------

when i exec the code it doesn't repaint the textarea (and doesn't show the text "hello")

how ever if i update the code in a div with a text like <textarea id='textarea1'> hello </textarea>
it does works and succesfully paints the text "hello"


PD: sorry about my english