Jquery easy confirm dialog.js - Open url with parameters

Jquery easy confirm dialog.js - Open url with parameters

Hi,

I'm implementing the plugin jQueryMobile - SimpleDialog
I managed to make it work, but now, after the confirmation I need to open a url with a parameter taken from a variable-php.
Ho provato cosi ma non funziona l'eliminazione del record.
  1. <?php
  2. $idCliente = mysql_real_escape_string($_GET['idCliente']);
  3. ?>

  1. <script type="text/javascript">

  2. $(document).delegate('#simplebool', 'click', function() {
  3.   $(this).simpledialog({
  4.     'mode' : 'bool',
  5.     'prompt' : 'Vuoi Cancellare il Record?',
  6.     'useModal': true,
  7.     'buttons' : {
  8.       'OK': {
  9.         click: function () {
  10.           var id_Cliente = "<?= $idCliente ?>";
  11.  $(window.location.href="delete_cliente.php?idCliente='+id_Cliente+'");
  12.         }
  13.       },
  14.       'Annulla': {
  15.         click: function () {},
  16.         icon: "delete",
  17.         theme: "c"
  18.       }
  19.     }
  20.   })
  21. })

  22. </script>
    • Topic Participants

    • info