Hi,
after some trial and error it seems that the p:ajaxStatus oncomplete attribute does not pass xhr, status and args as parameters. Is this a bug or a feature? Is there a workaround?
thanks
Kuros
p:ajaxStatus oncomplete has no xhr, status
following snippet (thanks to http://primefaces.prime.com.tr/forum/vi ... 1&start=10) in the page header solved my problem:
<script type="text/javascript">
/* <![CDATA[ */
new PrimeFaces.widget.AjaxStatus('uniqueIdentifier').bindCallback('ajaxComplete',function(event,request,settings){
alert("debug: " + request.status);
});
/* ]]> */
</script>
<script type="text/javascript">
/* <![CDATA[ */
new PrimeFaces.widget.AjaxStatus('uniqueIdentifier').bindCallback('ajaxComplete',function(event,request,settings){
alert("debug: " + request.status);
});
/* ]]> */
</script>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 42 guests