View Single Post
  #29 (permalink)  
Old March 12th, 2014, 06:44 AM
jeffmarlon jeffmarlon is offline
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2014
Location: San Francisco, CA, USA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re:Does your post include code? Use the [code] and [/code] tags before and after code

Originally Posted by elizas View Post
When you implement a delete feature in your application, a very basic additional feature which is always expected to be implemented is a confirmation box, so that the user gets a prompt before doing some delete activity.

For implementing this, there is already a Javascript function called confirm().
The syntax for this is very simple and i am sure every developer is aware of this. The syntax is as follow:

var confirm = confirm("Are you sure you want to do this?");
//do your delete operation
return false;
Hope this answer helped u.
Yes I understood what you said. Actually when I designed apps for my iPhone then I felt hurdles from JavaScript specially related to delete feature in my app. But now, this problem has been solved. Thanks mate :-)