[ 2 posts ]

Tiago Flores

  • Username: zarpu
  • Joined: Sun May 29, 2011 10:44 am
  • Posts: 4
  • Offline
  • Profile

How to get value of yuitext editor by ajax (rosetta stone?

Post Posted: Sun Sep 11, 2011 2:54 am
+0-
Some time ago I asked how to get the value of the text editor by yui ajax and showed me this site:
http://www.jsrosettastone.com/
(rosetta stone)

So I tried to get the value so it does not work:
var body = YUI (). use ("test", function ()
{
test: function ()
{
return $ ("# editor.") get ('value');
}
});

"editor" is the id of my text area.
I can not understand the syntax, and the correct way to do this.
Help me, this is very important for my project.
Excuse me my English, not speaking native.

Alberto Santini

YUI Contributor

  • Offline
  • Profile
Tags:

Re: How to get value of yuitext editor by ajax (rosetta sto

Post Posted: Sun Sep 11, 2011 3:40 am
+0-
Hello Tiago.

Y.one("#foo").get("text");

A working example: http://jsfiddle.net/fHYEp/

Hope that helps,
IceBox

P.S.: An example with the textarea: http://jsfiddle.net/fHYEp/1/

A few references:

http://yuilibrary.com/yui/docs/node/
http://yuilibrary.com/yui/docs/event/basic-example.html
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum