Jquery Dialog

  • Jquery Dialog

    Hallo,

    für eine Löschfunktion nutze ich JQUERY.
    User klickt auf Löschen, erhällt eine Dialog Box in der er das Löschen bestätigen muss.
    Die Dialog Box wird angezeigt, auch der Button zum Abbrechen in der DIalog Box wird angezeigt aber wie bekomme ich es hin das er wenn ich auf den Button Löschen klicke er eine bestimmte URL zum löschen aufruft?

    Quellcode

    1. <!doctype html>
    2. <head>
    3. <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/ui-lightness/jquery-ui.css" />
    4. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    5. <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
    6. <script type="text/javascript">
    7. $(document).ready(function() {
    8. $('div#thedialog').dialog({ autoOpen: false,resizable: false,
    9. modal: true,
    10. buttons: {
    11. "Löschen": function() {
    12. $( this ).dialog( "close" );
    13. },
    14. Abbrechen: function() {
    15. $( this ).dialog( "close" );
    16. }
    17. }
    18. })
    19. $('#thelink').click(function(){ $('div#thedialog').dialog('open'); });
    20. })
    21. </script>
    22. </head>
    23. <body>
    24. <div id="thedialog" title="Download complete">
    25. <p>
    26. <span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
    27. Your files have downloaded successfully into the My Downloads folder.
    28. </p>
    29. <p>
    30. Currently using <b>36% of your storage space</b>.
    31. </p>
    32. </div>
    33. <a href="#" id="thelink">Clickme</a>
    34. </body>
    Alles anzeigen