Closed GoogleCodeExporter closed 9 years ago
Sorry I have missed the script to copy..
<script type="text/javascript">
$.subscribe('beforeDiv', function(event, data) {
alert('Before request ');
});
$.subscribe('completeDiv', function(event, data) {
if (event.originalEvent.status == "success") {
$('#resultnormal').append(
'<br/><br/><strong>Completed request '
+ event.originalEvent.request.statusText
+ ' completed with ' + event.originalEvent.status
+ '.</strong><br/>Status: '
+ event.originalEvent.request.status);
}
});
$.subscribe('errorDiv', function(event, data) {
$('#resulterror').html(
'<br/><br/><strong>Error request '
+ event.originalEvent.request.statusText
+ ' completed with ' + event.originalEvent.status
+ '.</strong><br/>Status: '
+ event.originalEvent.request.status);
});
$.subscribe('completediv2', function(event, data) {
alert(event.originalEvent.status);
setTimeout(function() {
$.publish('reloaddiv2');
}, 10000);
});
</script>
Original comment by tis...@gmail.com
on 27 Mar 2012 at 2:58
Can you please prepare a simple tiles webapp and attach it here?
Original comment by johgep
on 15 May 2012 at 3:01
I have a tiles app which is running fine with s2j plugin.
Original comment by johgep
on 8 Sep 2012 at 5:06
johgep
I have the same problem:
The script:
<script type="text/javascript">
$.subscribe('onBeforeLoading', function(event,data) {
$(".ui-dialog-titlebar").hide();
$("#dialogCarregando").dialog('open');
});
$.subscribe('onCompleteLoading', function(event,data) {
$("#dialogCarregando").dialog('close');
});
</script>
The dialog:
<sj:dialog
id="dialogCarregando"
title=""
autoOpen="false"
modal="true"
resizable="false"
closeOnEscape="false"
>
<div>
<br/>
<br/>
<center><img id="indicatorLoading" src="<s:url value="/images/indicator.gif" />" alt="Wait..." /> Wait a moment...</center>
</div>
</sj:dialog>
And the button:
<s:url
id="url_valida_login"
action="validaLoginResponsavel"
/>
<sj:submit
value="Login"
href="%{url_valida_login}"
button="true"
targets="divConteudo"
cssClass="btn btn-primary btn-lg"
onBeforeTopics="onBeforeLoading"
onCompleteTopics="onCompleteLoading"
/>
When I use tiles, dialog is not close after execute completeTopics.
Any idea ?
Sérgio
Original comment by sergio...@gmail.com
on 4 Mar 2015 at 1:07
Original issue reported on code.google.com by
tis...@gmail.com
on 27 Mar 2012 at 1:56