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

Re: [ydn-javascript] Help Please: POST problem

Expand Messages
  • tolga firatoglu
    Thanks but it still doesn t work. I commented that with an hope to work.
    Message 1 of 5 , Apr 1, 2009
      Thanks but it still doesn't work. 
      I commented that with an hope to work. 

      On Wed, Apr 1, 2009 at 7:21 PM, Dav Glass <davglass@...> wrote:

      Uncomment this line:
      //myEditor.saveHTML();

      --
      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 Wed, Apr 1, 2009 at 8:33 AM, tolga firatoglu
      <tolgafiratoglu@...> wrote:
      > Hi there,
      >
      > I send the data of the textarea with the following code, but content value
      > submits the
      > initial value, not the changed one. It's critically urgent in my work flow
      > now, please help
      > me if you know urgently.
      > saveb: the .<input type="button" to submit the form.
      > Thanks!
      >
      > (function() {
      >    var Dom = YAHOO.util.Dom,
      >        Event = YAHOO.util.Event;
      >
      >    var myConfig = {
      >        height: '300px',
      >        width: '600px',
      >        dompath: true,
      >        focusAtStart: true
      >    };
      >
      >    YAHOO.log('Create the Editor..', 'info', 'example');
      >    var myEditor = new YAHOO.widget.Editor('content', myConfig);
      >    myEditor._defaultToolbar.buttonType = 'basic';
      >    myEditor.render();
      >
      >    //Inside an event handler after the Editor is rendered
      > YAHOO.util.Event.on('saveb', 'click', function() {
      >    //Put the HTML back into the text area
      >    //myEditor.saveHTML();
      >
      >    //The var html will now have the contents of the textarea
      >    var content = myEditor.get('content').value;
      > });
      >
      > })();
      >


    • Dav Glass
      If you are not doing any form validation, then simply add handleSubmit: true to the Editor config. If you are, you need to call saveHTML, then remove the
      Message 2 of 5 , Apr 1, 2009
        If you are not doing any form validation, then simply add
        handleSubmit: true to the Editor config.

        If you are, you need to call saveHTML, then remove the listener, then
        submit the form.

        --
        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 Wed, Apr 1, 2009 at 9:25 AM, tolga firatoglu
        <tolgafiratoglu@...> wrote:
        > Thanks but it still doesn't work.
        >
        > I commented that with an hope to work.
        >
        > On Wed, Apr 1, 2009 at 7:21 PM, Dav Glass <davglass@...> wrote:
        >>
        >> Uncomment this line:
        >> //myEditor.saveHTML();
        >>
        >> --
        >> 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 Wed, Apr 1, 2009 at 8:33 AM, tolga firatoglu
        >> <tolgafiratoglu@...> wrote:
        >> > Hi there,
        >> >
        >> > I send the data of the textarea with the following code, but content
        >> > value
        >> > submits the
        >> > initial value, not the changed one. It's critically urgent in my work
        >> > flow
        >> > now, please help
        >> > me if you know urgently.
        >> > saveb: the .<input type="button" to submit the form.
        >> > Thanks!
        >> >
        >> > (function() {
        >> >    var Dom = YAHOO.util.Dom,
        >> >        Event = YAHOO.util.Event;
        >> >
        >> >    var myConfig = {
        >> >        height: '300px',
        >> >        width: '600px',
        >> >        dompath: true,
        >> >        focusAtStart: true
        >> >    };
        >> >
        >> >    YAHOO.log('Create the Editor..', 'info', 'example');
        >> >    var myEditor = new YAHOO.widget.Editor('content', myConfig);
        >> >    myEditor._defaultToolbar.buttonType = 'basic';
        >> >    myEditor.render();
        >> >
        >> >    //Inside an event handler after the Editor is rendered
        >> > YAHOO.util.Event.on('saveb', 'click', function() {
        >> >    //Put the HTML back into the text area
        >> >    //myEditor.saveHTML();
        >> >
        >> >    //The var html will now have the contents of the textarea
        >> >    var content = myEditor.get('content').value;
        >> > });
        >> >
        >> > })();
        >> >
        >
        >
      • tolga firatoglu
        God bless you! Thank you. The reason is simple, it already has a onclick= event in the button! Thanks!
        Message 3 of 5 , Apr 1, 2009
          God bless you! Thank you. 

          The reason is simple, it already has a onclick="" event in the button!

          Thanks!

          On Wed, Apr 1, 2009 at 7:35 PM, Dav Glass <davglass@...> wrote:

          If you are not doing any form validation, then simply add
          handleSubmit: true to the Editor config.

          If you are, you need to call saveHTML, then remove the listener, then
          submit the form.



          --
          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 Wed, Apr 1, 2009 at 9:25 AM, tolga firatoglu

          <tolgafiratoglu@...> wrote:
          > Thanks but it still doesn't work.
          >
          > I commented that with an hope to work.
          >
          > On Wed, Apr 1, 2009 at 7:21 PM, Dav Glass <davglass@...> wrote:
          >>
          >> Uncomment this line:
          >> //myEditor.saveHTML();
          >>
          >> --
          >> 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 Wed, Apr 1, 2009 at 8:33 AM, tolga firatoglu
          >> <tolgafiratoglu@...> wrote:
          >> > Hi there,
          >> >
          >> > I send the data of the textarea with the following code, but content
          >> > value
          >> > submits the
          >> > initial value, not the changed one. It's critically urgent in my work
          >> > flow
          >> > now, please help
          >> > me if you know urgently.
          >> > saveb: the .<input type="button" to submit the form.
          >> > Thanks!
          >> >
          >> > (function() {
          >> >    var Dom = YAHOO.util.Dom,
          >> >        Event = YAHOO.util.Event;
          >> >
          >> >    var myConfig = {
          >> >        height: '300px',
          >> >        width: '600px',
          >> >        dompath: true,
          >> >        focusAtStart: true
          >> >    };
          >> >
          >> >    YAHOO.log('Create the Editor..', 'info', 'example');
          >> >    var myEditor = new YAHOO.widget.Editor('content', myConfig);
          >> >    myEditor._defaultToolbar.buttonType = 'basic';
          >> >    myEditor.render();
          >> >
          >> >    //Inside an event handler after the Editor is rendered
          >> > YAHOO.util.Event.on('saveb', 'click', function() {
          >> >    //Put the HTML back into the text area
          >> >    //myEditor.saveHTML();
          >> >
          >> >    //The var html will now have the contents of the textarea
          >> >    var content = myEditor.get('content').value;
          >> > });
          >> >
          >> > })();
          >> >
          >
          >


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