Поздравил!
Я нуб, изо всех сил пытаюсь выучить html и javascript - добираюсь туда медленно. Я пытаюсь напечатать DIV, обслуживаемый SimpleModal. Страница находится по адресу:
www.planetsarsfield.com
Эта функция «Печать» находится в поле рецепта внизу. Все отлично работает в FF, но совсем не работает в IE8. Должно быть, я делаю что-то в корне неправильно, но я не могу этого заметить.
Есть идеи?
Cheers,
TY
++++++++++++++++++++++++++++++++++++++++++++++++
<script type="text/javascript">
function PrintElem(elem)
{
Popup($(elem).html());
}
function Popup(data)
{
var mywindow = window.open('', 'basic-modal-content', 'height=400,width=600');
mywindow.document.write('<html><head><title>on the grill... latest recipe</title>');
mywindow.document.write('<link href="PATH/print.css" rel="stylesheet" type="text/css" />')
mywindow.document.write('</head><body >');
mywindow.document.write(data);
mywindow.document.write('</body></html>');
mywindow.document.close();
mywindow.print();
return true;
}
</script>