You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Raul Montes (JIRA)" <ji...@apache.org> on 2010/04/27 21:21:46 UTC

[jira] Created: (TAP5-1118) Setting form.enctype in JavaScript doesn't work in IE

Setting form.enctype in JavaScript doesn't work in IE
-----------------------------------------------------

                 Key: TAP5-1118
                 URL: https://issues.apache.org/jira/browse/TAP5-1118
             Project: Tapestry 5
          Issue Type: Bug
    Affects Versions: 5.1.0.5
            Reporter: Raul Montes


When injecting an upload component via form injector, it tries to set the enctype of the form to "multipart/form-data". This works ok on most browsers, but as expected, IE doesn't like it... IE still sends the POST request as "application/x-www-form-urlencoded".

Nevertheless, there is a workaround (http://www.bennadel.com/blog/1273-Setting-Form-EncType-Dynamically-To-Multipart-Form-Data-In-IE-Internet-Explorer-.htm) that is to set not only the enctype but also the encoding of the form, which IE uses when submiting the form.

In practice, it only requires to change upload.js to something like this:

Tapestry.Initializer.injectedUpload = function(element)
{
    var form = $(element).form;
    form.enctype = "multipart/form-data";
    form.encoding = "multipart/form-data";
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TAP5-1118) Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1118.
--------------------------------------

    Fix Version/s: 5.2.1
       Resolution: Fixed

> Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1118
>                 URL: https://issues.apache.org/jira/browse/TAP5-1118
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-upload
>    Affects Versions: 5.1.0.5
>            Reporter: Raul Montes
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.1
>
>
> When injecting an upload component via form injector, it tries to set the enctype of the form to "multipart/form-data". This works ok on most browsers, but as expected, IE doesn't like it... IE still sends the POST request as "application/x-www-form-urlencoded".
> Nevertheless, there is a workaround (http://www.bennadel.com/blog/1273-Setting-Form-EncType-Dynamically-To-Multipart-Form-Data-In-IE-Internet-Explorer-.htm) that is to set not only the enctype but also the encoding of the form, which IE uses when submiting the form.
> In practice, it only requires to change upload.js to something like this:
> Tapestry.Initializer.injectedUpload = function(element)
> {
>     var form = $(element).form;
>     form.enctype = "multipart/form-data";
>     form.encoding = "multipart/form-data";
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TAP5-1118) Setting form.enctype in JavaScript doesn't work in IE

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-1118:
------------------------------------------

    Assignee: Howard M. Lewis Ship

> Setting form.enctype in JavaScript doesn't work in IE
> -----------------------------------------------------
>
>                 Key: TAP5-1118
>                 URL: https://issues.apache.org/jira/browse/TAP5-1118
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1.0.5
>            Reporter: Raul Montes
>            Assignee: Howard M. Lewis Ship
>
> When injecting an upload component via form injector, it tries to set the enctype of the form to "multipart/form-data". This works ok on most browsers, but as expected, IE doesn't like it... IE still sends the POST request as "application/x-www-form-urlencoded".
> Nevertheless, there is a workaround (http://www.bennadel.com/blog/1273-Setting-Form-EncType-Dynamically-To-Multipart-Form-Data-In-IE-Internet-Explorer-.htm) that is to set not only the enctype but also the encoding of the form, which IE uses when submiting the form.
> In practice, it only requires to change upload.js to something like this:
> Tapestry.Initializer.injectedUpload = function(element)
> {
>     var form = $(element).form;
>     form.enctype = "multipart/form-data";
>     form.encoding = "multipart/form-data";
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-1118) Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-1118:
---------------------------------------

        Summary: Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request  (was: Setting form.enctype in JavaScript doesn't work in IE)
    Component/s: tapestry-upload

> Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1118
>                 URL: https://issues.apache.org/jira/browse/TAP5-1118
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-upload
>    Affects Versions: 5.1.0.5
>            Reporter: Raul Montes
>            Assignee: Howard M. Lewis Ship
>
> When injecting an upload component via form injector, it tries to set the enctype of the form to "multipart/form-data". This works ok on most browsers, but as expected, IE doesn't like it... IE still sends the POST request as "application/x-www-form-urlencoded".
> Nevertheless, there is a workaround (http://www.bennadel.com/blog/1273-Setting-Form-EncType-Dynamically-To-Multipart-Form-Data-In-IE-Internet-Explorer-.htm) that is to set not only the enctype but also the encoding of the form, which IE uses when submiting the form.
> In practice, it only requires to change upload.js to something like this:
> Tapestry.Initializer.injectedUpload = function(element)
> {
>     var form = $(element).form;
>     form.enctype = "multipart/form-data";
>     form.encoding = "multipart/form-data";
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-1118) Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904692#action_12904692 ] 

Hudson commented on TAP5-1118:
------------------------------

Integrated in tapestry-5.2-freestyle #182 (See [https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/182/])
    TAP5-1118: Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request


> Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1118
>                 URL: https://issues.apache.org/jira/browse/TAP5-1118
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-upload
>    Affects Versions: 5.1.0.5
>            Reporter: Raul Montes
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.1
>
>
> When injecting an upload component via form injector, it tries to set the enctype of the form to "multipart/form-data". This works ok on most browsers, but as expected, IE doesn't like it... IE still sends the POST request as "application/x-www-form-urlencoded".
> Nevertheless, there is a workaround (http://www.bennadel.com/blog/1273-Setting-Form-EncType-Dynamically-To-Multipart-Form-Data-In-IE-Internet-Explorer-.htm) that is to set not only the enctype but also the encoding of the form, which IE uses when submiting the form.
> In practice, it only requires to change upload.js to something like this:
> Tapestry.Initializer.injectedUpload = function(element)
> {
>     var form = $(element).form;
>     form.enctype = "multipart/form-data";
>     form.encoding = "multipart/form-data";
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TAP5-1118) Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1118.
--------------------------------------

    Fix Version/s: 5.2.1
       Resolution: Fixed

> Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1118
>                 URL: https://issues.apache.org/jira/browse/TAP5-1118
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-upload
>    Affects Versions: 5.1.0.5
>            Reporter: Raul Montes
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.1
>
>
> When injecting an upload component via form injector, it tries to set the enctype of the form to "multipart/form-data". This works ok on most browsers, but as expected, IE doesn't like it... IE still sends the POST request as "application/x-www-form-urlencoded".
> Nevertheless, there is a workaround (http://www.bennadel.com/blog/1273-Setting-Form-EncType-Dynamically-To-Multipart-Form-Data-In-IE-Internet-Explorer-.htm) that is to set not only the enctype but also the encoding of the form, which IE uses when submiting the form.
> In practice, it only requires to change upload.js to something like this:
> Tapestry.Initializer.injectedUpload = function(element)
> {
>     var form = $(element).form;
>     form.enctype = "multipart/form-data";
>     form.encoding = "multipart/form-data";
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-1118) Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-1118:
---------------------------------------

        Summary: Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request  (was: Setting form.enctype in JavaScript doesn't work in IE)
    Component/s: tapestry-upload

> Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1118
>                 URL: https://issues.apache.org/jira/browse/TAP5-1118
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-upload
>    Affects Versions: 5.1.0.5
>            Reporter: Raul Montes
>            Assignee: Howard M. Lewis Ship
>
> When injecting an upload component via form injector, it tries to set the enctype of the form to "multipart/form-data". This works ok on most browsers, but as expected, IE doesn't like it... IE still sends the POST request as "application/x-www-form-urlencoded".
> Nevertheless, there is a workaround (http://www.bennadel.com/blog/1273-Setting-Form-EncType-Dynamically-To-Multipart-Form-Data-In-IE-Internet-Explorer-.htm) that is to set not only the enctype but also the encoding of the form, which IE uses when submiting the form.
> In practice, it only requires to change upload.js to something like this:
> Tapestry.Initializer.injectedUpload = function(element)
> {
>     var form = $(element).form;
>     form.enctype = "multipart/form-data";
>     form.encoding = "multipart/form-data";
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TAP5-1118) Setting form.enctype in JavaScript doesn't work in IE

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-1118:
------------------------------------------

    Assignee: Howard M. Lewis Ship

> Setting form.enctype in JavaScript doesn't work in IE
> -----------------------------------------------------
>
>                 Key: TAP5-1118
>                 URL: https://issues.apache.org/jira/browse/TAP5-1118
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1.0.5
>            Reporter: Raul Montes
>            Assignee: Howard M. Lewis Ship
>
> When injecting an upload component via form injector, it tries to set the enctype of the form to "multipart/form-data". This works ok on most browsers, but as expected, IE doesn't like it... IE still sends the POST request as "application/x-www-form-urlencoded".
> Nevertheless, there is a workaround (http://www.bennadel.com/blog/1273-Setting-Form-EncType-Dynamically-To-Multipart-Form-Data-In-IE-Internet-Explorer-.htm) that is to set not only the enctype but also the encoding of the form, which IE uses when submiting the form.
> In practice, it only requires to change upload.js to something like this:
> Tapestry.Initializer.injectedUpload = function(element)
> {
>     var form = $(element).form;
>     form.enctype = "multipart/form-data";
>     form.encoding = "multipart/form-data";
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-1118) Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904692#action_12904692 ] 

Hudson commented on TAP5-1118:
------------------------------

Integrated in tapestry-5.2-freestyle #182 (See [https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/182/])
    TAP5-1118: Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request


> Using Ajax updates to add an Upload component to an existing Form fails in IE, which still sends application/x-www-form-urlencoded encoded request
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1118
>                 URL: https://issues.apache.org/jira/browse/TAP5-1118
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-upload
>    Affects Versions: 5.1.0.5
>            Reporter: Raul Montes
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.1
>
>
> When injecting an upload component via form injector, it tries to set the enctype of the form to "multipart/form-data". This works ok on most browsers, but as expected, IE doesn't like it... IE still sends the POST request as "application/x-www-form-urlencoded".
> Nevertheless, there is a workaround (http://www.bennadel.com/blog/1273-Setting-Form-EncType-Dynamically-To-Multipart-Form-Data-In-IE-Internet-Explorer-.htm) that is to set not only the enctype but also the encoding of the form, which IE uses when submiting the form.
> In practice, it only requires to change upload.js to something like this:
> Tapestry.Initializer.injectedUpload = function(element)
> {
>     var form = $(element).form;
>     form.enctype = "multipart/form-data";
>     form.encoding = "multipart/form-data";
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.