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

Matej Knopp resolved WICKET-534.
--------------------------------

    Resolution: Won't Fix

Won't fix as synchronous ajax requests are pure evil :)

> Add a parameter to toggle an AJAX call between asynchronous and synchronous
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-534
>                 URL: https://issues.apache.org/jira/browse/WICKET-534
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.2.6
>            Reporter: James Renfro
>         Assigned To: Matej Knopp
>            Priority: Minor
>
> When using AJAX in certain special cases it may be helpful to make 
> XMLHttpRequest calls with the async parameter set to 'false'. This can be 
> accomplished by modifying the code under wicket-ajax.js -- but it would be 
> nice to have a parameter in the Java code that set the request to synchronous 
> for the length of that call. 
> <snip file="wicket-ajax.js">
> Wicket.Ajax.Request.prototype = {
>    initialize: function(url, loadedCallback, parseResponse, randomURL, 
> failureHandler, channel) {
>        this.url = url;
>        this.loadedCallback = loadedCallback;
>        this.parseResponse = parseResponse != null ? parseResponse : true;
>        this.randomURL = randomURL != null ? randomURL : true;
>        this.failureHandler = failureHandler != null ? failureHandler : 
> function() { };
>        this.async = true;
>        this.channel = channel;
>        this.suppressDone = false;
>        this.instance = Math.random();
>        this.debugContent = true;
>    },
> </snip> 

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

Reply via email to