ICEfaces
  1. ICEfaces
  2. ICE-4397

JavaScript errors when using submitOnUpload

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.3, 1.8.2-EE-GA_P02
    • Component/s: None
    • Labels:
      None
    • Environment:
      JBoss AS 5.0.1.GA, IE7, FF3

      Description

      Client-side JavaScript code which handles submitOnUpload=preUpload, submitOnUpload=postUpload and submitOnUpload=preAndPostUpload is not reliable.

      In particular, it assumes that IFRAME content is loaded within 300 ms which cannot be guaranteed in a networked environment.

      If IFRAME is not loaded fast enough, both IE7 and FF3 display a JavaScript error:

      frame.document.getElementsByTagName("form")[0] is undefined

      After such error happens, submitOnUpload feature ceases to work until page is refreshed.

      Possibly related JIRA issues and forum posts are:
      ICE-3144
      ICE-4246
      http://www.icefaces.org/JForum/posts/list/12180.page

        Activity

        User Ryagin created issue -
        User Ryagin made changes -
        Field Original Value New Value
        Attachment inputFile-submitOnUpload-bug.zip [ 11680 ]
        User Ryagin made changes -
        Attachment ICE-4397.patch [ 11681 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000AoGEM]
        Tyler Johnson made changes -
        Salesforce Case [5007000000AoGEM] [5007000000AoGEM, 5007000000DXAi6]
        Ken Fyten made changes -
        Fix Version/s 1.8.2-EE-GA_P02 [ 10226 ]
        Fix Version/s 1.8.3 [ 10211 ]
        Assignee Mark Collette [ mark.collette ]
        Ken Fyten made changes -
        Assignee Priority P2
        Mark Collette made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2

          People

          • Assignee:
            Mark Collette
            Reporter:
            User Ryagin
          • Votes:
            8 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: