IBM Support

LO72515: ONSUBMIT EVENT DOES NOT EXECUTE WHEN SUBMIT A FORM THAT CONTAINS A RICH TEXT ITEM VIA WEB

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • This issue has been reported in SPR # CTOO7DTBEE , I
    saw it was
    fixed in V8.5.0, so I tested it on Domino 8.5.0, I could not
    reproduce this
    issue. But on Domino 8.5.3, it can be easily reproduced.
    
    Environment:
    Domino 8.5.3
    
    Steps to reproduce the issue:
    1.Put the example database test.nsf into the Domino\data
    directory of the domino
    server.
    2.Open the form named 'frmtest' in the database test.nsf via IE
    web
    browser, input something in the five text fields, then clicked
    on the "??"
    button, it will submit the form.
    
    
    Open the database test.nsf in Lotus Designer, open the form
    frmtest, we can see
    that there were some Javascript code in the form's onSubmit
    event.
    
    Expected result:
    The 6 alert dialogs with messages from '0001' to '0006' would be
    displayed one
    by one after submitting the form.
    
    Actual result:
    Only '0001' '0002' '0003' was displayed.
    
    Got following JS error: Editor applet did not finish loading.
    
    
    Following was the web page source:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    
    <script language="JavaScript" type="text/javascript">
    <!--
    function trim(str)
    {
     for(var i = 0 ; i<str.length && str.charAt(i)==" " ; i++ ) ;
     return str.substring(i,str.length);
    }
    // -->
    </script>
    
    <script language="JavaScript" type="text/javascript">
    <!--
    document._domino_target = "_self";
    function _doClick(v, o, t, h) {
      var form = document._frmtest;
      if (form.onsubmit) {
         var retVal = form.onsubmit();
         if (typeof retVal == "boolean" && retVal == false)
           return false;
      }
      var target = document._domino_target;
      if (o.href != null) {
        if (o.target != null)
           target = o.target;
      } else {
        if (t != null)
          target = t;
      }
      form.target = target;
      form.__Click.value = v;
      if (h != null)
        form.action += h;
      form.submit();
      return false;
    }
    
    function _getEditAppletData(){
      var form = document._frmtest;
      for(i=0;i<form.elements.length;i++) {
         if(form.elements[i].editorApplet != null) {
           try {
            if(form.elements[i].editorApplet.doYouKnowYourLines() ==
    'By heart') {
               form.elements[i].value =
    form.elements[i].editorApplet.getText("text//html");
            }
           } catch(e) {window.status='Editor applet did not finish
    loading.';}
         }
         if(form.elements[i].webEditor != null) {
            form.elements[i].value =
    form.elements[i].webEditor.getText("text//html");
         }
      }
      return true;
    }
    function RichTextObject() {
    this.RichTextData ="";
    }
    // -->
    </script>
    </head>
    <body text="#000000" bgcolor="#FFFFFF">
    
    <form onsubmit="_getEditAppletData(); var sTmp;
    alert(&quot;0001&quot;);
    sTmp = document.all.Tid.value;
    document.all.Tid.value = trim(sTmp);
    alert(&quot;0002&quot;);
    sTmp = document.all.Tname.value;
    document.all.Tname.value = trim(sTmp);
    alert(&quot;0003&quot;);
    sTmp = document.all.Tfield1.value;
    doc" method="post" action="/test.nsf/frmtest?OpenForm&amp;Seq=1"
    
    name="_frmtest">
    <input type="hidden" name="__Click" value="0">id:
    <input name="Tid" value=""><br>
    name:
    <input name="Tname" value=""><br>
    field1:
    <input name="Tfield1" value=""><br>
    field2:
    <input name="Tfield2" value=""><br>
    field3:
    <input name="Tfield3" value=""><br>
    body:<br>
    
    <script language="JavaScript" type="text/javascript">
    <!--
    function isFormReady(fieldName) {
    if(eval('document.forms[0].'+fieldName))
    return eval('document.forms[0].'+fieldName+'.value');
    else
    return null;
    }
    // -->
    </script>
    
    <script src="/domjava/WriteHtmlArgument.js"
    type="text/javascript">
    </script>
    
    <script language="JavaScript" type="text/javascript">
    <!--
    _domino_WriteHtmlArgument('<applet name="lnaTBody"
    code="lotus.notes.apps.editorapplet.EditorApplet.class"
    codebase="/domjava"
    archive="editor.jar" alt="Editor" mayscript width="100%"
    height="100%"\><param
    name="iconPath" value="/icons"\><param name="cabbase"
    value="editor.cab"\><param name="locale"
    value="en-us"\></applet\>');
    // -->
    </script>
    
    <input type="hidden" name="TBody">
    <script language="JavaScript" type="text/javascript">
    <!--
    document._frmtest.TBody.editorApplet = document.lnaTBody;
    rtoTBody = new RichTextObject();
    rtoTBody.RichTextData = document.forms[0].TBody.value;
    // -->
    </script>
    <br>
    <br>
    
    <input type="button" value="??" onclick="return
    _doClick('48257AAC002CF761.6d6f8096257f8b3e48257aa3002505d1/$Bod
    y/0.4A0', this,
    null)"></form>
    </body>
    </html>
    

Local fix

Problem summary

  • This APAR is closed as FIN. We have deferred the fix to a
     future release.
    

Problem conclusion

Temporary fix

Comments

  • This APAR is associated with SPR# WBJT8ZTC5E.
    This APAR is closed as FIN. We have deferred the fix to a
     future release.
    

APAR Information

  • APAR number

    LO72515

  • Reported component name

    DOMINO SERVER

  • Reported component ID

    5724E6200

  • Reported release

    853

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-07

  • Closed date

    2012-11-20

  • Last modified date

    2012-11-20

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

  • R853 PSN

       UP

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSKTMJ","label":"Lotus Domino"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5.3","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
20 November 2012