Append a .css file to an iframe so styles can be overrided
Posted
by
Toni Michel Caubet
on Stack Overflow
See other posts from Stack Overflow
or by Toni Michel Caubet
Published on 2011-11-28T17:26:41Z
Indexed on
2011/11/28
17:54 UTC
Read the original article
Hit count: 355
i am trying like this:
$(document).ready(function(){
$('#muestraMotor').bind('mousedown',function(){
var cssLink = document.createElement("link");
cssLink.href = "../estilo/css/datepicker.css"; cssLink .rel = "stylesheet";
cssLink .type = "text/css";
frames['cboxIframe'].document.body.appendChild(cssLink);
});
})
where cboxIframe is the id of the iframe,
Firebug jumps:
frames.cboxIframe is undefined
[Detener en este error] frames['cboxIframe'].document.body.appendChild(cssLink);
© Stack Overflow or respective owner