Hi All,
I m developing an app for sharepoint 2013(sharepoint hosted app). I have following code.
function submitOnQuerySuccsess(sebder, args) {
currentitemID = Termlistitems.get_id();
alert("Succesfully create your new term");
var addinghours = confirm("Do you want to add Hours and Leave deatils to this term now ?");
if (addinghours == true) {
//confirmation = "You pressed OK!";
alert(currentitemID);
window.location.href = '/HoursLeave.aspx';
}
}
what i m trying to do is once user press yes, I want to navigate to HoursLeave.aspx page from the current page(default page) .
Can soem one please help me to do this. I m doing Sharepoint hosted app.
d.n weerasinghe