J
Juanjo87
Gamma
Diseñador
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Pues tengo un iframe, que cargo en una ventana modal con jquery Ui.
este es el script
Como puedo añadirle un loading... mientras carga el iframe?
Hago bien en usar jquery Ui o mejor con jquery a pelo?
este es el script
PHP:
<script>
$(function(){
$('ul.capitulos li a').on('click', function(e){
e.preventDefault();
$('<div/>', {'class':'myDlgClass', 'id':'link-'+($(this).index()+1)})
.html($('<iframe/>', {
'src' : $(this).attr('href'),
'style' :'width:100%; height:100%; border:none;'
})).appendTo('body')
.dialog({
'title' : $(this).text(),
'width' : 800,
'height' :380,
buttons: {
"cerrar": function() {
$(this).dialog("close");
}
},
modal: true,
show: {
effect: "blind",
duration: 500
},
hide: {
effect: "blind",
duration: 500
}
});
});
});
</script>
Como puedo añadirle un loading... mientras carga el iframe?
Hago bien en usar jquery Ui o mejor con jquery a pelo?

