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

Re: Submit Problem on RTE

Expand Messages
  • Dale Burrell
    H All Again, My second problem of the day is handling the submit. I am using the rich text editor inside an asp.net wizard control and when I set handleSubmit
    Message 1 of 6 , Mar 2, 2008
    • 0 Attachment
      H All Again,

      My second problem of the day is handling the submit.

      I am using the rich text editor inside an asp.net wizard control and when I set handleSubmit on the rich text editor it causes a problem with the previous/next buttons. Basically the first click is ignored and it takes a second click to actually submit the page.

      Does anyone have any ideas? Solutions?

      Thanks,

      Dale

      Send instant messages to your online friends http://au.messenger.yahoo.com
    • Dav Glass
      Can you post an example link so I can see the issue? Thanks Dav Dav Glass dav.glass@yahoo.com blog.davglass.com + Windows: n. - The most successful computer
      Message 2 of 6 , Mar 3, 2008
      • 0 Attachment
        Can you post an example link so I can see the issue?

        Thanks
        Dav
         
        Dav Glass
        dav.glass@...
        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 +


        ----- Original Message ----
        From: Dale Burrell <dale_burrell@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Sunday, March 2, 2008 9:09:32 PM
        Subject: [ydn-javascript] Re: Submit Problem on RTE

        H All Again,

        My second problem of the day is handling the submit.

        I am using the rich text editor inside an asp.net wizard control and when I set handleSubmit on the rich text editor it causes a problem with the previous/next buttons. Basically the first click is ignored and it takes a second click to actually submit the page.

        Does anyone have any ideas? Solutions?

        Thanks,

        Dale

        Send instant messages to your online friends http://au.messenger.yahoo.com

      • Dale Burrell
        Try this: http://amanziadmin.creative-dreaming.com/test.aspx I ve tried attaching my own event handler and it doesn t have this behaviour. Thanks, ... From:
        Message 3 of 6 , Mar 4, 2008
        • 0 Attachment
          Try this: http://amanziadmin.creative-dreaming.com/test.aspx

          I've tried attaching my own event handler and it doesn't have this behaviour.

          Thanks,

          ----- Original Message ----
          From: Dav Glass <dav.glass@...>
          To: ydn-javascript@yahoogroups.com
          Sent: Tuesday, 4 March, 2008 3:40:59 AM
          Subject: Re: [ydn-javascript] Re: Submit Problem on RTE

          Can you post an example link so I can see the issue?

          Thanks
          Dav
           
          Dav Glass
          dav.glass@...
          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 +


          ----- Original Message ----
          From: Dale Burrell <dale_burrell@...>
          To: ydn-javascript@yahoogroups.com
          Sent: Sunday, March 2, 2008 9:09:32 PM
          Subject: [ydn-javascript] Re: Submit Problem on RTE

          H All Again,

          My second problem of the day is handling the submit.

          I am using the rich text editor inside an asp.net wizard control and when I set handleSubmit on the rich text editor it causes a problem with the previous/next buttons. Basically the first click is ignored and it takes a second click to actually submit the page.

          Does anyone have any ideas? Solutions?

          Thanks,

          Dale

          Send instant messages to your online friends http://au.messenger.yahoo.com



          Send instant messages to your online friends http://au.messenger.yahoo.com
        • evinograd
          My problem is similar - if there is no formatting to the text, submit works great. If I do any kind of formatting, submit doesn t work. Please help. Here is
          Message 4 of 6 , Mar 19, 2008
          • 0 Attachment
            My problem is similar - if there is no formatting to the text,
            submit works great. If I do any kind of formatting, submit doesn't
            work. Please help.
            Here is the code -
            <%@language=VBScript%>
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
            4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
            <html>
            <head>
            <meta http-equiv="content-type" content="text/html; charset=utf-
            8">
            <title>Editor </title>

            <link rel="stylesheet" type="text/css"
            href="http://developer.yahoo.com/yui/build/fonts/fonts-min.css?
            _yuiversion=2.5.0" />
            <link rel="stylesheet" type="text/css"
            href="http://developer.yahoo.com/yui/build/menu/assets/skins/sam/menu
            .css?_yuiversion=2.5.0" />
            <link rel="stylesheet" type="text/css"
            href="http://developer.yahoo.com/yui/build/button/assets/skins/sam/bu
            tton.css?_yuiversion=2.5.0" />
            <link rel="stylesheet" type="text/css"
            href="http://developer.yahoo.com/yui/build/editor/assets/skins/sam/si
            mpleeditor.css?_yuiversion=2.5.0" />
            <script type="text/javascript"
            src="http://developer.yahoo.com/yui/build/yahoo-dom-event/yahoo-dom-
            event.js?_yuiversion=2.5.0"></script>
            <script type="text/javascript"
            src="http://developer.yahoo.com/yui/build/element/element-beta.js?
            _yuiversion=2.5.0"></script>
            <script type="text/javascript"
            src="http://developer.yahoo.com/yui/build/container/container_core.js
            ?_yuiversion=2.5.0"></script>
            <script type="text/javascript"
            src="http://developer.yahoo.com/yui/build/menu/menu.js?
            _yuiversion=2.5.0"></script>
            <script type="text/javascript"
            src="http://developer.yahoo.com/yui/build/button/button.js?
            _yuiversion=2.5.0"></script>
            <script type="text/javascript"
            src="http://developer.yahoo.com/yui/build/editor/editor-beta-min.js?
            _yuiversion=2.5.0"></script>
            </head>

            <body class=" yui-skin-sam">

            <h1>Editor</h1>

            <form name=form1 method="post" enctype="text" action="save_db.asp"
            id="form1">
            <textarea id="editor" name="editor" rows="20" cols="75">
            </textarea>
            <input type="hidden" name="field" value="<%=trim(Request.QueryString
            ("id"))%>">
            <button id="save">Save Editor Content and Return</button>
            </form>

            <script>

            (function() {
            var Dom = YAHOO.util.Dom,
            Event = YAHOO.util.Event;

            var myConfig = {
            height: '300px',
            width: '530px',
            dompath: true,
            focusAtStart: true
            };
             
            var myEditor = new YAHOO.widget.Editor('editor', myConfig);
            myEditor._defaultToolbar.buttonType = 'advanced';
            myEditor.render();

            button = new YAHOO.widget.Button('save');

            button.on('click', function(){
            myEditor.saveHTML();
            Dom.get('editor').innerHTML = myEditor.get
            ('textarea').value;
            document.form1.editor.value = encodeURIComponent
            (myEditor.get('textarea').value);
            alert(document.form1.editor.value);
            document.form1.submit();
            });


            })();
            </script>
            Thank you!



            --- In ydn-javascript@yahoogroups.com, Dale Burrell
            <dale_burrell@...> wrote:
            >
            > Try this: http://amanziadmin.creative-dreaming.com/test.aspx
            >
            > I've tried attaching my own event handler and it doesn't have this
            behaviour.
            >
            > Thanks,
            >
            > ----- Original Message ----
            > From: Dav Glass <dav.glass@...>
            > To: ydn-javascript@yahoogroups.com
            > Sent: Tuesday, 4 March, 2008 3:40:59 AM
            > Subject: Re: [ydn-javascript] Re: Submit Problem on RTE
            >
            > Can you post an example link so I can see the issue?
            >
            > Thanks
            > Dav
            >
            > Dav Glass
            > dav.glass@...
            > 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 +
            >
            > ----- Original Message ----
            > From: Dale Burrell <dale_burrell@...>
            > To: ydn-javascript@yahoogroups.com
            > Sent: Sunday, March 2, 2008 9:09:32 PM
            > Subject: [ydn-javascript] Re: Submit Problem on RTE
            >
            > H All Again,
            >
            > My second problem of the day is handling the submit.
            >
            > I am using the rich text editor inside an asp.net wizard control
            and when I set handleSubmit on the rich text editor it causes a
            problem with the previous/next buttons. Basically the first click is
            ignored and it takes a second click to actually submit the page.
            >
            > Does anyone have any ideas? Solutions?
            >
            > Thanks,
            >
            > Dale
            >
            >
            >
            > Send instant messages to your online friends
            http://au.messenger.yahoo.com
            >
            >
            >
            >
            >
            >
            >
            >
            >
            > Send instant messages to your online friends
            http://au.messenger.yahoo.com
            >
          • Dwight Rodriques
            ... You could try adding handleSubmit: true to the editor s config object declaration in which case you would make your submit button a simple input field of
            Message 5 of 6 , Mar 19, 2008
            • 0 Attachment
              evinograd wrote:

              My problem is similar - if there is no formatting to the text,
              submit works great. If I do any kind of formatting, submit doesn't
              work. Please help.
              Here is the code -
              <%@language= VBScript% >
              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
              4.01//EN" "http://www.w3. org/TR/html4/ strict.dtd">
              <html>
              <head>
              <meta http-equiv=" content-type" content="text/ html; charset=utf-
              8">
              <title>Editor </title>

              <link rel="stylesheet" type="text/css"
              href="http://developer. yahoo.com/ yui/build/ fonts/fonts- min.css?
              _yuiversion= 2.5.0" />
              <link rel="stylesheet" type="text/css"
              href="http://developer. yahoo.com/ yui/build/ menu/assets/ skins/sam/ menu
              .css?_yuiversion= 2.5.0" />
              <link rel="stylesheet" type="text/css"
              href="http://developer. yahoo.com/ yui/build/ button/assets/ skins/sam/ bu
              tton.css?_yuiversio n=2.5.0" />
              <link rel="stylesheet" type="text/css"
              href="http://developer. yahoo.com/ yui/build/ editor/assets/ skins/sam/ si
              mpleeditor.css? _yuiversion= 2.5.0" />
              <script type="text/javascri pt"
              src="http://developer. yahoo.com/ yui/build/ yahoo-dom- event/yahoo- dom-
              event.js?_yuiversio n=2.5.0"> </script>
              <script type="text/javascri pt"
              src="http://developer. yahoo.com/ yui/build/ element/element- beta.js?
              _yuiversion= 2.5.0"></ script>
              <script type="text/javascri pt"
              src="http://developer. yahoo.com/ yui/build/ container/ container_ core.js
              ?_yuiversion= 2.5.0"></ script>
              <script type="text/javascri pt"
              src="http://developer. yahoo.com/ yui/build/ menu/menu. js?
              _yuiversion= 2.5.0"></ script>
              <script type="text/javascri pt"
              src="http://developer. yahoo.com/ yui/build/ button/button. js?
              _yuiversion= 2.5.0"></ script>
              <script type="text/javascri pt"
              src="http://developer. yahoo.com/ yui/build/ editor/editor- beta-min. js?
              _yuiversion= 2.5.0"></ script>
              </head>

              <body class=" yui-skin-sam" >

              <h1>Editor</ h1>

              <form name=form1 method="post" enctype="text" action="save_ db.asp"
              id="form1">
              <textarea id="editor" name="editor" rows="20" cols="75">
              </textarea>
              <input type="hidden" name="field" value="<%=trim( Request.QueryStr ing
              ("id"))%>">
              <button id="save">Save Editor Content and Return</button>
              </form>

              <script>

              (function() {
              var Dom = YAHOO.util.Dom,
              Event = YAHOO.util.Event;

              var myConfig = {
              height: '300px',
              width: '530px',
              dompath: true,
              focusAtStart: true
              };
               
              var myEditor = new YAHOO.widget. Editor('editor' , myConfig);
              myEditor._defaultTo olbar.buttonType = 'advanced';
              myEditor.render( );

              button = new YAHOO.widget. Button('save' );

              button.on('click' , function(){
              myEditor.saveHTML( );
              Dom.get('editor' ).innerHTML = myEditor.get
              ('textarea') .value;
              document.form1. editor.value = encodeURIComponent
              (myEditor.get( 'textarea' ).value);
              alert(document. form1.editor. value);
              document.form1. submit();
              });

              })();
              </script>
              Thank you!

              --- In ydn-javascript@ yahoogroups. com, Dale Burrell
              <dale_burrell@ ...> wrote:
              >
              > Try this: http://amanziadmin. creative- dreaming. com/test. aspx
              >
              > I've tried attaching my own event handler and it doesn't have this
              behaviour.
              >
              > Thanks,
              >
              > ----- Original Message ----
              > From: Dav Glass <dav.glass@. ..>
              > To: ydn-javascript@ yahoogroups. com
              > Sent: Tuesday, 4 March, 2008 3:40:59 AM
              > Subject: Re: [ydn-javascript] Re: Submit Problem on RTE
              >
              > Can you post an example link so I can see the issue?
              >
              > Thanks
              > Dav
              >
              > Dav Glass
              > dav.glass@.. .
              > 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 +
              >
              > ----- Original Message ----
              > From: Dale Burrell <dale_burrell@ ...>
              > To: ydn-javascript@ yahoogroups. com
              > Sent: Sunday, March 2, 2008 9:09:32 PM
              > Subject: [ydn-javascript] Re: Submit Problem on RTE
              >
              > H All Again,
              >
              > My second problem of the day is handling the submit.
              >
              > I am using the rich text editor inside an asp.net wizard control
              and when I set handleSubmit on the rich text editor it causes a
              problem with the previous/next buttons. Basically the first click is
              ignored and it takes a second click to actually submit the page.
              >
              > Does anyone have any ideas? Solutions?
              >
              > Thanks,
              >
              > Dale
              >
              >
              >
              > Send instant messages to your online friends
              http://au.messenger .yahoo.com
              >
              >
              >
              >
              >
              >
              >
              >
              >
              > Send instant messages to your online friends
              http://au.messenger .yahoo.com
              >

              You could try adding 'handleSubmit: true' to the editor's config object declaration in which case you would make your submit button a simple input field of type 'submit' and omit the ' button.on' event handler. see code below:

              (function() {
              var Dom = YAHOO.util.Dom,
              Event = YAHOO.util.Event;

              var myConfig = {
              height: '300px',
              width: '530px',
              dompath: true,
              focusAtStart: true,
              handleSubmit: true
              };

              hope i was able to help (-:
            • Dav Glass
              Dwight -- These lines: Dom.get( editor ).innerHTML = myEditor.get( textarea ) .value; document.form1. editor.value = encodeURIComponent(myEditor.get(
              Message 6 of 6 , Mar 20, 2008
              • 0 Attachment
                Dwight --

                These lines:
                Dom.get('editor' ).innerHTML = myEditor.get('textarea') .value;
                document.form1. editor.value = encodeURIComponent(myEditor.get( 'textarea' ).value);
                 
                Do the same thing, you only need this line:
                myEditor.saveHTML(); //This parses and puts the content of the editor back into the textarea.

                I'm far from a Windows/ASP guy, but IIS might be freaking out on this:
                enctype="text"

                Since your description says that you get the text, but not the formatting, try removing that..

                Can you point me to a test page so I can see it?

                Thanks
                Dav


                Dav Glass
                dav.glass@...
                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 +


                ----- Original Message ----
                From: Dwight Rodriques <drodriques@...>
                To: ydn-javascript@yahoogroups.com
                Sent: Wednesday, March 19, 2008 5:54:20 PM
                Subject: Re: [ydn-javascript] Re: Submit Problem on RTE

                evinograd wrote:

                My problem is similar - if there is no formatting to the text,
                submit works great. If I do any kind of formatting, submit doesn't
                work. Please help.
                Here is the code -
                <%@language= VBScript% >
                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
                4.01//EN" "http://www.w3. org/TR/html4/ strict.dtd">
                <html>
                <head>
                <meta http-equiv=" content-type" content="text/ html; charset=utf-
                8">
                <title>Editor </title>

                <link rel="stylesheet" type="text/css"
                href="http://developer. yahoo.com/ yui/build/ fonts/fonts- min.css?
                _yuiversion= 2.5.0" />
                <link rel="stylesheet" type="text/css"
                href="http://developer. yahoo.com/ yui/build/ menu/assets/ skins/sam/ menu
                .css?_yuiversion= 2.5.0" />
                <link rel="stylesheet" type="text/css"
                href="http://developer. yahoo.com/ yui/build/ button/assets/ skins/sam/ bu
                tton.css?_yuiversio n=2.5.0" />
                <link rel="stylesheet" type="text/css"
                href="http://developer. yahoo.com/ yui/build/ editor/assets/ skins/sam/ si
                mpleeditor.css? _yuiversion= 2.5.0" />
                <script type="text/javascri pt"
                src="http://developer. yahoo.com/ yui/build/ yahoo-dom- event/yahoo- dom-
                event.js?_yuiversio n=2.5.0"> </script>
                <script type="text/javascri pt"
                src="http://developer. yahoo.com/ yui/build/ element/element- beta.js?
                _yuiversion= 2.5.0"></ script>
                <script type="text/javascri pt"
                src="http://developer. yahoo.com/ yui/build/ container/ container_ core.js
                ?_yuiversion= 2.5.0"></ script>
                <script type="text/javascri pt"
                src="http://developer. yahoo.com/ yui/build/ menu/menu. js?
                _yuiversion= 2.5.0"></ script>
                <script type="text/javascri pt"
                src="http://developer. yahoo.com/ yui/build/ button/button. js?
                _yuiversion= 2.5.0"></ script>
                <script type="text/javascri pt"
                src="http://developer. yahoo.com/ yui/build/ editor/editor- beta-min. js?
                _yuiversion= 2.5.0"></ script>
                </head>

                <body class=" yui-skin-sam" >

                <h1>Editor</ h1>

                <form name=form1 method="post" enctype="text" action="save_ db.asp"
                id="form1">
                <textarea id="editor" name="editor" rows="20" cols="75">
                </textarea>
                <input type="hidden" name="field" value="<%=trim( Request.QueryStr ing
                ("id"))%>">
                <button id="save">Save Editor Content and Return</button>
                </form>

                <script>

                (function() {
                var Dom = YAHOO.util.Dom,
                Event = YAHOO.util.Event;

                var myConfig = {
                height: '300px',
                width: '530px',
                dompath: true,
                focusAtStart: true
                };
                 
                var myEditor = new YAHOO.widget. Editor('editor' , myConfig);
                myEditor._defaultTo olbar.buttonType = 'advanced';
                myEditor.render( );

                button = new YAHOO.widget. Button('save' );

                button.on('click' , function(){
                myEditor.saveHTML( );
                Dom.get('editor' ).innerHTML = myEditor.get
                ('textarea') .value;
                document.form1. editor.value = encodeURIComponent
                (myEditor.get( 'textarea' ).value);
                alert(document. form1.editor. value);
                document.form1. submit();
                });

                })();
                </script>
                Thank you!

                --- In ydn-javascript@ yahoogroups. com, Dale Burrell
                <dale_burrell@ ...> wrote:
                >
                > Try this: http://amanziadmin. creative- dreaming. com/test. aspx
                >
                > I've tried attaching my own event handler and it doesn't have this
                behaviour.
                >
                > Thanks,
                >
                > ----- Original Message ----
                > From: Dav Glass <dav.glass@. ..>
                > To: ydn-javascript@ yahoogroups. com
                > Sent: Tuesday, 4 March, 2008 3:40:59 AM
                > Subject: Re: [ydn-javascript] Re: Submit Problem on RTE
                >
                > Can you post an example link so I can see the issue?
                >
                > Thanks
                > Dav
                >
                > Dav Glass
                > dav.glass@.. .
                > 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 +
                >
                > ----- Original Message ----
                > From: Dale Burrell <dale_burrell@ ...>
                > To: ydn-javascript@ yahoogroups. com
                > Sent: Sunday, March 2, 2008 9:09:32 PM
                > Subject: [ydn-javascript] Re: Submit Problem on RTE
                >
                > H All Again,
                >
                > My second problem of the day is handling the submit.
                >
                > I am using the rich text editor inside an asp.net wizard control
                and when I set handleSubmit on the rich text editor it causes a
                problem with the previous/next buttons. Basically the first click is
                ignored and it takes a second click to actually submit the page.
                >
                > Does anyone have any ideas? Solutions?
                >
                > Thanks,
                >
                > Dale
                >
                >
                >
                > Send instant messages to your online friends
                http://au.messenger .yahoo.com
                >
                >
                >
                >
                >
                >
                >
                >
                >
                > Send instant messages to your online friends
                http://au.messenger .yahoo.com
                >

                You could try adding 'handleSubmit: true' to the editor's config object declaration in which case you would make your submit button a simple input field of type 'submit' and omit the ' button.on' event handler. see code below:

                (function() {
                var Dom = YAHOO.util.Dom,
                Event = YAHOO.util.Event;

                var myConfig = {
                height: '300px',
                width: '530px',
                dompath: true,
                focusAtStart: true,
                handleSubmit: true
                };

                hope i was able to help (-:

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