Hi All,
I am using the setTimeout() method to delay redirection to the application
homepage after creating a new application version. The code is as follows.
$.ajax({
url: $(this).attr("action"),
type: 'POST',
data: formData,
async: true,
success: function (data) {
if(isNewVersion){
jagg.message({content: "Displayed Message.", type: 'info'});
setTimeout(redirectAppHome, 20000);
function redirectAppHome(){
window.location.replace("home.jag?applicationKey="
+ applicationHashId);
}
}
},
cache: false,
contentType: false,
processData: false
});
Note that this notification is given after the successful creation of an
application. According to the code it should be redirected to the
application home page after 20 seconds. I even tested out with giving a
number such as 1000 seconds, but still within 2 or 3 seconds of displaying
the message ("Displayed Message") the page gets redirected.
Any help on understanding the issue is appreciated.
Thanks and Regards.
--
*Sabra Ossen*
*Software Engineer*
Email: [email protected]
Mobile: +94 767 837356
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev