Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] YUI simple text editor - not saving changes

Expand Messages
  • Dav Glass
    kktsixit -- Try adding the handleSubmit config option, by default the Editor doesn t try to submit it s changes, you have to ask it to ;) Dav -- Dav Glass
    Message 1 of 2 , Nov 27, 2008
    • 0 Attachment
      kktsixit --

      Try adding the handleSubmit config option, by default the Editor doesn't try to submit it's changes, you have to ask it to ;)

      Dav

      --
      Dav Glass
      davglass@...
      blog.davglass.com


      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
         without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
        McDonalds Certified Food Specialist is to fine cuisine  +


      On Thu, Nov 27, 2008 at 1:43 AM, kktsixit <ktsixit@...> wrote:

      Hi all,
      I'm using the YUI Simple Editor in my page. It's a page for updating data in website and the problem is that the changes I make to the text with the editor, are not saved. Actually the sql query that is submitted to the database contains the old text and not the changed updated text. It seems that changes on text are only visual.

      Has anybody faced the same problem with this script? Can you imagine what's the cause for this? Help me pls frown

      the html/php is:

      Code:
      <textarea id="text" name="text" rows="20" cols="75">
      <?php echo $row_show_new['text']; ?>
      </textarea>
      and the javascript code that creates editor is:
      Code:
      <script>
      (function() {
      var Dom = YAHOO.util.Dom,
      Event = YAHOO.util.Event;

      var myConfig = {
      height: '100px',
      width: '500px',
      dompath: true,
      focusAtStart: false
      };

      YAHOO.log('Create the Editor..', 'info', 'example');
      var myEditor = new YAHOO.widget.SimpleEditor('text', myConfig);
      myEditor.render();

      })();
      </script>

    Your message has been successfully submitted and would be delivered to recipients shortly.