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

2012-05-03 Thread rawe
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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

2011-11-25 Thread Martin Grigorov
On Thu, Nov 24, 2011 at 7:24 PM, Stijn Maller stijn.mal...@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 waynemailingli...@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-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






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

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



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

2011-11-24 Thread Stijn Maller
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 waynemailingli...@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-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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

2011-05-06 Thread John Owen
We found this issue as well, but a developer here was able to resolve it by 
fixing one of our DOCTYPE declarations. He mentioned that IE9 was being put 
into Quirks mode because we left out the URI of the dtd.

This is the new DOCTYPE declaration we are using with the URI included:

!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;

Regards,
John
-Original Message-
From: Wayne W [mailto:waynemailingli...@gmail.com] 
Sent: Friday, May 06, 2011 5:43 AM
To: users@wicket.apache.org
Subject: Forms marked as multipart do not work with ajax and IE9

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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


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



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

2011-05-06 Thread Attila Király
Fow new projects I would really consider to use html5 header:
!DOCTYPE html

Not only it is the most up to date but it turns browsers and IE8, 9 into
strict mode and IE6, 7 into almost strict mode [1]. So it gets the best out
from the http clients: none of them is using quirks mode with it.

[1] http://en.wikipedia.org/wiki/Quirks_mode#Comparison_of_document_types

http://en.wikipedia.org/wiki/Quirks_mode#Comparison_of_document_types
Attila

2011/5/6 John Owen jo...@globalscape.com

 We found this issue as well, but a developer here was able to resolve it by
 fixing one of our DOCTYPE declarations. He mentioned that IE9 was being put
 into Quirks mode because we left out the URI of the dtd.

 This is the new DOCTYPE declaration we are using with the URI included:

 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
 http://www.w3.org/TR/html4/loose.dtd;

 Regards,
 John
 -Original Message-
 From: Wayne W [mailto:waynemailingli...@gmail.com]
 Sent: Friday, May 06, 2011 5:43 AM
 To: users@wicket.apache.org
 Subject: Forms marked as multipart do not work with ajax and IE9

 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-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


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