Menu

Passing the data to another PHP file

Help
Anonymous
2004-03-25
2004-04-05
  • Anonymous

    Anonymous - 2004-03-25

    I've got the editor up and running. How do I pass data to other forms. I have a submit button on a data entry page and it sends over to a preview page. I've tried using the 'id=' and adding a 'name=' to the control but the data in the editor never gets passed over!

     
    • lhelper

      lhelper - 2004-04-05

      the following is my implementation:

      first, add the following into aiEditor.htc:
      ......
          <public:method name="save" internalname="c_save" />
          <public:method name="getContent" internalname="c_get_content" />
      </public:component>
      ......
      ......
      /* the custom method invoked by the extra aiEdirot */
      function c_get_content() {
          return mode == 'html' ? aiEdit.innerHTML : aiEdit.innerText;
      }
      ......

      now, you can get the very content in the editor via:

      aiEditor.getContent()

      from your own page where the editor embeded.

      good luck!

       

Log in to post a comment.

MongoDB Logo MongoDB