You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Stijn Maller <st...@gmail.com> on 2011/11/24 18:24:10 UTC

Re: Forms marked as multipart do not work with ajax and IE9

Sorry to come back to this old issue, but we are struggling with it too and
unfortunately the solutions mentioned do not seem to work for us. Our app
already specified the doctype for html 4, and I also tried the html 5
doctype after reading your mails, but to no avail.

Our page is being rendered in standards mode ok, but when the ajax response
is received IE suddenly decides to switch to quirks mode. It spits out the
following message to the console: *HTML1113*: *Document mode restart from
IE9 Standards to Quirks*. I have no clue why it decides to do this nor how
I can prevent it. Anyone able to shed some light onto this?

This is more then annoying, because it means that our app becomes
completely useless on IE9.

Kind regards,
Stijn


Unfortunately our app already had the html 4 doctype declaration and was
already being rendered in

On 6 May 2011 12:42, Wayne W <wa...@gmail.com> wrote:

> Hi,
>
> We have a form that you can make comments in against something. This
> is submitted normally via a AjaxSubmitLink, however if you attach a
> file to the form then then form is submitted in a normal non-ajax
> request.
> The problem I'm seeing is if a form is marked as multipart/form-data
> then is submited via ajax IE9 fails with :
>
> Wicket.Ajax.Call.failure: Error while parsing response: Could not find
> root <ajax-response>
>
> IE8 and 7 work fine. Doing some debugging in IE9 versus FF I see that
> in handleMultipartComplete() that the envelope is of type
> DispHTMLDocument instead of XMLDocument
>
> I'm now trying to work around the problem by removing the enctype
> attribute if doing an ajax request.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Forms marked as multipart do not work with ajax and IE9

Posted by rawe <ra...@dachser.com>.
We had the same problem with IE9

Our solution.
Set the starting page markup to:
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Forms-marked-as-multipart-do-not-work-with-ajax-and-IE9-tp3502174p4606081.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Forms marked as multipart do not work with ajax and IE9

Posted by Martin Grigorov <mg...@apache.org>.
On Thu, Nov 24, 2011 at 7:24 PM, Stijn Maller <st...@gmail.com> wrote:
> Sorry to come back to this old issue, but we are struggling with it too and
> unfortunately the solutions mentioned do not seem to work for us. Our app
> already specified the doctype for html 4, and I also tried the html 5
> doctype after reading your mails, but to no avail.
>
> Our page is being rendered in standards mode ok, but when the ajax response
> is received IE suddenly decides to switch to quirks mode. It spits out the
> following message to the console: *HTML1113*: *Document mode restart from
> IE9 Standards to Quirks*. I have no clue why it decides to do this nor how
> I can prevent it. Anyone able to shed some light onto this?
>
> This is more then annoying, because it means that our app becomes
> completely useless on IE9.

IE9 Developer Tools -> Network tab -> check every resource in the table below
Sometimes IE9 gives very descriptive information why it switches the modes.

>
> Kind regards,
> Stijn
>
>
> Unfortunately our app already had the html 4 doctype declaration and was
> already being rendered in
>
> On 6 May 2011 12:42, Wayne W <wa...@gmail.com> wrote:
>
>> Hi,
>>
>> We have a form that you can make comments in against something. This
>> is submitted normally via a AjaxSubmitLink, however if you attach a
>> file to the form then then form is submitted in a normal non-ajax
>> request.
>> The problem I'm seeing is if a form is marked as multipart/form-data
>> then is submited via ajax IE9 fails with :
>>
>> Wicket.Ajax.Call.failure: Error while parsing response: Could not find
>> root <ajax-response>
>>
>> IE8 and 7 work fine. Doing some debugging in IE9 versus FF I see that
>> in handleMultipartComplete() that the envelope is of type
>> DispHTMLDocument instead of XMLDocument
>>
>> I'm now trying to work around the problem by removing the enctype
>> attribute if doing an ajax request.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org