Zebra_Dialog, version 1.3.5 now available

Here’s what’s new in version 1.3.5:

  • dialog boxes can now be kept open on button click; previously there was no way of keeping a dialog box from closing when a button was clicked; now, returning FALSE from the callback will do just that;

Visit Zebra_Dialog‘s page

4 thoughts on “Zebra_Dialog, version 1.3.5 now available

  1. Lonestar Jack

    Great plugins. I have 2 questions:
    1. How do I tell what version of Dialog I have?
    2. The code below goes right to “../../start.php” without displaying the dialog box.
    Thanks for the good work.

    $(document).ready(function() {
    $(‘#btn’).bind(‘click’, function(e) {
    e.preventDefault();
    $.Zebra_Dialog(‘The link was clicked!’);
    });
    $.Zebra_Dialog(‘Zebra_Dialog, a small, compact and highly’ +
    ‘configurable dialog box plugin for jQuery’, {
    ‘type’: ‘question’,
    ‘title’: ‘Custom buttons’,
    ‘buttons’: [
    {caption: ‘Yes’, callback: function() { }},
    {caption: ‘No’, callback: function() { alert(‘”No” was clicked’)}},
    {caption: ‘Cancel’, callback: function() { alert(‘”Cancel” was clicked’)}}
    ]
    });
    });

  2. Lonestar Jack

    I guess what I try to send leaves out the PHP code.
    I will try something else.

    {caption: ‘Yes’, callback: function() { xxphp header( ‘Location:../../start.php’ ) ;xx}},

    1. Stefan Gabos Post author

      That won’t work…Even if your JS file is interpreted as PHP or you have that piece of JS code inline in a PHP file that actually outputs HTML, that still wouldn’t work as that call to header() would execute right away as it is not part of the JavaScript’s logic.
      You probably want

      {caption: 'Yes',
      callback: function() { document.location.href='start.php';}
      },

Comments are closed.