私はこのJavaScriptとPHPのページを持っています。 私はプリント作品動作しないwindow.printはもう
window.location = "<?=$stuffdetails['redirect']?>";
を削除します。 どのようなアイデアが間違っていますか?感謝! ありがとう!
私は解決策を自分で見つけ:あなたはすでに、コードの問題の行はこのJavaScriptコード内にある
window.location = "<?=$stuffdetails['redirect']?>";
で検出されたように、小さなタイムアウトすべてと
window.print();
setTimeout (function() {delayRedirect();},100);
function delayRedirect()
{window.location.href = "<?=$stuffdetails['redirect']?>";}
は
注:次の操作を行い 'LANGUAGE = "JavaScriptを"'ビット古い学校 – RiggsFolly
はどのようにprintStuffを呼ぶのですか? –
私は、printStuff関数が呼び出される主なPHPページを持っています:printStuff($ stuffdetails)。 printstuff関数は、メインのPHPページに含まれているfunction.phpページにあります – bashrael