OFBiz
  1. OFBiz
  2. OFBIZ-4647

Date Picker widget in for breaks Internet Explorer 7

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:

      Description

      When using a date field like in the code sample below, the generated JavaScript causes IE7 to stop loading the page with the infamous "Operation aborted" error and then redirect to an error page, making the screen unusable. For background information on the issue, see MS Knowledge Base 927917. This problem probably occurs with other js code blocks as well, however we only fixed this one for now because we urgently needed it for a client. This can be circumvented by moving the code in question into a function and binding that to the jQuery document.ready even as I did in the patch.

      Example that breaks IE7 on current trunk:

      <field id-name="fromDate" name="fromDate" tooltip="00:00"><date-time type="date"/></field>
      

      Note: In the patch, I also added two missing semicolons joined some lines so that there is no newlines before that semicolon. While those did not cause errors here, I really doubt if generating JavaScript code using FreeMarker is that great an idae.

      1. OFBIZ-4647.patch
        8 kB
        Christoph Neuroth

        Activity

        Christoph Neuroth created issue -
        Christoph Neuroth made changes -
        Field Original Value New Value
        Attachment OFBIZ-4647.patch [ 12509557 ]
        Christoph Neuroth made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Christoph Neuroth made changes -
        Attachment OFBIZ-4647.patch [ 12509558 ]
        Christoph Neuroth made changes -
        Attachment OFBIZ-4647.patch [ 12509557 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Christoph Neuroth
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development