cancel
Showing results for 
Search instead for 
Did you mean: 

Ok Cancel Popup

former_member576008
Active Participant
0 Kudos

Hi,

Please help me in the following.

When i clicks on a table view value its navigating to another page, i want a popup(ok/cancel) before the next page gets loaded.

When user clicks on OK it should go to the next page, if ts cancel it should stay on the same page.

I tried the same in iterator's onclientclick but its showing the popup in the same page and also when i clicks on the cancel its navigating to the next page. I dont want the popup to be displayed in the first page.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member233090
Active Contributor
0 Kudos

Hi Kishore,

try this code

Eg

and your js will look like this


function confirmSubmit() 
{
var ok=confirm("Are you sure you wish to continue?");
if (ok)
return true ;
else
return false;
}

cheers

bhavana

Edited by: Bhavana Amar on May 25, 2010 2:02 PM