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

Re: Rich Text Editor, script problem in IE?

Expand Messages
  • Dan Berman
    http://dkberman.wolfnetfx.com/rte.html ... YAHOO.psRTE.myEditor.get( textarea ).value.replace(stripHTML1, ).replace(stripHTML2, ); ...
    Message 1 of 17 , Mar 31, 2008
    • 0 Attachment
      http://dkberman.wolfnetfx.com/rte.html

      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
      >
      > Can you post a link to the page with the error?
      > 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: Dan Berman <danberms@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Monday, March 31, 2008 5:47:57 PM
      > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
      >
      > Dav,
      >
      > I appreciate the example.
      > If I'm understand everything, then I think the handlesubmit can be
      > enabled.
      > I was calling the clearLinks through this:
      > <a href="javascript:clearLinks();">Clear Links</a>
      >
      > I tried to implement your example and I got the same error message in
      > IE, that a member is not found. Also, with the error code, the editor
      > is not re enabled.
      >
      > Am I missing something else? Your page did work in my browsers, so I
      > think I'm missing something, maybe a JS file?
      >
      > Here's the head
      > <link rel="stylesheet" type="text/css"
      > href="/scripts/yui/build/assets/skins/sam/skin.css">
      > <script src="/scripts/yui/build/utilities/utilities.js"></script>
      > <script src="/scripts/yui/build/container/container-min.js"></script>
      > <script src="/scripts/yui/build/menu/menu-min.js"></script>
      > <script src="/scripts/yui/build/button/button-min.js"></script>
      > <script src="/scripts/yui/build/editor/editor-beta-min.js"></script>
      >
      > <body marginwidth=12 marginheight=12 topmargin=12 leftmargin=12
      > bgcolor="#ffffff" class="yui-skin-sam">
      >
      > I also tried got rid of the namespace to simplify the code without luck.
      >
      > Anything else I can look at?
      >
      > Thanks.
      >
      > Dan
      > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
      > >
      > > Dan --
      > >
      > > This example removes the hrefs from the editor's document:
      > > http://blog.davglass.com/files/yui/editor54/
      > >
      > > The issue I see here, is that you have handleSubmit set to true,
      > when is the clearLinks function called?
      > > If it's called in the submit handler, you should not enable
      > handleSubmit if you want to do processing before you post the data..
      > >
      > > Does that help?
      > > 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: Dan Berman <danberms@>
      > > To: ydn-javascript@yahoogroups.com
      > > Sent: Monday, March 31, 2008 5:08:13 AM
      > > Subject: [ydn-javascript] Rich Text Editor, script problem in IE?
      > >
      > > I've been playing around, working out a problem. I was looking to
      > > remove on a click of a link all <a> links in the textarea. I've
      > > gotten my function "clearLinks" to work in Firefox and Safari without
      > > any problems.
      > > In at least IE 6, the script does not work(did not test 7 yet), it
      > > gives a generic "Member not found" error message.
      > >
      > > This is my code, any ideas why IE doesn't like it?
      > >
      > > Thank you.
      > >
      > > <script>
      > > YAHOO.namespace('psRTE');
      > >
      > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
      > > height: '300px',
      > > width: '500px',
      > > dompath: false,
      > > animate: true,
      > > handleSubmit: true
      > > });
      > >
      > > YAHOO.psRTE.myEditor.render();
      > >
      > > function clearLinks()
      > > {
      > > YAHOO.psRTE.myEditor.saveHTML();
      > > var stripHTML1 = /<a\s.*?>/g;
      > > var stripHTML2 = /<\/a>/g;
      > > YAHOO.psRTE.myEditor.get('textarea').value =
      > >
      >
      YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
      > >
      > >
      >
      YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
      > >
      > > }
      > > <script>
      > >
      > >
      > > ------------------------------------
      > >
      > > Yahoo! Groups Links
      > >
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
    • Dav Glass
      Dan -- Is editor the name of your Editor instance? Dav Dav Glass dav.glass@yahoo.com blog.davglass.com + Windows: n. - The most successful computer virus,
      Message 2 of 17 , Mar 31, 2008
      • 0 Attachment
        Dan --

        Is editor the name of your Editor instance?

        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: Dan Berman <danberms@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Monday, March 31, 2008 7:10:13 PM
        Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?

        I'll see what I can do.

        One additional thing that might help. The problem seems to be
        stemming from the
        editor.setEditorHTML(html);
        If I comment out the line, it does not give the error, so is this
        something with the contents of html?

        Dan


        --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
        >
        > Can you post a link to the page with the error?
        > 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: Dan Berman <danberms@...>
        > To: ydn-javascript@yahoogroups.com
        > Sent: Monday, March 31, 2008 5:47:57 PM
        > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
        >
        > Dav,
        >
        > I appreciate the example.
        > If I'm understand everything, then I think the handlesubmit can be
        > enabled.
        > I was calling the clearLinks through this:
        > <a href="javascript:clearLinks();">Clear Links</a>
        >
        > I tried to implement your example and I got the same error message in
        > IE, that a member is not found. Also, with the error code, the editor
        > is not re enabled.
        >
        > Am I missing something else? Your page did work in my browsers, so I
        > think I'm missing something, maybe a JS file?
        >
        > Here's the head
        > <link rel="stylesheet" type="text/css"
        > href="/scripts/yui/build/assets/skins/sam/skin.css">
        > <script src="/scripts/yui/build/utilities/utilities.js"></script>
        > <script src="/scripts/yui/build/container/container-min.js"></script>
        > <script src="/scripts/yui/build/menu/menu-min.js"></script>
        > <script src="/scripts/yui/build/button/button-min.js"></script>
        > <script src="/scripts/yui/build/editor/editor-beta-min.js"></script>
        >
        > <body marginwidth=12 marginheight=12 topmargin=12 leftmargin=12
        > bgcolor="#ffffff" class="yui-skin-sam">
        >
        > I also tried got rid of the namespace to simplify the code without luck.
        >
        > Anything else I can look at?
        >
        > Thanks.
        >
        > Dan
        > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
        > >
        > > Dan --
        > >
        > > This example removes the hrefs from the editor's document:
        > > http://blog.davglass.com/files/yui/editor54/
        > >
        > > The issue I see here, is that you have handleSubmit set to true,
        > when is the clearLinks function called?
        > > If it's called in the submit handler, you should not enable
        > handleSubmit if you want to do processing before you post the data..
        > >
        > > Does that help?
        > > 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: Dan Berman <danberms@>
        > > To: ydn-javascript@yahoogroups.com
        > > Sent: Monday, March 31, 2008 5:08:13 AM
        > > Subject: [ydn-javascript] Rich Text Editor, script problem in IE?
        > >
        > > I've been playing around, working out a problem. I was looking to
        > > remove on a click of a link all <a> links in the textarea. I've
        > > gotten my function "clearLinks" to work in Firefox and Safari without
        > > any problems.
        > > In at least IE 6, the script does not work(did not test 7 yet), it
        > > gives a generic "Member not found" error message.
        > >
        > > This is my code, any ideas why IE doesn't like it?
        > >
        > > Thank you.
        > >
        > > <script>
        > > YAHOO.namespace('psRTE');
        > >
        > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
        > > height: '300px',
        > > width: '500px',
        > > dompath: false,
        > > animate: true,
        > > handleSubmit: true
        > > });
        > >
        > > YAHOO.psRTE.myEditor.render();
        > >
        > > function clearLinks()
        > > {
        > > YAHOO.psRTE.myEditor.saveHTML();
        > > var stripHTML1 = /<a\s.*?>/g;
        > > var stripHTML2 = /<\/a>/g;
        > > YAHOO.psRTE.myEditor.get('textarea').value =
        > >
        >
        YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
        > >
        > >
        >
        YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
        > >
        > > }
        > > <script>
        > >
        > >
        > > ------------------------------------
        > >
        > > Yahoo! Groups Links
        > >
        >
        >
        >
        > ------------------------------------
        >
        > Yahoo! Groups Links
        >



        ------------------------------------

        Yahoo! Groups Links
      • Dan Berman
        it s created with this YAHOO.psRTE.myEditor = new YAHOO.widget.Editor( msgpost , { height: 300px , width: 500px , dompath: false, animate: true,
        Message 3 of 17 , Mar 31, 2008
        • 0 Attachment
          it's created with this
          YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
          height: '300px',
          width: '500px',
          dompath: false,
          animate: true,
          handleSubmit: true
          });

          and the actual command is YAHOO.psRTE.myEditor.setEditorHTML(html);
          I just cut it short for convenience. I've been consistent in the
          naming of the instance and it's calling functions.


          Dan

          --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
          >
          > Dan --
          >
          > Is editor the name of your Editor instance?
          >
          > 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: Dan Berman <danberms@...>
          > To: ydn-javascript@yahoogroups.com
          > Sent: Monday, March 31, 2008 7:10:13 PM
          > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
          >
          > I'll see what I can do.
          >
          > One additional thing that might help. The problem seems to be
          > stemming from the
          > editor.setEditorHTML(html);
          > If I comment out the line, it does not give the error, so is this
          > something with the contents of html?
          >
          > Dan
          >
          >
          > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
          > >
          > > Can you post a link to the page with the error?
          > > 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: Dan Berman <danberms@>
          > > To: ydn-javascript@yahoogroups.com
          > > Sent: Monday, March 31, 2008 5:47:57 PM
          > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
          > >
          > > Dav,
          > >
          > > I appreciate the example.
          > > If I'm understand everything, then I think the handlesubmit can be
          > > enabled.
          > > I was calling the clearLinks through this:
          > > <a href="javascript:clearLinks();">Clear Links</a>
          > >
          > > I tried to implement your example and I got the same error message in
          > > IE, that a member is not found. Also, with the error code, the editor
          > > is not re enabled.
          > >
          > > Am I missing something else? Your page did work in my browsers, so I
          > > think I'm missing something, maybe a JS file?
          > >
          > > Here's the head
          > > <link rel="stylesheet" type="text/css"
          > > href="/scripts/yui/build/assets/skins/sam/skin.css">
          > > <script src="/scripts/yui/build/utilities/utilities.js"></script>
          > > <script src="/scripts/yui/build/container/container-min.js"></script>
          > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
          > > <script src="/scripts/yui/build/button/button-min.js"></script>
          > > <script src="/scripts/yui/build/editor/editor-beta-min.js"></script>
          > >
          > > <body marginwidth=12 marginheight=12 topmargin=12 leftmargin=12
          > > bgcolor="#ffffff" class="yui-skin-sam">
          > >
          > > I also tried got rid of the namespace to simplify the code without
          luck.
          > >
          > > Anything else I can look at?
          > >
          > > Thanks.
          > >
          > > Dan
          > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
          > > >
          > > > Dan --
          > > >
          > > > This example removes the hrefs from the editor's document:
          > > > http://blog.davglass.com/files/yui/editor54/
          > > >
          > > > The issue I see here, is that you have handleSubmit set to true,
          > > when is the clearLinks function called?
          > > > If it's called in the submit handler, you should not enable
          > > handleSubmit if you want to do processing before you post the data..
          > > >
          > > > Does that help?
          > > > 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: Dan Berman <danberms@>
          > > > To: ydn-javascript@yahoogroups.com
          > > > Sent: Monday, March 31, 2008 5:08:13 AM
          > > > Subject: [ydn-javascript] Rich Text Editor, script problem in IE?
          > > >
          > > > I've been playing around, working out a problem. I was looking to
          > > > remove on a click of a link all <a> links in the textarea. I've
          > > > gotten my function "clearLinks" to work in Firefox and Safari
          without
          > > > any problems.
          > > > In at least IE 6, the script does not work(did not test 7 yet), it
          > > > gives a generic "Member not found" error message.
          > > >
          > > > This is my code, any ideas why IE doesn't like it?
          > > >
          > > > Thank you.
          > > >
          > > > <script>
          > > > YAHOO.namespace('psRTE');
          > > >
          > > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
          > > > height: '300px',
          > > > width: '500px',
          > > > dompath: false,
          > > > animate: true,
          > > > handleSubmit: true
          > > > });
          > > >
          > > > YAHOO.psRTE.myEditor.render();
          > > >
          > > > function clearLinks()
          > > > {
          > > > YAHOO.psRTE.myEditor.saveHTML();
          > > > var stripHTML1 = /<a\s.*?>/g;
          > > > var stripHTML2 = /<\/a>/g;
          > > > YAHOO.psRTE.myEditor.get('textarea').value =
          > > >
          > >
          >
          YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
          > > >
          > > >
          > >
          >
          YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
          > > >
          > > > }
          > > > <script>
          > > >
          > > >
          > > > ------------------------------------
          > > >
          > > > Yahoo! Groups Links
          > > >
          > >
          > >
          > >
          > > ------------------------------------
          > >
          > > Yahoo! Groups Links
          > >
          >
          >
          >
          > ------------------------------------
          >
          > Yahoo! Groups Links
          >
        • Dan Berman
          Any ideas on what is wrong. I ve got the page up here: http://dkberman.wolfnetfx.com/rte.html I ve tried to comment out the non essential script portions in
          Message 4 of 17 , Apr 2, 2008
          • 0 Attachment
            Any ideas on what is wrong. I've got the page up here:
            http://dkberman.wolfnetfx.com/rte.html

            I've tried to comment out the non essential script portions in case it
            was causing a conflict. I'm just not seeing what is wrong.

            The posted file does have your example with the button, and my
            function with the weblink.

            I also updated from 2.5.0 to 2.5.1 to see if it would be resolved.

            I saw some websites talking about the same error message and it was
            dealing with the use or missuse of global variables, which I'm not
            sure I'm using here.

            I'm just baffled and would love to figure it out why it doesn't work
            in IE but will all of the other browsers. Am I dealing with a bug
            that needs to be reported?

            Dan

            --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
            >
            > Dan --
            >
            > Is editor the name of your Editor instance?
            >
            > 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: Dan Berman <danberms@...>
            > To: ydn-javascript@yahoogroups.com
            > Sent: Monday, March 31, 2008 7:10:13 PM
            > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
            >
            > I'll see what I can do.
            >
            > One additional thing that might help. The problem seems to be
            > stemming from the
            > editor.setEditorHTML(html);
            > If I comment out the line, it does not give the error, so is this
            > something with the contents of html?
            >
            > Dan
            >
            >
            > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
            > >
            > > Can you post a link to the page with the error?
            > > 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: Dan Berman <danberms@>
            > > To: ydn-javascript@yahoogroups.com
            > > Sent: Monday, March 31, 2008 5:47:57 PM
            > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
            > >
            > > Dav,
            > >
            > > I appreciate the example.
            > > If I'm understand everything, then I think the handlesubmit can be
            > > enabled.
            > > I was calling the clearLinks through this:
            > > <a href="javascript:clearLinks();">Clear Links</a>
            > >
            > > I tried to implement your example and I got the same error message in
            > > IE, that a member is not found. Also, with the error code, the editor
            > > is not re enabled.
            > >
            > > Am I missing something else? Your page did work in my browsers, so I
            > > think I'm missing something, maybe a JS file?
            > >
            > > Here's the head
            > > <link rel="stylesheet" type="text/css"
            > > href="/scripts/yui/build/assets/skins/sam/skin.css">
            > > <script src="/scripts/yui/build/utilities/utilities.js"></script>
            > > <script src="/scripts/yui/build/container/container-min.js"></script>
            > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
            > > <script src="/scripts/yui/build/button/button-min.js"></script>
            > > <script src="/scripts/yui/build/editor/editor-beta-min.js"></script>
            > >
            > > <body marginwidth=12 marginheight=12 topmargin=12 leftmargin=12
            > > bgcolor="#ffffff" class="yui-skin-sam">
            > >
            > > I also tried got rid of the namespace to simplify the code without
            luck.
            > >
            > > Anything else I can look at?
            > >
            > > Thanks.
            > >
            > > Dan
            > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
            > > >
            > > > Dan --
            > > >
            > > > This example removes the hrefs from the editor's document:
            > > > http://blog.davglass.com/files/yui/editor54/
            > > >
            > > > The issue I see here, is that you have handleSubmit set to true,
            > > when is the clearLinks function called?
            > > > If it's called in the submit handler, you should not enable
            > > handleSubmit if you want to do processing before you post the data..
            > > >
            > > > Does that help?
            > > > 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: Dan Berman <danberms@>
            > > > To: ydn-javascript@yahoogroups.com
            > > > Sent: Monday, March 31, 2008 5:08:13 AM
            > > > Subject: [ydn-javascript] Rich Text Editor, script problem in IE?
            > > >
            > > > I've been playing around, working out a problem. I was looking to
            > > > remove on a click of a link all <a> links in the textarea. I've
            > > > gotten my function "clearLinks" to work in Firefox and Safari
            without
            > > > any problems.
            > > > In at least IE 6, the script does not work(did not test 7 yet), it
            > > > gives a generic "Member not found" error message.
            > > >
            > > > This is my code, any ideas why IE doesn't like it?
            > > >
            > > > Thank you.
            > > >
            > > > <script>
            > > > YAHOO.namespace('psRTE');
            > > >
            > > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
            > > > height: '300px',
            > > > width: '500px',
            > > > dompath: false,
            > > > animate: true,
            > > > handleSubmit: true
            > > > });
            > > >
            > > > YAHOO.psRTE.myEditor.render();
            > > >
            > > > function clearLinks()
            > > > {
            > > > YAHOO.psRTE.myEditor.saveHTML();
            > > > var stripHTML1 = /<a\s.*?>/g;
            > > > var stripHTML2 = /<\/a>/g;
            > > > YAHOO.psRTE.myEditor.get('textarea').value =
            > > >
            > >
            >
            YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
            > > >
            > > >
            > >
            >
            YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
            > > >
            > > > }
            > > > <script>
            > > >
            > > >
            > > > ------------------------------------
            > > >
            > > > Yahoo! Groups Links
            > > >
            > >
            > >
            > >
            > > ------------------------------------
            > >
            > > Yahoo! Groups Links
            > >
            >
            >
            >
            > ------------------------------------
            >
            > Yahoo! Groups Links
            >
          • Dav Glass
            Dan -- I don t think that it s a bug in Editor, I think you have a race condition going on with all the calls to get( textarea ).value; Try using my code
            Message 5 of 17 , Apr 2, 2008
            • 0 Attachment
              Dan --

              I don't think that it's a bug in Editor, I think you have a race condition going on with all the calls to get('textarea').value;

              Try using my code inside your function and see if that works better.

              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: Dan Berman <danberms@...>
              To: ydn-javascript@yahoogroups.com
              Sent: Wednesday, April 2, 2008 6:35:34 AM
              Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?

              Any ideas on what is wrong. I've got the page up here:
              http://dkberman.wolfnetfx.com/rte.html

              I've tried to comment out the non essential script portions in case it
              was causing a conflict. I'm just not seeing what is wrong.

              The posted file does have your example with the button, and my
              function with the weblink.

              I also updated from 2.5.0 to 2.5.1 to see if it would be resolved.

              I saw some websites talking about the same error message and it was
              dealing with the use or missuse of global variables, which I'm not
              sure I'm using here.

              I'm just baffled and would love to figure it out why it doesn't work
              in IE but will all of the other browsers. Am I dealing with a bug
              that needs to be reported?

              Dan

              --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
              >
              > Dan --
              >
              > Is editor the name of your Editor instance?
              >
              > 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: Dan Berman <danberms@...>
              > To: ydn-javascript@yahoogroups.com
              > Sent: Monday, March 31, 2008 7:10:13 PM
              > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
              >
              > I'll see what I can do.
              >
              > One additional thing that might help. The problem seems to be
              > stemming from the
              > editor.setEditorHTML(html);
              > If I comment out the line, it does not give the error, so is this
              > something with the contents of html?
              >
              > Dan
              >
              >
              > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
              > >
              > > Can you post a link to the page with the error?
              > > 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: Dan Berman <danberms@>
              > > To: ydn-javascript@yahoogroups.com
              > > Sent: Monday, March 31, 2008 5:47:57 PM
              > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
              > >
              > > Dav,
              > >
              > > I appreciate the example.
              > > If I'm understand everything, then I think the handlesubmit can be
              > > enabled.
              > > I was calling the clearLinks through this:
              > > <a href="javascript:clearLinks();">Clear Links</a>
              > >
              > > I tried to implement your example and I got the same error message in
              > > IE, that a member is not found. Also, with the error code, the editor
              > > is not re enabled.
              > >
              > > Am I missing something else? Your page did work in my browsers, so I
              > > think I'm missing something, maybe a JS file?
              > >
              > > Here's the head
              > > <link rel="stylesheet" type="text/css"
              > > href="/scripts/yui/build/assets/skins/sam/skin.css">
              > > <script src="/scripts/yui/build/utilities/utilities.js"></script>
              > > <script src="/scripts/yui/build/container/container-min.js"></script>
              > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
              > > <script src="/scripts/yui/build/button/button-min.js"></script>
              > > <script src="/scripts/yui/build/editor/editor-beta-min.js"></script>
              > >
              > > <body marginwidth=12 marginheight=12 topmargin=12 leftmargin=12
              > > bgcolor="#ffffff" class="yui-skin-sam">
              > >
              > > I also tried got rid of the namespace to simplify the code without
              luck.
              > >
              > > Anything else I can look at?
              > >
              > > Thanks.
              > >
              > > Dan
              > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
              > > >
              > > > Dan --
              > > >
              > > > This example removes the hrefs from the editor's document:
              > > > http://blog.davglass.com/files/yui/editor54/
              > > >
              > > > The issue I see here, is that you have handleSubmit set to true,
              > > when is the clearLinks function called?
              > > > If it's called in the submit handler, you should not enable
              > > handleSubmit if you want to do processing before you post the data..
              > > >
              > > > Does that help?
              > > > 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: Dan Berman <danberms@>
              > > > To: ydn-javascript@yahoogroups.com
              > > > Sent: Monday, March 31, 2008 5:08:13 AM
              > > > Subject: [ydn-javascript] Rich Text Editor, script problem in IE?
              > > >
              > > > I've been playing around, working out a problem. I was looking to
              > > > remove on a click of a link all <a> links in the textarea. I've
              > > > gotten my function "clearLinks" to work in Firefox and Safari
              without
              > > > any problems.
              > > > In at least IE 6, the script does not work(did not test 7 yet), it
              > > > gives a generic "Member not found" error message.
              > > >
              > > > This is my code, any ideas why IE doesn't like it?
              > > >
              > > > Thank you.
              > > >
              > > > <script>
              > > > YAHOO.namespace('psRTE');
              > > >
              > > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
              > > > height: '300px',
              > > > width: '500px',
              > > > dompath: false,
              > > > animate: true,
              > > > handleSubmit: true
              > > > });
              > > >
              > > > YAHOO.psRTE.myEditor.render();
              > > >
              > > > function clearLinks()
              > > > {
              > > > YAHOO.psRTE.myEditor.saveHTML();
              > > > var stripHTML1 = /<a\s.*?>/g;
              > > > var stripHTML2 = /<\/a>/g;
              > > > YAHOO.psRTE.myEditor.get('textarea').value =
              > > >
              > >
              >
              YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
              > > >
              > > >
              > >
              >
              YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
              > > >
              > > > }
              > > > <script>
              > > >
              > > >
              > > > ------------------------------------
              > > >
              > > > Yahoo! Groups Links
              > > >
              > >
              > >
              > >
              > > ------------------------------------
              > >
              > > Yahoo! Groups Links
              > >
              >
              >
              >
              > ------------------------------------
              >
              > Yahoo! Groups Links
              >



              ------------------------------------

              Yahoo! Groups Links
            • Dan Berman
              Dav, Thanks for your help. Your code is currently on the page, if you click on the the button and not the link. It doesn t matter which code I use, it does the
              Message 6 of 17 , Apr 2, 2008
              • 0 Attachment
                Dav,

                Thanks for your help.

                Your code is currently on the page, if you click on the the button and
                not the link.

                It doesn't matter which code I use, it does the exact same thing
                "Member not found", line 15, character 5626, code 0.

                Both the trimmed down page and my original page is showing the same
                error, line, character, and code, so I'm leaning towards that it's in
                one of the js files for the editor.

                How can I track it down?

                Dan

                --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
                >
                > Dan --
                >
                > I don't think that it's a bug in Editor, I think you have a race
                condition going on with all the calls to get('textarea').value;
                >
                > Try using my code inside your function and see if that works better.
                >
                > 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: Dan Berman <danberms@...>
                > To: ydn-javascript@yahoogroups.com
                > Sent: Wednesday, April 2, 2008 6:35:34 AM
                > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
                >
                > Any ideas on what is wrong. I've got the page up here:
                > http://dkberman.wolfnetfx.com/rte.html
                >
                > I've tried to comment out the non essential script portions in case it
                > was causing a conflict. I'm just not seeing what is wrong.
                >
                > The posted file does have your example with the button, and my
                > function with the weblink.
                >
                > I also updated from 2.5.0 to 2.5.1 to see if it would be resolved.
                >
                > I saw some websites talking about the same error message and it was
                > dealing with the use or missuse of global variables, which I'm not
                > sure I'm using here.
                >
                > I'm just baffled and would love to figure it out why it doesn't work
                > in IE but will all of the other browsers. Am I dealing with a bug
                > that needs to be reported?
                >
                > Dan
                >
                > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                > >
                > > Dan --
                > >
                > > Is editor the name of your Editor instance?
                > >
                > > 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: Dan Berman <danberms@>
                > > To: ydn-javascript@yahoogroups.com
                > > Sent: Monday, March 31, 2008 7:10:13 PM
                > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
                > >
                > > I'll see what I can do.
                > >
                > > One additional thing that might help. The problem seems to be
                > > stemming from the
                > > editor.setEditorHTML(html);
                > > If I comment out the line, it does not give the error, so is this
                > > something with the contents of html?
                > >
                > > Dan
                > >
                > >
                > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                > > >
                > > > Can you post a link to the page with the error?
                > > > 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: Dan Berman <danberms@>
                > > > To: ydn-javascript@yahoogroups.com
                > > > Sent: Monday, March 31, 2008 5:47:57 PM
                > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                in IE?
                > > >
                > > > Dav,
                > > >
                > > > I appreciate the example.
                > > > If I'm understand everything, then I think the handlesubmit can be
                > > > enabled.
                > > > I was calling the clearLinks through this:
                > > > <a href="javascript:clearLinks();">Clear Links</a>
                > > >
                > > > I tried to implement your example and I got the same error
                message in
                > > > IE, that a member is not found. Also, with the error code, the
                editor
                > > > is not re enabled.
                > > >
                > > > Am I missing something else? Your page did work in my
                browsers, so I
                > > > think I'm missing something, maybe a JS file?
                > > >
                > > > Here's the head
                > > > <link rel="stylesheet" type="text/css"
                > > > href="/scripts/yui/build/assets/skins/sam/skin.css">
                > > > <script src="/scripts/yui/build/utilities/utilities.js"></script>
                > > > <script
                src="/scripts/yui/build/container/container-min.js"></script>
                > > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
                > > > <script src="/scripts/yui/build/button/button-min.js"></script>
                > > > <script src="/scripts/yui/build/editor/editor-beta-min.js"></script>
                > > >
                > > > <body marginwidth=12 marginheight=12 topmargin=12 leftmargin=12
                > > > bgcolor="#ffffff" class="yui-skin-sam">
                > > >
                > > > I also tried got rid of the namespace to simplify the code without
                > luck.
                > > >
                > > > Anything else I can look at?
                > > >
                > > > Thanks.
                > > >
                > > > Dan
                > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                > > > >
                > > > > Dan --
                > > > >
                > > > > This example removes the hrefs from the editor's document:
                > > > > http://blog.davglass.com/files/yui/editor54/
                > > > >
                > > > > The issue I see here, is that you have handleSubmit set to true,
                > > > when is the clearLinks function called?
                > > > > If it's called in the submit handler, you should not enable
                > > > handleSubmit if you want to do processing before you post the data..
                > > > >
                > > > > Does that help?
                > > > > 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: Dan Berman <danberms@>
                > > > > To: ydn-javascript@yahoogroups.com
                > > > > Sent: Monday, March 31, 2008 5:08:13 AM
                > > > > Subject: [ydn-javascript] Rich Text Editor, script problem in IE?
                > > > >
                > > > > I've been playing around, working out a problem. I was looking to
                > > > > remove on a click of a link all <a> links in the textarea. I've
                > > > > gotten my function "clearLinks" to work in Firefox and Safari
                > without
                > > > > any problems.
                > > > > In at least IE 6, the script does not work(did not test 7 yet), it
                > > > > gives a generic "Member not found" error message.
                > > > >
                > > > > This is my code, any ideas why IE doesn't like it?
                > > > >
                > > > > Thank you.
                > > > >
                > > > > <script>
                > > > > YAHOO.namespace('psRTE');
                > > > >
                > > > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
                > > > > height: '300px',
                > > > > width: '500px',
                > > > > dompath: false,
                > > > > animate: true,
                > > > > handleSubmit: true
                > > > > });
                > > > >
                > > > > YAHOO.psRTE.myEditor.render();
                > > > >
                > > > > function clearLinks()
                > > > > {
                > > > > YAHOO.psRTE.myEditor.saveHTML();
                > > > > var stripHTML1 = /<a\s.*?>/g;
                > > > > var stripHTML2 = /<\/a>/g;
                > > > > YAHOO.psRTE.myEditor.get('textarea').value =
                > > > >
                > > >
                > >
                >
                YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
                > > > >
                > > > >
                > > >
                > >
                >
                YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
                > > > >
                > > > > }
                > > > > <script>
                > > > >
                > > > >
                > > > > ------------------------------------
                > > > >
                > > > > Yahoo! Groups Links
                > > > >
                > > >
                > > >
                > > >
                > > > ------------------------------------
                > > >
                > > > Yahoo! Groups Links
                > > >
                > >
                > >
                > >
                > > ------------------------------------
                > >
                > > Yahoo! Groups Links
                > >
                >
                >
                >
                > ------------------------------------
                >
                > Yahoo! Groups Links
                >
              • Dav Glass
                Dan -- Can you try including the debug versions of the files and see which file is throwing the error? Dav Dav Glass dav.glass@yahoo.com blog.davglass.com +
                Message 7 of 17 , Apr 2, 2008
                • 0 Attachment
                  Dan --

                  Can you try including the debug versions of the files and see which file is throwing the error?

                  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: Dan Berman <danberms@...>
                  To: ydn-javascript@yahoogroups.com
                  Sent: Wednesday, April 2, 2008 9:28:37 AM
                  Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?

                  Dav,

                  Thanks for your help.

                  Your code is currently on the page, if you click on the the button and
                  not the link.

                  It doesn't matter which code I use, it does the exact same thing
                  "Member not found", line 15, character 5626, code 0.

                  Both the trimmed down page and my original page is showing the same
                  error, line, character, and code, so I'm leaning towards that it's in
                  one of the js files for the editor.

                  How can I track it down?

                  Dan

                  --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
                  >
                  > Dan --
                  >
                  > I don't think that it's a bug in Editor, I think you have a race
                  condition going on with all the calls to get('textarea').value;
                  >
                  > Try using my code inside your function and see if that works better.
                  >
                  > 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: Dan Berman <danberms@...>
                  > To: ydn-javascript@yahoogroups.com
                  > Sent: Wednesday, April 2, 2008 6:35:34 AM
                  > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
                  >
                  > Any ideas on what is wrong. I've got the page up here:
                  > http://dkberman.wolfnetfx.com/rte.html
                  >
                  > I've tried to comment out the non essential script portions in case it
                  > was causing a conflict. I'm just not seeing what is wrong.
                  >
                  > The posted file does have your example with the button, and my
                  > function with the weblink.
                  >
                  > I also updated from 2.5.0 to 2.5.1 to see if it would be resolved.
                  >
                  > I saw some websites talking about the same error message and it was
                  > dealing with the use or missuse of global variables, which I'm not
                  > sure I'm using here.
                  >
                  > I'm just baffled and would love to figure it out why it doesn't work
                  > in IE but will all of the other browsers. Am I dealing with a bug
                  > that needs to be reported?
                  >
                  > Dan
                  >
                  > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                  > >
                  > > Dan --
                  > >
                  > > Is editor the name of your Editor instance?
                  > >
                  > > 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: Dan Berman <danberms@>
                  > > To: ydn-javascript@yahoogroups.com
                  > > Sent: Monday, March 31, 2008 7:10:13 PM
                  > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
                  > >
                  > > I'll see what I can do.
                  > >
                  > > One additional thing that might help. The problem seems to be
                  > > stemming from the
                  > > editor.setEditorHTML(html);
                  > > If I comment out the line, it does not give the error, so is this
                  > > something with the contents of html?
                  > >
                  > > Dan
                  > >
                  > >
                  > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                  > > >
                  > > > Can you post a link to the page with the error?
                  > > > 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: Dan Berman <danberms@>
                  > > > To: ydn-javascript@yahoogroups.com
                  > > > Sent: Monday, March 31, 2008 5:47:57 PM
                  > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                  in IE?
                  > > >
                  > > > Dav,
                  > > >
                  > > > I appreciate the example.
                  > > > If I'm understand everything, then I think the handlesubmit can be
                  > > > enabled.
                  > > > I was calling the clearLinks through this:
                  > > > <a href="javascript:clearLinks();">Clear Links</a>
                  > > >
                  > > > I tried to implement your example and I got the same error
                  message in
                  > > > IE, that a member is not found. Also, with the error code, the
                  editor
                  > > > is not re enabled.
                  > > >
                  > > > Am I missing something else? Your page did work in my
                  browsers, so I
                  > > > think I'm missing something, maybe a JS file?
                  > > >
                  > > > Here's the head
                  > > > <link rel="stylesheet" type="text/css"
                  > > > href="/scripts/yui/build/assets/skins/sam/skin.css">
                  > > > <script src="/scripts/yui/build/utilities/utilities.js"></script>
                  > > > <script
                  src="/scripts/yui/build/container/container-min.js"></script>
                  > > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
                  > > > <script src="/scripts/yui/build/button/button-min.js"></script>
                  > > > <script src="/scripts/yui/build/editor/editor-beta-min.js"></script>
                  > > >
                  > > > <body marginwidth=12 marginheight=12 topmargin=12 leftmargin=12
                  > > > bgcolor="#ffffff" class="yui-skin-sam">
                  > > >
                  > > > I also tried got rid of the namespace to simplify the code without
                  > luck.
                  > > >
                  > > > Anything else I can look at?
                  > > >
                  > > > Thanks.
                  > > >
                  > > > Dan
                  > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                  > > > >
                  > > > > Dan --
                  > > > >
                  > > > > This example removes the hrefs from the editor's document:
                  > > > > http://blog.davglass.com/files/yui/editor54/
                  > > > >
                  > > > > The issue I see here, is that you have handleSubmit set to true,
                  > > > when is the clearLinks function called?
                  > > > > If it's called in the submit handler, you should not enable
                  > > > handleSubmit if you want to do processing before you post the data..
                  > > > >
                  > > > > Does that help?
                  > > > > 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: Dan Berman <danberms@>
                  > > > > To: ydn-javascript@yahoogroups.com
                  > > > > Sent: Monday, March 31, 2008 5:08:13 AM
                  > > > > Subject: [ydn-javascript] Rich Text Editor, script problem in IE?
                  > > > >
                  > > > > I've been playing around, working out a problem. I was looking to
                  > > > > remove on a click of a link all <a> links in the textarea. I've
                  > > > > gotten my function "clearLinks" to work in Firefox and Safari
                  > without
                  > > > > any problems.
                  > > > > In at least IE 6, the script does not work(did not test 7 yet), it
                  > > > > gives a generic "Member not found" error message.
                  > > > >
                  > > > > This is my code, any ideas why IE doesn't like it?
                  > > > >
                  > > > > Thank you.
                  > > > >
                  > > > > <script>
                  > > > > YAHOO.namespace('psRTE');
                  > > > >
                  > > > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
                  > > > > height: '300px',
                  > > > > width: '500px',
                  > > > > dompath: false,
                  > > > > animate: true,
                  > > > > handleSubmit: true
                  > > > > });
                  > > > >
                  > > > > YAHOO.psRTE.myEditor.render();
                  > > > >
                  > > > > function clearLinks()
                  > > > > {
                  > > > > YAHOO.psRTE.myEditor.saveHTML();
                  > > > > var stripHTML1 = /<a\s.*?>/g;
                  > > > > var stripHTML2 = /<\/a>/g;
                  > > > > YAHOO.psRTE.myEditor.get('textarea').value =
                  > > > >
                  > > >
                  > >
                  >
                  YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
                  > > > >
                  > > > >
                  > > >
                  > >
                  >
                  YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
                  > > > >
                  > > > > }
                  > > > > <script>
                  > > > >
                  > > > >
                  > > > > ------------------------------------
                  > > > >
                  > > > > Yahoo! Groups Links
                  > > > >
                  > > >
                  > > >
                  > > >
                  > > > ------------------------------------
                  > > >
                  > > > Yahoo! Groups Links
                  > > >
                  > >
                  > >
                  > >
                  > > ------------------------------------
                  > >
                  > > Yahoo! Groups Links
                  > >
                  >
                  >
                  >
                  > ------------------------------------
                  >
                  > Yahoo! Groups Links
                  >



                  ------------------------------------

                  Yahoo! Groups Links
                • Tim Correia
                  I m seeing this same bug. I can even trigger it on your spell check example here http://blog.davglass.com/files/yui/editor42/ On IE7 windows. Once it Editor
                  Message 8 of 17 , Jun 20, 2008
                  • 0 Attachment
                    I'm seeing this same bug.

                    I can even trigger it on your spell check example here
                    http://blog.davglass.com/files/yui/editor42/

                    On IE7 windows.

                    Once it Editor loads add some test to the body and hit spell check.
                    You should get error related to htmlfile member not found.
                    With debug version I traced it to calling setEditorHTML().
                    setEditorHTML() calls nodeChange(). This line is causing the error in
                    nodeChange() - [this._lastNodeChangeEvent = this.currentEvent.type;]

                    I'm running the latest version of YUI & Editor.

                    Thanks,
                    tim


                    --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
                    >
                    > Dan --
                    >
                    > Can you try including the debug versions of the files and see which
                    file is throwing the error?
                    >
                    > 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: Dan Berman <danberms@...>
                    > To: ydn-javascript@yahoogroups.com
                    > Sent: Wednesday, April 2, 2008 9:28:37 AM
                    > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
                    >
                    > Dav,
                    >
                    > Thanks for your help.
                    >
                    > Your code is currently on the page, if you click on the the button and
                    > not the link.
                    >
                    > It doesn't matter which code I use, it does the exact same thing
                    > "Member not found", line 15, character 5626, code 0.
                    >
                    > Both the trimmed down page and my original page is showing the same
                    > error, line, character, and code, so I'm leaning towards that it's in
                    > one of the js files for the editor.
                    >
                    > How can I track it down?
                    >
                    > Dan
                    >
                    > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                    > >
                    > > Dan --
                    > >
                    > > I don't think that it's a bug in Editor, I think you have a race
                    > condition going on with all the calls to get('textarea').value;
                    > >
                    > > Try using my code inside your function and see if that works better.
                    > >
                    > > 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: Dan Berman <danberms@>
                    > > To: ydn-javascript@yahoogroups.com
                    > > Sent: Wednesday, April 2, 2008 6:35:34 AM
                    > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
                    > >
                    > > Any ideas on what is wrong. I've got the page up here:
                    > > http://dkberman.wolfnetfx.com/rte.html
                    > >
                    > > I've tried to comment out the non essential script portions in case it
                    > > was causing a conflict. I'm just not seeing what is wrong.
                    > >
                    > > The posted file does have your example with the button, and my
                    > > function with the weblink.
                    > >
                    > > I also updated from 2.5.0 to 2.5.1 to see if it would be resolved.
                    > >
                    > > I saw some websites talking about the same error message and it was
                    > > dealing with the use or missuse of global variables, which I'm not
                    > > sure I'm using here.
                    > >
                    > > I'm just baffled and would love to figure it out why it doesn't work
                    > > in IE but will all of the other browsers. Am I dealing with a bug
                    > > that needs to be reported?
                    > >
                    > > Dan
                    > >
                    > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                    > > >
                    > > > Dan --
                    > > >
                    > > > Is editor the name of your Editor instance?
                    > > >
                    > > > 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: Dan Berman <danberms@>
                    > > > To: ydn-javascript@yahoogroups.com
                    > > > Sent: Monday, March 31, 2008 7:10:13 PM
                    > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                    in IE?
                    > > >
                    > > > I'll see what I can do.
                    > > >
                    > > > One additional thing that might help. The problem seems to be
                    > > > stemming from the
                    > > > editor.setEditorHTML(html);
                    > > > If I comment out the line, it does not give the error, so is this
                    > > > something with the contents of html?
                    > > >
                    > > > Dan
                    > > >
                    > > >
                    > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                    > > > >
                    > > > > Can you post a link to the page with the error?
                    > > > > 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: Dan Berman <danberms@>
                    > > > > To: ydn-javascript@yahoogroups.com
                    > > > > Sent: Monday, March 31, 2008 5:47:57 PM
                    > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                    > in IE?
                    > > > >
                    > > > > Dav,
                    > > > >
                    > > > > I appreciate the example.
                    > > > > If I'm understand everything, then I think the handlesubmit can be
                    > > > > enabled.
                    > > > > I was calling the clearLinks through this:
                    > > > > <a href="javascript:clearLinks();">Clear Links</a>
                    > > > >
                    > > > > I tried to implement your example and I got the same error
                    > message in
                    > > > > IE, that a member is not found. Also, with the error code, the
                    > editor
                    > > > > is not re enabled.
                    > > > >
                    > > > > Am I missing something else? Your page did work in my
                    > browsers, so I
                    > > > > think I'm missing something, maybe a JS file?
                    > > > >
                    > > > > Here's the head
                    > > > > <link rel="stylesheet" type="text/css"
                    > > > > href="/scripts/yui/build/assets/skins/sam/skin.css">
                    > > > > <script src="/scripts/yui/build/utilities/utilities.js"></script>
                    > > > > <script
                    > src="/scripts/yui/build/container/container-min.js"></script>
                    > > > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
                    > > > > <script src="/scripts/yui/build/button/button-min.js"></script>
                    > > > > <script
                    src="/scripts/yui/build/editor/editor-beta-min.js"></script>
                    > > > >
                    > > > > <body marginwidth=12 marginheight=12 topmargin=12 leftmargin=12
                    > > > > bgcolor="#ffffff" class="yui-skin-sam">
                    > > > >
                    > > > > I also tried got rid of the namespace to simplify the code without
                    > > luck.
                    > > > >
                    > > > > Anything else I can look at?
                    > > > >
                    > > > > Thanks.
                    > > > >
                    > > > > Dan
                    > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                    wrote:
                    > > > > >
                    > > > > > Dan --
                    > > > > >
                    > > > > > This example removes the hrefs from the editor's document:
                    > > > > > http://blog.davglass.com/files/yui/editor54/
                    > > > > >
                    > > > > > The issue I see here, is that you have handleSubmit set to true,
                    > > > > when is the clearLinks function called?
                    > > > > > If it's called in the submit handler, you should not enable
                    > > > > handleSubmit if you want to do processing before you post the
                    data..
                    > > > > >
                    > > > > > Does that help?
                    > > > > > 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: Dan Berman <danberms@>
                    > > > > > To: ydn-javascript@yahoogroups.com
                    > > > > > Sent: Monday, March 31, 2008 5:08:13 AM
                    > > > > > Subject: [ydn-javascript] Rich Text Editor, script problem
                    in IE?
                    > > > > >
                    > > > > > I've been playing around, working out a problem. I was
                    looking to
                    > > > > > remove on a click of a link all <a> links in the textarea. I've
                    > > > > > gotten my function "clearLinks" to work in Firefox and Safari
                    > > without
                    > > > > > any problems.
                    > > > > > In at least IE 6, the script does not work(did not test 7
                    yet), it
                    > > > > > gives a generic "Member not found" error message.
                    > > > > >
                    > > > > > This is my code, any ideas why IE doesn't like it?
                    > > > > >
                    > > > > > Thank you.
                    > > > > >
                    > > > > > <script>
                    > > > > > YAHOO.namespace('psRTE');
                    > > > > >
                    > > > > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
                    > > > > > height: '300px',
                    > > > > > width: '500px',
                    > > > > > dompath: false,
                    > > > > > animate: true,
                    > > > > > handleSubmit: true
                    > > > > > });
                    > > > > >
                    > > > > > YAHOO.psRTE.myEditor.render();
                    > > > > >
                    > > > > > function clearLinks()
                    > > > > > {
                    > > > > > YAHOO.psRTE.myEditor.saveHTML();
                    > > > > > var stripHTML1 = /<a\s.*?>/g;
                    > > > > > var stripHTML2 = /<\/a>/g;
                    > > > > > YAHOO.psRTE.myEditor.get('textarea').value =
                    > > > > >
                    > > > >
                    > > >
                    > >
                    >
                    YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
                    > > > > >
                    > > > > >
                    > > > >
                    > > >
                    > >
                    >
                    YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
                    > > > > >
                    > > > > > }
                    > > > > > <script>
                    > > > > >
                    > > > > >
                    > > > > > ------------------------------------
                    > > > > >
                    > > > > > Yahoo! Groups Links
                    > > > > >
                    > > > >
                    > > > >
                    > > > >
                    > > > > ------------------------------------
                    > > > >
                    > > > > Yahoo! Groups Links
                    > > > >
                    > > >
                    > > >
                    > > >
                    > > > ------------------------------------
                    > > >
                    > > > Yahoo! Groups Links
                    > > >
                    > >
                    > >
                    > >
                    > > ------------------------------------
                    > >
                    > > Yahoo! Groups Links
                    > >
                    >
                    >
                    >
                    > ------------------------------------
                    >
                    > Yahoo! Groups Links
                    >
                  • Tim Correia
                    Seems to happen when you use the Connection utility. When you try to call this.setEditorHTML( foo ) from inside your success function call. Even when you set
                    Message 9 of 17 , Jun 21, 2008
                    • 0 Attachment
                      Seems to happen when you use the Connection utility. When you try to
                      call this.setEditorHTML('foo') from inside your success function call.
                      Even when you set the scope correctly.
                      I'll put together a simple example of triggering the problem.
                      Tim



                      --- In ydn-javascript@yahoogroups.com, "Tim Correia" <timmy1223@...>
                      wrote:
                      >
                      > I'm seeing this same bug.
                      >
                      > I can even trigger it on your spell check example here
                      > http://blog.davglass.com/files/yui/editor42/
                      >
                      > On IE7 windows.
                      >
                      > Once it Editor loads add some test to the body and hit spell check.
                      > You should get error related to htmlfile member not found.
                      > With debug version I traced it to calling setEditorHTML().
                      > setEditorHTML() calls nodeChange(). This line is causing the error in
                      > nodeChange() - [this._lastNodeChangeEvent = this.currentEvent.type;]
                      >
                      > I'm running the latest version of YUI & Editor.
                      >
                      > Thanks,
                      > tim
                      >
                      >
                      > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                      > >
                      > > Dan --
                      > >
                      > > Can you try including the debug versions of the files and see which
                      > file is throwing the error?
                      > >
                      > > 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: Dan Berman <danberms@>
                      > > To: ydn-javascript@yahoogroups.com
                      > > Sent: Wednesday, April 2, 2008 9:28:37 AM
                      > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
                      > >
                      > > Dav,
                      > >
                      > > Thanks for your help.
                      > >
                      > > Your code is currently on the page, if you click on the the button and
                      > > not the link.
                      > >
                      > > It doesn't matter which code I use, it does the exact same thing
                      > > "Member not found", line 15, character 5626, code 0.
                      > >
                      > > Both the trimmed down page and my original page is showing the same
                      > > error, line, character, and code, so I'm leaning towards that it's in
                      > > one of the js files for the editor.
                      > >
                      > > How can I track it down?
                      > >
                      > > Dan
                      > >
                      > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                      > > >
                      > > > Dan --
                      > > >
                      > > > I don't think that it's a bug in Editor, I think you have a race
                      > > condition going on with all the calls to get('textarea').value;
                      > > >
                      > > > Try using my code inside your function and see if that works better.
                      > > >
                      > > > 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: Dan Berman <danberms@>
                      > > > To: ydn-javascript@yahoogroups.com
                      > > > Sent: Wednesday, April 2, 2008 6:35:34 AM
                      > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                      in IE?
                      > > >
                      > > > Any ideas on what is wrong. I've got the page up here:
                      > > > http://dkberman.wolfnetfx.com/rte.html
                      > > >
                      > > > I've tried to comment out the non essential script portions in
                      case it
                      > > > was causing a conflict. I'm just not seeing what is wrong.
                      > > >
                      > > > The posted file does have your example with the button, and my
                      > > > function with the weblink.
                      > > >
                      > > > I also updated from 2.5.0 to 2.5.1 to see if it would be resolved.
                      > > >
                      > > > I saw some websites talking about the same error message and it was
                      > > > dealing with the use or missuse of global variables, which I'm not
                      > > > sure I'm using here.
                      > > >
                      > > > I'm just baffled and would love to figure it out why it doesn't work
                      > > > in IE but will all of the other browsers. Am I dealing with a bug
                      > > > that needs to be reported?
                      > > >
                      > > > Dan
                      > > >
                      > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                      > > > >
                      > > > > Dan --
                      > > > >
                      > > > > Is editor the name of your Editor instance?
                      > > > >
                      > > > > 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: Dan Berman <danberms@>
                      > > > > To: ydn-javascript@yahoogroups.com
                      > > > > Sent: Monday, March 31, 2008 7:10:13 PM
                      > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                      > in IE?
                      > > > >
                      > > > > I'll see what I can do.
                      > > > >
                      > > > > One additional thing that might help. The problem seems to be
                      > > > > stemming from the
                      > > > > editor.setEditorHTML(html);
                      > > > > If I comment out the line, it does not give the error, so is this
                      > > > > something with the contents of html?
                      > > > >
                      > > > > Dan
                      > > > >
                      > > > >
                      > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                      wrote:
                      > > > > >
                      > > > > > Can you post a link to the page with the error?
                      > > > > > 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: Dan Berman <danberms@>
                      > > > > > To: ydn-javascript@yahoogroups.com
                      > > > > > Sent: Monday, March 31, 2008 5:47:57 PM
                      > > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                      > > in IE?
                      > > > > >
                      > > > > > Dav,
                      > > > > >
                      > > > > > I appreciate the example.
                      > > > > > If I'm understand everything, then I think the handlesubmit
                      can be
                      > > > > > enabled.
                      > > > > > I was calling the clearLinks through this:
                      > > > > > <a href="javascript:clearLinks();">Clear Links</a>
                      > > > > >
                      > > > > > I tried to implement your example and I got the same error
                      > > message in
                      > > > > > IE, that a member is not found. Also, with the error code, the
                      > > editor
                      > > > > > is not re enabled.
                      > > > > >
                      > > > > > Am I missing something else? Your page did work in my
                      > > browsers, so I
                      > > > > > think I'm missing something, maybe a JS file?
                      > > > > >
                      > > > > > Here's the head
                      > > > > > <link rel="stylesheet" type="text/css"
                      > > > > > href="/scripts/yui/build/assets/skins/sam/skin.css">
                      > > > > > <script
                      src="/scripts/yui/build/utilities/utilities.js"></script>
                      > > > > > <script
                      > > src="/scripts/yui/build/container/container-min.js"></script>
                      > > > > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
                      > > > > > <script src="/scripts/yui/build/button/button-min.js"></script>
                      > > > > > <script
                      > src="/scripts/yui/build/editor/editor-beta-min.js"></script>
                      > > > > >
                      > > > > > <body marginwidth=12 marginheight=12 topmargin=12 leftmargin=12
                      > > > > > bgcolor="#ffffff" class="yui-skin-sam">
                      > > > > >
                      > > > > > I also tried got rid of the namespace to simplify the code
                      without
                      > > > luck.
                      > > > > >
                      > > > > > Anything else I can look at?
                      > > > > >
                      > > > > > Thanks.
                      > > > > >
                      > > > > > Dan
                      > > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                      > wrote:
                      > > > > > >
                      > > > > > > Dan --
                      > > > > > >
                      > > > > > > This example removes the hrefs from the editor's document:
                      > > > > > > http://blog.davglass.com/files/yui/editor54/
                      > > > > > >
                      > > > > > > The issue I see here, is that you have handleSubmit set to
                      true,
                      > > > > > when is the clearLinks function called?
                      > > > > > > If it's called in the submit handler, you should not enable
                      > > > > > handleSubmit if you want to do processing before you post the
                      > data..
                      > > > > > >
                      > > > > > > Does that help?
                      > > > > > > 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: Dan Berman <danberms@>
                      > > > > > > To: ydn-javascript@yahoogroups.com
                      > > > > > > Sent: Monday, March 31, 2008 5:08:13 AM
                      > > > > > > Subject: [ydn-javascript] Rich Text Editor, script problem
                      > in IE?
                      > > > > > >
                      > > > > > > I've been playing around, working out a problem. I was
                      > looking to
                      > > > > > > remove on a click of a link all <a> links in the textarea.
                      I've
                      > > > > > > gotten my function "clearLinks" to work in Firefox and Safari
                      > > > without
                      > > > > > > any problems.
                      > > > > > > In at least IE 6, the script does not work(did not test 7
                      > yet), it
                      > > > > > > gives a generic "Member not found" error message.
                      > > > > > >
                      > > > > > > This is my code, any ideas why IE doesn't like it?
                      > > > > > >
                      > > > > > > Thank you.
                      > > > > > >
                      > > > > > > <script>
                      > > > > > > YAHOO.namespace('psRTE');
                      > > > > > >
                      > > > > > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
                      > > > > > > height: '300px',
                      > > > > > > width: '500px',
                      > > > > > > dompath: false,
                      > > > > > > animate: true,
                      > > > > > > handleSubmit: true
                      > > > > > > });
                      > > > > > >
                      > > > > > > YAHOO.psRTE.myEditor.render();
                      > > > > > >
                      > > > > > > function clearLinks()
                      > > > > > > {
                      > > > > > > YAHOO.psRTE.myEditor.saveHTML();
                      > > > > > > var stripHTML1 = /<a\s.*?>/g;
                      > > > > > > var stripHTML2 = /<\/a>/g;
                      > > > > > > YAHOO.psRTE.myEditor.get('textarea').value =
                      > > > > > >
                      > > > > >
                      > > > >
                      > > >
                      > >
                      >
                      YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
                      > > > > > >
                      > > > > > >
                      > > > > >
                      > > > >
                      > > >
                      > >
                      >
                      YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
                      > > > > > >
                      > > > > > > }
                      > > > > > > <script>
                      > > > > > >
                      > > > > > >
                      > > > > > > ------------------------------------
                      > > > > > >
                      > > > > > > Yahoo! Groups Links
                      > > > > > >
                      > > > > >
                      > > > > >
                      > > > > >
                      > > > > > ------------------------------------
                      > > > > >
                      > > > > > Yahoo! Groups Links
                      > > > > >
                      > > > >
                      > > > >
                      > > > >
                      > > > > ------------------------------------
                      > > > >
                      > > > > Yahoo! Groups Links
                      > > > >
                      > > >
                      > > >
                      > > >
                      > > > ------------------------------------
                      > > >
                      > > > Yahoo! Groups Links
                      > > >
                      > >
                      > >
                      > >
                      > > ------------------------------------
                      > >
                      > > Yahoo! Groups Links
                      > >
                      >
                    • Tim Correia
                      Here is working example of the bug. - http://tcorr.com/yui/rte_bug.html I took Dav s adding Spell Check example and stripped it down to the code that triggers
                      Message 10 of 17 , Jun 22, 2008
                      • 0 Attachment
                        Here is working example of the bug.
                        - http://tcorr.com/yui/rte_bug.html

                        I took Dav's adding Spell Check example and stripped it down to the
                        code that triggers the bug.

                        Tim






                        --- In ydn-javascript@yahoogroups.com, "Tim Correia" <timmy1223@...>
                        wrote:
                        >
                        > Seems to happen when you use the Connection utility. When you try to
                        > call this.setEditorHTML('foo') from inside your success function call.
                        > Even when you set the scope correctly.
                        > I'll put together a simple example of triggering the problem.
                        > Tim
                        >
                        >
                        >
                        > --- In ydn-javascript@yahoogroups.com, "Tim Correia" <timmy1223@>
                        > wrote:
                        > >
                        > > I'm seeing this same bug.
                        > >
                        > > I can even trigger it on your spell check example here
                        > > http://blog.davglass.com/files/yui/editor42/
                        > >
                        > > On IE7 windows.
                        > >
                        > > Once it Editor loads add some test to the body and hit spell check.
                        > > You should get error related to htmlfile member not found.
                        > > With debug version I traced it to calling setEditorHTML().
                        > > setEditorHTML() calls nodeChange(). This line is causing the error in
                        > > nodeChange() - [this._lastNodeChangeEvent = this.currentEvent.type;]
                        > >
                        > > I'm running the latest version of YUI & Editor.
                        > >
                        > > Thanks,
                        > > tim
                        > >
                        > >
                        > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                        > > >
                        > > > Dan --
                        > > >
                        > > > Can you try including the debug versions of the files and see which
                        > > file is throwing the error?
                        > > >
                        > > > 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: Dan Berman <danberms@>
                        > > > To: ydn-javascript@yahoogroups.com
                        > > > Sent: Wednesday, April 2, 2008 9:28:37 AM
                        > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                        in IE?
                        > > >
                        > > > Dav,
                        > > >
                        > > > Thanks for your help.
                        > > >
                        > > > Your code is currently on the page, if you click on the the
                        button and
                        > > > not the link.
                        > > >
                        > > > It doesn't matter which code I use, it does the exact same thing
                        > > > "Member not found", line 15, character 5626, code 0.
                        > > >
                        > > > Both the trimmed down page and my original page is showing the same
                        > > > error, line, character, and code, so I'm leaning towards that
                        it's in
                        > > > one of the js files for the editor.
                        > > >
                        > > > How can I track it down?
                        > > >
                        > > > Dan
                        > > >
                        > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                        > > > >
                        > > > > Dan --
                        > > > >
                        > > > > I don't think that it's a bug in Editor, I think you have a race
                        > > > condition going on with all the calls to get('textarea').value;
                        > > > >
                        > > > > Try using my code inside your function and see if that works
                        better.
                        > > > >
                        > > > > 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: Dan Berman <danberms@>
                        > > > > To: ydn-javascript@yahoogroups.com
                        > > > > Sent: Wednesday, April 2, 2008 6:35:34 AM
                        > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                        > in IE?
                        > > > >
                        > > > > Any ideas on what is wrong. I've got the page up here:
                        > > > > http://dkberman.wolfnetfx.com/rte.html
                        > > > >
                        > > > > I've tried to comment out the non essential script portions in
                        > case it
                        > > > > was causing a conflict. I'm just not seeing what is wrong.
                        > > > >
                        > > > > The posted file does have your example with the button, and my
                        > > > > function with the weblink.
                        > > > >
                        > > > > I also updated from 2.5.0 to 2.5.1 to see if it would be resolved.
                        > > > >
                        > > > > I saw some websites talking about the same error message and
                        it was
                        > > > > dealing with the use or missuse of global variables, which I'm not
                        > > > > sure I'm using here.
                        > > > >
                        > > > > I'm just baffled and would love to figure it out why it
                        doesn't work
                        > > > > in IE but will all of the other browsers. Am I dealing with a bug
                        > > > > that needs to be reported?
                        > > > >
                        > > > > Dan
                        > > > >
                        > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                        wrote:
                        > > > > >
                        > > > > > Dan --
                        > > > > >
                        > > > > > Is editor the name of your Editor instance?
                        > > > > >
                        > > > > > 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: Dan Berman <danberms@>
                        > > > > > To: ydn-javascript@yahoogroups.com
                        > > > > > Sent: Monday, March 31, 2008 7:10:13 PM
                        > > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                        > > in IE?
                        > > > > >
                        > > > > > I'll see what I can do.
                        > > > > >
                        > > > > > One additional thing that might help. The problem seems to be
                        > > > > > stemming from the
                        > > > > > editor.setEditorHTML(html);
                        > > > > > If I comment out the line, it does not give the error, so is
                        this
                        > > > > > something with the contents of html?
                        > > > > >
                        > > > > > Dan
                        > > > > >
                        > > > > >
                        > > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                        > wrote:
                        > > > > > >
                        > > > > > > Can you post a link to the page with the error?
                        > > > > > > 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: Dan Berman <danberms@>
                        > > > > > > To: ydn-javascript@yahoogroups.com
                        > > > > > > Sent: Monday, March 31, 2008 5:47:57 PM
                        > > > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                        > > > in IE?
                        > > > > > >
                        > > > > > > Dav,
                        > > > > > >
                        > > > > > > I appreciate the example.
                        > > > > > > If I'm understand everything, then I think the handlesubmit
                        > can be
                        > > > > > > enabled.
                        > > > > > > I was calling the clearLinks through this:
                        > > > > > > <a href="javascript:clearLinks();">Clear Links</a>
                        > > > > > >
                        > > > > > > I tried to implement your example and I got the same error
                        > > > message in
                        > > > > > > IE, that a member is not found. Also, with the error code, the
                        > > > editor
                        > > > > > > is not re enabled.
                        > > > > > >
                        > > > > > > Am I missing something else? Your page did work in my
                        > > > browsers, so I
                        > > > > > > think I'm missing something, maybe a JS file?
                        > > > > > >
                        > > > > > > Here's the head
                        > > > > > > <link rel="stylesheet" type="text/css"
                        > > > > > > href="/scripts/yui/build/assets/skins/sam/skin.css">
                        > > > > > > <script
                        > src="/scripts/yui/build/utilities/utilities.js"></script>
                        > > > > > > <script
                        > > > src="/scripts/yui/build/container/container-min.js"></script>
                        > > > > > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
                        > > > > > > <script
                        src="/scripts/yui/build/button/button-min.js"></script>
                        > > > > > > <script
                        > > src="/scripts/yui/build/editor/editor-beta-min.js"></script>
                        > > > > > >
                        > > > > > > <body marginwidth=12 marginheight=12 topmargin=12
                        leftmargin=12
                        > > > > > > bgcolor="#ffffff" class="yui-skin-sam">
                        > > > > > >
                        > > > > > > I also tried got rid of the namespace to simplify the code
                        > without
                        > > > > luck.
                        > > > > > >
                        > > > > > > Anything else I can look at?
                        > > > > > >
                        > > > > > > Thanks.
                        > > > > > >
                        > > > > > > Dan
                        > > > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                        > > wrote:
                        > > > > > > >
                        > > > > > > > Dan --
                        > > > > > > >
                        > > > > > > > This example removes the hrefs from the editor's document:
                        > > > > > > > http://blog.davglass.com/files/yui/editor54/
                        > > > > > > >
                        > > > > > > > The issue I see here, is that you have handleSubmit set to
                        > true,
                        > > > > > > when is the clearLinks function called?
                        > > > > > > > If it's called in the submit handler, you should not enable
                        > > > > > > handleSubmit if you want to do processing before you post the
                        > > data..
                        > > > > > > >
                        > > > > > > > Does that help?
                        > > > > > > > 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: Dan Berman <danberms@>
                        > > > > > > > To: ydn-javascript@yahoogroups.com
                        > > > > > > > Sent: Monday, March 31, 2008 5:08:13 AM
                        > > > > > > > Subject: [ydn-javascript] Rich Text Editor, script problem
                        > > in IE?
                        > > > > > > >
                        > > > > > > > I've been playing around, working out a problem. I was
                        > > looking to
                        > > > > > > > remove on a click of a link all <a> links in the textarea.
                        > I've
                        > > > > > > > gotten my function "clearLinks" to work in Firefox and
                        Safari
                        > > > > without
                        > > > > > > > any problems.
                        > > > > > > > In at least IE 6, the script does not work(did not test 7
                        > > yet), it
                        > > > > > > > gives a generic "Member not found" error message.
                        > > > > > > >
                        > > > > > > > This is my code, any ideas why IE doesn't like it?
                        > > > > > > >
                        > > > > > > > Thank you.
                        > > > > > > >
                        > > > > > > > <script>
                        > > > > > > > YAHOO.namespace('psRTE');
                        > > > > > > >
                        > > > > > > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
                        > > > > > > > height: '300px',
                        > > > > > > > width: '500px',
                        > > > > > > > dompath: false,
                        > > > > > > > animate: true,
                        > > > > > > > handleSubmit: true
                        > > > > > > > });
                        > > > > > > >
                        > > > > > > > YAHOO.psRTE.myEditor.render();
                        > > > > > > >
                        > > > > > > > function clearLinks()
                        > > > > > > > {
                        > > > > > > > YAHOO.psRTE.myEditor.saveHTML();
                        > > > > > > > var stripHTML1 = /<a\s.*?>/g;
                        > > > > > > > var stripHTML2 = /<\/a>/g;
                        > > > > > > > YAHOO.psRTE.myEditor.get('textarea').value =
                        > > > > > > >
                        > > > > > >
                        > > > > >
                        > > > >
                        > > >
                        > >
                        >
                        YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
                        > > > > > > >
                        > > > > > > >
                        > > > > > >
                        > > > > >
                        > > > >
                        > > >
                        > >
                        >
                        YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
                        > > > > > > >
                        > > > > > > > }
                        > > > > > > > <script>
                        > > > > > > >
                        > > > > > > >
                        > > > > > > > ------------------------------------
                        > > > > > > >
                        > > > > > > > Yahoo! Groups Links
                        > > > > > > >
                        > > > > > >
                        > > > > > >
                        > > > > > >
                        > > > > > > ------------------------------------
                        > > > > > >
                        > > > > > > Yahoo! Groups Links
                        > > > > > >
                        > > > > >
                        > > > > >
                        > > > > >
                        > > > > > ------------------------------------
                        > > > > >
                        > > > > > Yahoo! Groups Links
                        > > > > >
                        > > > >
                        > > > >
                        > > > >
                        > > > > ------------------------------------
                        > > > >
                        > > > > Yahoo! Groups Links
                        > > > >
                        > > >
                        > > >
                        > > >
                        > > > ------------------------------------
                        > > >
                        > > > Yahoo! Groups Links
                        > > >
                        > >
                        >
                      • Dav Glass
                        Tim -- Sorry for the issue, I don t know where that cropped up from ;) I have updated the example to work properly now and it includes a patch that will go
                        Message 11 of 17 , Jun 23, 2008
                        • 0 Attachment
                          Tim --

                          Sorry for the issue, I don't know where that cropped up from ;)

                          I have updated the example to work properly now and it includes a patch that will go into the 2.6.0 release of Editor..

                          Here is the patch, include this code after the Editor 's code and before the spellcheck.js code:


                          YAHOO.widget.SimpleEditor.prototype._nodeChange = YAHOO.widget.SimpleEditor.prototype.nodeChange;

                          YAHOO.widget.SimpleEditor.prototype.nodeChange = function() {
                          try {
                          var type = this.currentEvent.type;
                          } catch (e) {
                          this.currentEvent = null;
                          }
                          this._nodeChange.apply(this, arguments);
                          };
                          Hope that helps ;)
                          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: Tim Correia <timmy1223@...>
                          To: ydn-javascript@yahoogroups.com
                          Sent: Sunday, June 22, 2008 1:10:26 PM
                          Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?

                          Here is working example of the bug.
                          - http://tcorr.com/yui/rte_bug.html

                          I took Dav's adding Spell Check example and stripped it down to the
                          code that triggers the bug.

                          Tim






                          --- In ydn-javascript@yahoogroups.com, "Tim Correia" <timmy1223@...>
                          wrote:
                          >
                          > Seems to happen when you use the Connection utility. When you try to
                          > call this.setEditorHTML('foo') from inside your success function call.
                          > Even when you set the scope correctly.
                          > I'll put together a simple example of triggering the problem.
                          > Tim
                          >
                          >
                          >
                          > --- In ydn-javascript@yahoogroups.com, "Tim Correia" <timmy1223@>
                          > wrote:
                          > >
                          > > I'm seeing this same bug.
                          > >
                          > > I can even trigger it on your spell check example here
                          > > http://blog.davglass.com/files/yui/editor42/
                          > >
                          > > On IE7 windows.
                          > >
                          > > Once it Editor loads add some test to the body and hit spell check.
                          > > You should get error related to htmlfile member not found.
                          > > With debug version I traced it to calling setEditorHTML().
                          > > setEditorHTML() calls nodeChange(). This line is causing the error in
                          > > nodeChange() - [this._lastNodeChangeEvent = this.currentEvent.type;]
                          > >
                          > > I'm running the latest version of YUI & Editor.
                          > >
                          > > Thanks,
                          > > tim
                          > >
                          > >
                          > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                          > > >
                          > > > Dan --
                          > > >
                          > > > Can you try including the debug versions of the files and see which
                          > > file is throwing the error?
                          > > >
                          > > > 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: Dan Berman <danberms@>
                          > > > To: ydn-javascript@yahoogroups.com
                          > > > Sent: Wednesday, April 2, 2008 9:28:37 AM
                          > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                          in IE?
                          > > >
                          > > > Dav,
                          > > >
                          > > > Thanks for your help.
                          > > >
                          > > > Your code is currently on the page, if you click on the the
                          button and
                          > > > not the link.
                          > > >
                          > > > It doesn't matter which code I use, it does the exact same thing
                          > > > "Member not found", line 15, character 5626, code 0.
                          > > >
                          > > > Both the trimmed down page and my original page is showing the same
                          > > > error, line, character, and code, so I'm leaning towards that
                          it's in
                          > > > one of the js files for the editor.
                          > > >
                          > > > How can I track it down?
                          > > >
                          > > > Dan
                          > > >
                          > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                          > > > >
                          > > > > Dan --
                          > > > >
                          > > > > I don't think that it's a bug in Editor, I think you have a race
                          > > > condition going on with all the calls to get('textarea').value;
                          > > > >
                          > > > > Try using my code inside your function and see if that works
                          better.
                          > > > >
                          > > > > 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: Dan Berman <danberms@>
                          > > > > To: ydn-javascript@yahoogroups.com
                          > > > > Sent: Wednesday, April 2, 2008 6:35:34 AM
                          > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                          > in IE?
                          > > > >
                          > > > > Any ideas on what is wrong. I've got the page up here:
                          > > > > http://dkberman.wolfnetfx.com/rte.html
                          > > > >
                          > > > > I've tried to comment out the non essential script portions in
                          > case it
                          > > > > was causing a conflict. I'm just not seeing what is wrong.
                          > > > >
                          > > > > The posted file does have your example with the button, and my
                          > > > > function with the weblink.
                          > > > >
                          > > > > I also updated from 2.5.0 to 2.5.1 to see if it would be resolved.
                          > > > >
                          > > > > I saw some websites talking about the same error message and
                          it was
                          > > > > dealing with the use or missuse of global variables, which I'm not
                          > > > > sure I'm using here.
                          > > > >
                          > > > > I'm just baffled and would love to figure it out why it
                          doesn't work
                          > > > > in IE but will all of the other browsers. Am I dealing with a bug
                          > > > > that needs to be reported?
                          > > > >
                          > > > > Dan
                          > > > >
                          > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                          wrote:
                          > > > > >
                          > > > > > Dan --
                          > > > > >
                          > > > > > Is editor the name of your Editor instance?
                          > > > > >
                          > > > > > 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: Dan Berman <danberms@>
                          > > > > > To: ydn-javascript@yahoogroups.com
                          > > > > > Sent: Monday, March 31, 2008 7:10:13 PM
                          > > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                          > > in IE?
                          > > > > >
                          > > > > > I'll see what I can do.
                          > > > > >
                          > > > > > One additional thing that might help. The problem seems to be
                          > > > > > stemming from the
                          > > > > > editor.setEditorHTML(html);
                          > > > > > If I comment out the line, it does not give the error, so is
                          this
                          > > > > > something with the contents of html?
                          > > > > >
                          > > > > > Dan
                          > > > > >
                          > > > > >
                          > > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                          > wrote:
                          > > > > > >
                          > > > > > > Can you post a link to the page with the error?
                          > > > > > > 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: Dan Berman <danberms@>
                          > > > > > > To: ydn-javascript@yahoogroups.com
                          > > > > > > Sent: Monday, March 31, 2008 5:47:57 PM
                          > > > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                          > > > in IE?
                          > > > > > >
                          > > > > > > Dav,
                          > > > > > >
                          > > > > > > I appreciate the example.
                          > > > > > > If I'm understand everything, then I think the handlesubmit
                          > can be
                          > > > > > > enabled.
                          > > > > > > I was calling the clearLinks through this:
                          > > > > > > <a href="javascript:clearLinks();">Clear Links</a>
                          > > > > > >
                          > > > > > > I tried to implement your example and I got the same error
                          > > > message in
                          > > > > > > IE, that a member is not found. Also, with the error code, the
                          > > > editor
                          > > > > > > is not re enabled.
                          > > > > > >
                          > > > > > > Am I missing something else? Your page did work in my
                          > > > browsers, so I
                          > > > > > > think I'm missing something, maybe a JS file?
                          > > > > > >
                          > > > > > > Here's the head
                          > > > > > > <link rel="stylesheet" type="text/css"
                          > > > > > > href="/scripts/yui/build/assets/skins/sam/skin.css">
                          > > > > > > <script
                          > src="/scripts/yui/build/utilities/utilities.js"></script>
                          > > > > > > <script
                          > > > src="/scripts/yui/build/container/container-min.js"></script>
                          > > > > > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
                          > > > > > > <script
                          src="/scripts/yui/build/button/button-min.js"></script>
                          > > > > > > <script
                          > > src="/scripts/yui/build/editor/editor-beta-min.js"></script>
                          > > > > > >
                          > > > > > > <body marginwidth=12 marginheight=12 topmargin=12
                          leftmargin=12
                          > > > > > > bgcolor="#ffffff" class="yui-skin-sam">
                          > > > > > >
                          > > > > > > I also tried got rid of the namespace to simplify the code
                          > without
                          > > > > luck.
                          > > > > > >
                          > > > > > > Anything else I can look at?
                          > > > > > >
                          > > > > > > Thanks.
                          > > > > > >
                          > > > > > > Dan
                          > > > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                          > > wrote:
                          > > > > > > >
                          > > > > > > > Dan --
                          > > > > > > >
                          > > > > > > > This example removes the hrefs from the editor's document:
                          > > > > > > > http://blog.davglass.com/files/yui/editor54/
                          > > > > > > >
                          > > > > > > > The issue I see here, is that you have handleSubmit set to
                          > true,
                          > > > > > > when is the clearLinks function called?
                          > > > > > > > If it's called in the submit handler, you should not enable
                          > > > > > > handleSubmit if you want to do processing before you post the
                          > > data..
                          > > > > > > >
                          > > > > > > > Does that help?
                          > > > > > > > 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: Dan Berman <danberms@>
                          > > > > > > > To: ydn-javascript@yahoogroups.com
                          > > > > > > > Sent: Monday, March 31, 2008 5:08:13 AM
                          > > > > > > > Subject: [ydn-javascript] Rich Text Editor, script problem
                          > > in IE?
                          > > > > > > >
                          > > > > > > > I've been playing around, working out a problem. I was
                          > > looking to
                          > > > > > > > remove on a click of a link all <a> links in the textarea.
                          > I've
                          > > > > > > > gotten my function "clearLinks" to work in Firefox and
                          Safari
                          > > > > without
                          > > > > > > > any problems.
                          > > > > > > > In at least IE 6, the script does not work(did not test 7
                          > > yet), it
                          > > > > > > > gives a generic "Member not found" error message.
                          > > > > > > >
                          > > > > > > > This is my code, any ideas why IE doesn't like it?
                          > > > > > > >
                          > > > > > > > Thank you.
                          > > > > > > >
                          > > > > > > > <script>
                          > > > > > > > YAHOO.namespace('psRTE');
                          > > > > > > >
                          > > > > > > > YAHOO.psRTE.myEditor = new YAHOO.widget.Editor('msgpost', {
                          > > > > > > > height: '300px',
                          > > > > > > > width: '500px',
                          > > > > > > > dompath: false,
                          > > > > > > > animate: true,
                          > > > > > > > handleSubmit: true
                          > > > > > > > });
                          > > > > > > >
                          > > > > > > > YAHOO.psRTE.myEditor.render();
                          > > > > > > >
                          > > > > > > > function clearLinks()
                          > > > > > > > {
                          > > > > > > > YAHOO.psRTE.myEditor.saveHTML();
                          > > > > > > > var stripHTML1 = /<a\s.*?>/g;
                          > > > > > > > var stripHTML2 = /<\/a>/g;
                          > > > > > > > YAHOO.psRTE.myEditor.get('textarea').value =
                          > > > > > > >
                          > > > > > >
                          > > > > >
                          > > > >
                          > > >
                          > >
                          >
                          YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
                          > > > > > > >
                          > > > > > > >
                          > > > > > >
                          > > > > >
                          > > > >
                          > > >
                          > >
                          >
                          YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
                          > > > > > > >
                          > > > > > > > }
                          > > > > > > > <script>
                          > > > > > > >
                          > > > > > > >
                          > > > > > > > ------------------------------------
                          > > > > > > >
                          > > > > > > > Yahoo! Groups Links
                          > > > > > > >
                          > > > > > >
                          > > > > > >
                          > > > > > >
                          > > > > > > ------------------------------------
                          > > > > > >
                          > > > > > > Yahoo! Groups Links
                          > > > > > >
                          > > > > >
                          > > > > >
                          > > > > >
                          > > > > > ------------------------------------
                          > > > > >
                          > > > > > Yahoo! Groups Links
                          > > > > >
                          > > > >
                          > > > >
                          > > > >
                          > > > > ------------------------------------
                          > > > >
                          > > > > Yahoo! Groups Links
                          > > > >
                          > > >
                          > > >
                          > > >
                          > > > ------------------------------------
                          > > >
                          > > > Yahoo! Groups Links
                          > > >
                          > >
                          >



                          ------------------------------------

                          Yahoo! Groups Links
                        • Tim Correia
                          Thanks Dav, Code is happy now. I have an improved version of spell check that handles replacing only text nodes and not things like html attributes. Here is
                          Message 12 of 17 , Jun 23, 2008
                          • 0 Attachment
                            Thanks Dav,

                            Code is happy now. I have an improved version of spell check that
                            handles replacing only text nodes and not things like html attributes.

                            Here is the code:

                            myEditor._checkSpelling = function(o) {
                            //Change this code to suit your backend checker
                            var data = eval('(' + o.responseText + ')');
                            this.aTextNodes = new Array;
                            var wordMatch;
                            for (var i = 0; i < data.data.length; i++) {
                            var word = data.data[i].word;
                            if (wordMatch) {
                            wordMatch = wordMatch +'|'+word;
                            } else {
                            wordMatch = word;
                            }
                            }

                            var pattern = '\\b('+wordMatch+')\\b';
                            var regEx = new RegExp(pattern, "g");
                            this.getTextNodes(this._getDoc());
                            for(var inc=0; inc< this.aTextNodes.length; inc++) {
                            var node = this.aTextNodes[inc];
                            var text = this.aTextNodes[inc].data;
                            if ( regEx.test(text)) {
                            text = text.replace(regEx, '<span
                            class="yui-spellcheck">$1</span>');
                            var span = this._getDoc().createElement('span');
                            span.innerHTML = text;
                            var parent = node.parentNode;
                            parent.replaceChild(span, node);
                            }
                            }
                            this._spellData = data;
                            }

                            myEdtior.getTextNodes = function(oNode) { // Recursively check for
                            text nodes
                            for (var inc=0; inc < oNode.childNodes.length; inc++) {
                            if (oNode.childNodes[inc].nodeType == 1) { // Element
                            this.getTextNodes(oNode.childNodes[inc])
                            } else if (oNode.childNodes[inc].nodeType == 3) { // Text
                            this.aTextNodes.push(oNode.childNodes[inc]);
                            }
                            }
                            };




                            --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
                            >
                            > Tim --
                            >
                            > Sorry for the issue, I don't know where that cropped up from ;)
                            >
                            > I have updated the example to work properly now and it includes a
                            patch that will go into the 2.6.0 release of Editor..
                            >
                            > Here is the patch, include this code after the Editor 's code and
                            before the spellcheck.js code:
                            >
                            >
                            > YAHOO.widget.SimpleEditor.prototype._nodeChange =
                            YAHOO.widget.SimpleEditor.prototype.nodeChange;
                            >
                            > YAHOO.widget.SimpleEditor.prototype.nodeChange = function() {
                            > try {
                            > var type = this.currentEvent.type;
                            > } catch (e) {
                            > this.currentEvent = null;
                            > }
                            > this._nodeChange.apply(this, arguments);
                            > };
                            > Hope that helps ;)
                            > 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: Tim Correia <timmy1223@...>
                            > To: ydn-javascript@yahoogroups.com
                            > Sent: Sunday, June 22, 2008 1:10:26 PM
                            > Subject: [ydn-javascript] Re: Rich Text Editor, script problem in IE?
                            >
                            > Here is working example of the bug.
                            > - http://tcorr.com/yui/rte_bug.html
                            >
                            > I took Dav's adding Spell Check example and stripped it down to the
                            > code that triggers the bug.
                            >
                            > Tim
                            >
                            >
                            >
                            >
                            >
                            >
                            > --- In ydn-javascript@yahoogroups.com, "Tim Correia" <timmy1223@>
                            > wrote:
                            > >
                            > > Seems to happen when you use the Connection utility. When you try to
                            > > call this.setEditorHTML('foo') from inside your success function call.
                            > > Even when you set the scope correctly.
                            > > I'll put together a simple example of triggering the problem.
                            > > Tim
                            > >
                            > >
                            > >
                            > > --- In ydn-javascript@yahoogroups.com, "Tim Correia" <timmy1223@>
                            > > wrote:
                            > > >
                            > > > I'm seeing this same bug.
                            > > >
                            > > > I can even trigger it on your spell check example here
                            > > > http://blog.davglass.com/files/yui/editor42/
                            > > >
                            > > > On IE7 windows.
                            > > >
                            > > > Once it Editor loads add some test to the body and hit spell check.
                            > > > You should get error related to htmlfile member not found.
                            > > > With debug version I traced it to calling setEditorHTML().
                            > > > setEditorHTML() calls nodeChange(). This line is causing the
                            error in
                            > > > nodeChange() - [this._lastNodeChangeEvent = this.currentEvent.type;]
                            > > >
                            > > > I'm running the latest version of YUI & Editor.
                            > > >
                            > > > Thanks,
                            > > > tim
                            > > >
                            > > >
                            > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
                            > > > >
                            > > > > Dan --
                            > > > >
                            > > > > Can you try including the debug versions of the files and see
                            which
                            > > > file is throwing the error?
                            > > > >
                            > > > > 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: Dan Berman <danberms@>
                            > > > > To: ydn-javascript@yahoogroups.com
                            > > > > Sent: Wednesday, April 2, 2008 9:28:37 AM
                            > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                            > in IE?
                            > > > >
                            > > > > Dav,
                            > > > >
                            > > > > Thanks for your help.
                            > > > >
                            > > > > Your code is currently on the page, if you click on the the
                            > button and
                            > > > > not the link.
                            > > > >
                            > > > > It doesn't matter which code I use, it does the exact same thing
                            > > > > "Member not found", line 15, character 5626, code 0.
                            > > > >
                            > > > > Both the trimmed down page and my original page is showing the
                            same
                            > > > > error, line, character, and code, so I'm leaning towards that
                            > it's in
                            > > > > one of the js files for the editor.
                            > > > >
                            > > > > How can I track it down?
                            > > > >
                            > > > > Dan
                            > > > >
                            > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                            wrote:
                            > > > > >
                            > > > > > Dan --
                            > > > > >
                            > > > > > I don't think that it's a bug in Editor, I think you have a race
                            > > > > condition going on with all the calls to get('textarea').value;
                            > > > > >
                            > > > > > Try using my code inside your function and see if that works
                            > better.
                            > > > > >
                            > > > > > 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: Dan Berman <danberms@>
                            > > > > > To: ydn-javascript@yahoogroups.com
                            > > > > > Sent: Wednesday, April 2, 2008 6:35:34 AM
                            > > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                            > > in IE?
                            > > > > >
                            > > > > > Any ideas on what is wrong. I've got the page up here:
                            > > > > > http://dkberman.wolfnetfx.com/rte.html
                            > > > > >
                            > > > > > I've tried to comment out the non essential script portions in
                            > > case it
                            > > > > > was causing a conflict. I'm just not seeing what is wrong.
                            > > > > >
                            > > > > > The posted file does have your example with the button, and my
                            > > > > > function with the weblink.
                            > > > > >
                            > > > > > I also updated from 2.5.0 to 2.5.1 to see if it would be
                            resolved.
                            > > > > >
                            > > > > > I saw some websites talking about the same error message and
                            > it was
                            > > > > > dealing with the use or missuse of global variables, which
                            I'm not
                            > > > > > sure I'm using here.
                            > > > > >
                            > > > > > I'm just baffled and would love to figure it out why it
                            > doesn't work
                            > > > > > in IE but will all of the other browsers. Am I dealing with
                            a bug
                            > > > > > that needs to be reported?
                            > > > > >
                            > > > > > Dan
                            > > > > >
                            > > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                            > wrote:
                            > > > > > >
                            > > > > > > Dan --
                            > > > > > >
                            > > > > > > Is editor the name of your Editor instance?
                            > > > > > >
                            > > > > > > 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: Dan Berman <danberms@>
                            > > > > > > To: ydn-javascript@yahoogroups.com
                            > > > > > > Sent: Monday, March 31, 2008 7:10:13 PM
                            > > > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script problem
                            > > > in IE?
                            > > > > > >
                            > > > > > > I'll see what I can do.
                            > > > > > >
                            > > > > > > One additional thing that might help. The problem seems to be
                            > > > > > > stemming from the
                            > > > > > > editor.setEditorHTML(html);
                            > > > > > > If I comment out the line, it does not give the error, so is
                            > this
                            > > > > > > something with the contents of html?
                            > > > > > >
                            > > > > > > Dan
                            > > > > > >
                            > > > > > >
                            > > > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@>
                            > > wrote:
                            > > > > > > >
                            > > > > > > > Can you post a link to the page with the error?
                            > > > > > > > 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: Dan Berman <danberms@>
                            > > > > > > > To: ydn-javascript@yahoogroups.com
                            > > > > > > > Sent: Monday, March 31, 2008 5:47:57 PM
                            > > > > > > > Subject: [ydn-javascript] Re: Rich Text Editor, script
                            problem
                            > > > > in IE?
                            > > > > > > >
                            > > > > > > > Dav,
                            > > > > > > >
                            > > > > > > > I appreciate the example.
                            > > > > > > > If I'm understand everything, then I think the handlesubmit
                            > > can be
                            > > > > > > > enabled.
                            > > > > > > > I was calling the clearLinks through this:
                            > > > > > > > <a href="javascript:clearLinks();">Clear Links</a>
                            > > > > > > >
                            > > > > > > > I tried to implement your example and I got the same error
                            > > > > message in
                            > > > > > > > IE, that a member is not found. Also, with the error
                            code, the
                            > > > > editor
                            > > > > > > > is not re enabled.
                            > > > > > > >
                            > > > > > > > Am I missing something else? Your page did work in my
                            > > > > browsers, so I
                            > > > > > > > think I'm missing something, maybe a JS file?
                            > > > > > > >
                            > > > > > > > Here's the head
                            > > > > > > > <link rel="stylesheet" type="text/css"
                            > > > > > > > href="/scripts/yui/build/assets/skins/sam/skin.css">
                            > > > > > > > <script
                            > > src="/scripts/yui/build/utilities/utilities.js"></script>
                            > > > > > > > <script
                            > > > > src="/scripts/yui/build/container/container-min.js"></script>
                            > > > > > > > <script src="/scripts/yui/build/menu/menu-min.js"></script>
                            > > > > > > > <script
                            > src="/scripts/yui/build/button/button-min.js"></script>
                            > > > > > > > <script
                            > > > src="/scripts/yui/build/editor/editor-beta-min.js"></script>
                            > > > > > > >
                            > > > > > > > <body marginwidth=12 marginheight=12 topmargin=12
                            > leftmargin=12
                            > > > > > > > bgcolor="#ffffff" class="yui-skin-sam">
                            > > > > > > >
                            > > > > > > > I also tried got rid of the namespace to simplify the code
                            > > without
                            > > > > > luck.
                            > > > > > > >
                            > > > > > > > Anything else I can look at?
                            > > > > > > >
                            > > > > > > > Thanks.
                            > > > > > > >
                            > > > > > > > Dan
                            > > > > > > > --- In ydn-javascript@yahoogroups.com, Dav Glass
                            <dav.glass@>
                            > > > wrote:
                            > > > > > > > >
                            > > > > > > > > Dan --
                            > > > > > > > >
                            > > > > > > > > This example removes the hrefs from the editor's document:
                            > > > > > > > > http://blog.davglass.com/files/yui/editor54/
                            > > > > > > > >
                            > > > > > > > > The issue I see here, is that you have handleSubmit set to
                            > > true,
                            > > > > > > > when is the clearLinks function called?
                            > > > > > > > > If it's called in the submit handler, you should not
                            enable
                            > > > > > > > handleSubmit if you want to do processing before you
                            post the
                            > > > data..
                            > > > > > > > >
                            > > > > > > > > Does that help?
                            > > > > > > > > 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: Dan Berman <danberms@>
                            > > > > > > > > To: ydn-javascript@yahoogroups.com
                            > > > > > > > > Sent: Monday, March 31, 2008 5:08:13 AM
                            > > > > > > > > Subject: [ydn-javascript] Rich Text Editor, script problem
                            > > > in IE?
                            > > > > > > > >
                            > > > > > > > > I've been playing around, working out a problem. I was
                            > > > looking to
                            > > > > > > > > remove on a click of a link all <a> links in the textarea.
                            > > I've
                            > > > > > > > > gotten my function "clearLinks" to work in Firefox and
                            > Safari
                            > > > > > without
                            > > > > > > > > any problems.
                            > > > > > > > > In at least IE 6, the script does not work(did not test 7
                            > > > yet), it
                            > > > > > > > > gives a generic "Member not found" error message.
                            > > > > > > > >
                            > > > > > > > > This is my code, any ideas why IE doesn't like it?
                            > > > > > > > >
                            > > > > > > > > Thank you.
                            > > > > > > > >
                            > > > > > > > > <script>
                            > > > > > > > > YAHOO.namespace('psRTE');
                            > > > > > > > >
                            > > > > > > > > YAHOO.psRTE.myEditor = new
                            YAHOO.widget.Editor('msgpost', {
                            > > > > > > > > height: '300px',
                            > > > > > > > > width: '500px',
                            > > > > > > > > dompath: false,
                            > > > > > > > > animate: true,
                            > > > > > > > > handleSubmit: true
                            > > > > > > > > });
                            > > > > > > > >
                            > > > > > > > > YAHOO.psRTE.myEditor.render();
                            > > > > > > > >
                            > > > > > > > > function clearLinks()
                            > > > > > > > > {
                            > > > > > > > > YAHOO.psRTE.myEditor.saveHTML();
                            > > > > > > > > var stripHTML1 = /<a\s.*?>/g;
                            > > > > > > > > var stripHTML2 = /<\/a>/g;
                            > > > > > > > > YAHOO.psRTE.myEditor.get('textarea').value =
                            > > > > > > > >
                            > > > > > > >
                            > > > > > >
                            > > > > >
                            > > > >
                            > > >
                            > >
                            >
                            YAHOO.psRTE.myEditor.get('textarea').value.replace(stripHTML1,'').replace(stripHTML2,'');
                            > > > > > > > >
                            > > > > > > > >
                            > > > > > > >
                            > > > > > >
                            > > > > >
                            > > > >
                            > > >
                            > >
                            >
                            YAHOO.psRTE.myEditor.setEditorHTML(YAHOO.psRTE.myEditor.get('textarea').value);
                            > > > > > > > >
                            > > > > > > > > }
                            > > > > > > > > <script>
                            > > > > > > > >
                            > > > > > > > >
                            > > > > > > > > ------------------------------------
                            > > > > > > > >
                            > > > > > > > > Yahoo! Groups Links
                            > > > > > > > >
                            > > > > > > >
                            > > > > > > >
                            > > > > > > >
                            > > > > > > > ------------------------------------
                            > > > > > > >
                            > > > > > > > Yahoo! Groups Links
                            > > > > > > >
                            > > > > > >
                            > > > > > >
                            > > > > > >
                            > > > > > > ------------------------------------
                            > > > > > >
                            > > > > > > Yahoo! Groups Links
                            > > > > > >
                            > > > > >
                            > > > > >
                            > > > > >
                            > > > > > ------------------------------------
                            > > > > >
                            > > > > > Yahoo! Groups Links
                            > > > > >
                            > > > >
                            > > > >
                            > > > >
                            > > > > ------------------------------------
                            > > > >
                            > > > > Yahoo! Groups Links
                            > > > >
                            > > >
                            > >
                            >
                            >
                            >
                            > ------------------------------------
                            >
                            > Yahoo! Groups Links
                            >
                          Your message has been successfully submitted and would be delivered to recipients shortly.