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.
- <?php
- $idCliente = mysql_real_escape_string($_GET['idCliente']);
- ?>
- <script type="text/javascript">
- $(document).delegate('#simplebool', 'click', function() {
- $(this).simpledialog({
- 'mode' : 'bool',
- 'prompt' : 'Vuoi Cancellare il Record?',
- 'useModal': true,
- 'buttons' : {
- 'OK': {
- click: function () {
- var id_Cliente = "<?= $idCliente ?>";
- $(window.location.href="delete_cliente.php?idCliente='+id_Cliente+'");
- }
- },
- 'Annulla': {
- click: function () {},
- icon: "delete",
- theme: "c"
- }
- }
- })
- })
- </script>