ICEmobile
  1. ICEmobile
  2. MOBI-144

mediacast page rendering problem

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Beta
    • Fix Version/s: 1.0 Final
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEmobile/mediacast/desktop browser

      Description

      When using mediacast from desktop browser, if you select a photo and upload, the entire page rerenders.

        Activity

        Hide
        Steve Maryka added a comment -

        Not sure if this is an application issues, but assigning to Patrick for analysis.

        Show
        Steve Maryka added a comment - Not sure if this is an application issues, but assigning to Patrick for analysis.
        Hide
        Patrick Corless added a comment -

        I can also see the refresh happening on submit of a photo both locally and on labs. Interestingly though the refresh doesn't occur on the browser that only gets a push. I disabled push and there was no refresh issue for the browser submiting the file.

        It almost looks like it's there is a state issue between the returning image upload response and the push response. I'll bring this issue up in the status call.

        Show
        Patrick Corless added a comment - I can also see the refresh happening on submit of a photo both locally and on labs. Interestingly though the refresh doesn't occur on the browser that only gets a push. I disabled push and there was no refresh issue for the browser submiting the file. It almost looks like it's there is a state issue between the returning image upload response and the push response. I'll bring this issue up in the status call.
        Hide
        Patrick Corless added a comment -

        Can you verify that the file upload is doing a post and thus a refresh.

        Show
        Patrick Corless added a comment - Can you verify that the file upload is doing a post and thus a refresh.
        Hide
        Ted Goddard added a comment -

        Currently the desktop variant of mediacast uses a full-page POST to perform the upload.

        Show
        Ted Goddard added a comment - Currently the desktop variant of mediacast uses a full-page POST to perform the upload.
        Hide
        Ted Goddard added a comment -

        The following works on Safari, Chrome, and Firefox:
        (it will need to be adapted to JSF, however)

        <html>
        <head>
        <title>getFormData Test</title>
        </head>
        <body >
        <script>
        function sendIt()

        { var formElement = document.getElementById("theform"); var oXHR = new XMLHttpRequest(); oXHR.open("POST", "nosuchpage.html"); oXHR.send(new FormData(formElement)); }

        </script>
        getFormData Test<br>
        <form id="theform">
        <input type="text" size="40" id="applink" name="applink">
        <input type="file" id="thefile" name="thefile">
        <input type="button"
        onclick="sendIt();"
        value="what">
        </form>
        </body>
        </html>

        Show
        Ted Goddard added a comment - The following works on Safari, Chrome, and Firefox: (it will need to be adapted to JSF, however) <html> <head> <title>getFormData Test</title> </head> <body > <script> function sendIt() { var formElement = document.getElementById("theform"); var oXHR = new XMLHttpRequest(); oXHR.open("POST", "nosuchpage.html"); oXHR.send(new FormData(formElement)); } </script> getFormData Test<br> <form id="theform"> <input type="text" size="40" id="applink" name="applink"> <input type="file" id="thefile" name="thefile"> <input type="button" onclick="sendIt();" value="what"> </form> </body> </html>
        Hide
        Ted Goddard added a comment -

        component.js now overrides ice.submitFunction if ajax file upload is possible (FormData is supported). This removes mobi:uploadHelper from the demo pages, so desktop browsers that do not support FormData now are no longer able to upload files. If a developer wishes to support older browsers, uploadHelper can be added to the page (it's likely possible that this could be added conditionally based on the browser type).

        Show
        Ted Goddard added a comment - component.js now overrides ice.submitFunction if ajax file upload is possible (FormData is supported). This removes mobi:uploadHelper from the demo pages, so desktop browsers that do not support FormData now are no longer able to upload files. If a developer wishes to support older browsers, uploadHelper can be added to the page (it's likely possible that this could be added conditionally based on the browser type).

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Steve Maryka
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: