Fórum
Alert Box until ajax complete function
Madasamy P, modificado 7 Anos atrás.
Alert Box until ajax complete function
Junior Member Postagens: 90 Data de Entrada: 27/07/16 Postagens Recentes
I have an aui:form
<aui:form>
<input type="file" name="supportFiles" multiple="true" id="new_Btn3"
onchange="save3()" autocomplete='off'/>
</aui:form>
function save3(){
AUI().use('aui-base','aui-io-request',function({
B.io.request('<%=resourcURL.toString()%>',
{
dataType: 'json',
method: 'GET',
cache:false,
form: {
id:'<portlet:namespace/>fm',
upload:true
},
sync:true,
on: {
complete: function() {
<%= HtmlUtil.escape(importProgressId) %>.startProgress();
dataForm();
Fancy();
}
}
});
});
}
I want to alert some message until ajax complete function triggered
If complete function starts to work the alert message will be disappeared,Otherwise the alert box displayed
<aui:form>
<input type="file" name="supportFiles" multiple="true" id="new_Btn3"
onchange="save3()" autocomplete='off'/>
</aui:form>
function save3(){
AUI().use('aui-base','aui-io-request',function({
B.io.request('<%=resourcURL.toString()%>',
{
dataType: 'json',
method: 'GET',
cache:false,
form: {
id:'<portlet:namespace/>fm',
upload:true
},
sync:true,
on: {
complete: function() {
<%= HtmlUtil.escape(importProgressId) %>.startProgress();
dataForm();
Fancy();
}
}
});
});
}
I want to alert some message until ajax complete function triggered
If complete function starts to work the alert message will be disappeared,Otherwise the alert box displayed
Byrån Zaugg, modificado 7 Anos atrás.
RE: Alert Box until ajax complete function
Expert Postagens: 252 Data de Entrada: 06/04/12 Postagens Recentes
You could display a message on start and hide it on complete
// ...
on: {
start : function() {
// show message
},
complete : function() {
// hide message
}
}
// ...
Madasamy P, modificado 7 Anos atrás.
RE: Alert Box until ajax complete function
Junior Member Postagens: 90 Data de Entrada: 27/07/16 Postagens RecentesByrån Zaugg:
You could display a message on start and hide it on complete// ... on: { start : function() { // show message }, complete : function() { // hide message } } // ...
Thank you Bryan
It works