index.html 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <title>jConfirmAction Demo | Webstuffshare.com</title>
  7. <link rel="stylesheet" type="text/css" media="screen, projection" href="demo.css" />
  8. <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
  9. <script type="text/javascript" src="jconfirmaction.jquery.js"></script>
  10. <script type="text/javascript">
  11. $(document).ready(function() {
  12. $('.ask-plain').click(function(e) {
  13. e.preventDefault();
  14. thisHref = $(this).attr('href');
  15. if(confirm('Are you sure')) {
  16. window.location = thisHref;
  17. }
  18. });
  19. $('.ask-custom').jConfirmAction({question : "Anda Yakin?", yesAnswer : "Ya", cancelAnswer : "Tidak"});
  20. $('.ask').jConfirmAction();
  21. });
  22. </script>
  23. </head>
  24. <body>
  25. <span class="title">jConfirmAction Demo</span>
  26. <br/><br/>
  27. <div id="container">
  28. <label>Without Plugin</label>
  29. : <a href="delete.html" class="ask-plain">Delete Me</a>
  30. <hr/>
  31. <label>Using Plugin With Default Confirmation</label>
  32. : <a href="delete.html" class="ask">Delete Me</a>
  33. <hr/>
  34. <label>Customized Language (Indonesian) </label>
  35. : <a href="delete.html" class="ask-custom"><img src="images/trash.png" border="0" align="absbottom" /></a>
  36. </div>
  37. <br/>
  38. <span class="title"><a href="http://www.webstuffshare.com/2010/03/codesnippet-jquery-confirm-users-action">&laquo; Download</a></span>
  39. </body>
  40. </html>