Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".ajaxdialog").live('click', function(e) {
- e.preventDefault();
- url = this.href;
- title=this.rel;
- var dialog = $('<div style="display:hidden"></div>').appendTo('body');
- // load remote content
- dialog.load(url, {}, function(responseText, textStatus, XMLHttpRequest) {
- dialog.dialog({
- title : title,
- modal : true,
- maxHeight : 600,
- maxWidth : 800,
- minWidth : 600
- });
- //Remueve completamente el div, para evitar problemas
- //en la llamada de eventos si se vuelve a recargar el dialogo
- dialog.bind('dialogclose',function(event,iu){
- dialog.remove();
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement