You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2010/12/30 16:13:46 UTC

[jira] Resolved: (WICKET-1432) Detection of ajax transport type

     [ https://issues.apache.org/jira/browse/WICKET-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-1432.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-M4

With r1053911 Wicket will prefer window.XMLHttpRequest if it is available.
Tested with IE6.

> Detection of ajax transport type
> --------------------------------
>
>                 Key: WICKET-1432
>                 URL: https://issues.apache.org/jira/browse/WICKET-1432
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>         Environment: Windows Mobile + Opera Mobile 9.5 Beta
>            Reporter: Sven Rienstra
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 1.5-M4
>
>
> Wicket currently detects wich type of ajax transport has to be used by detecting if the browser supports activeX. Wouldn't it be better to use activeX only if the browser is IE and lower than version 7, because as far as I know that's the only browser you would want to use activeX on. 
> The reason i'm asking is because i'm testing with the new Opera Mobile browser (9.5 beta), ajax isn't working because wicket tries to use an activeX object. I fixed this for now in my own enviremont but maybe it's good to change this in a future release ?
> Patch file:
> Index: wicket-ajax.js
> ===================================================================
> --- wicket-ajax.js	(revision 638254)
> +++ wicket-ajax.js	(working copy)
> @@ -652,7 +652,7 @@
>   	// Creates a new instance of a XmlHttpRequest
>  	createTransport: function() {
>  	    var transport = null;
> -	    if (window.ActiveXObject) {
> +	    if (Wicket.Browser.isIELessThan7()) {
>  	        transport = new ActiveXObject("Microsoft.XMLHTTP");
>  	    } else if (window.XMLHttpRequest) {
>  	        transport = new XMLHttpRequest();

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