Hallo,
habe folgendes problem. Ich möchte meinen barcode gerne mit übergeben. Leider funktioniert es nicht. Es wäre net wenn mir jemand helfen könnte.
Hier mal der code
Alles anzeigen
Mit einen normalen bild geht es wenn man dies als Bildquelle eingibt. Aber ich benötige es so da sich der barcode stetig je nach id ändert. Ich würde mich sehr freuen wenn eine eine Lösung kennt.
habe folgendes problem. Ich möchte meinen barcode gerne mit übergeben. Leider funktioniert es nicht. Es wäre net wenn mir jemand helfen könnte.
Hier mal der code
JavaScript-Quellcode
- <script type="text/javascript">
- var bild = new Image();
- var bildquelle = "libs/barcode/barcode.php?codetype=Code39&size=40&text={/literal}' + {$showMailing.mailingCode} + '{/literal}";
- var win=null;
- bild.src = bildquelle;
- function printContainer(Adresse, printContent){
- win = window.open(Adresse, "Zweitfenster", "width=1200,height=800,left=250,top=100");
- self.focus();
- win.document.open();
- win.document.write('<'+'html'+'><'+'head'+'><'+'style'+'>');
- win.document.write('body, td { font-family: Verdana; font-size: 12pt;} .tip-wrap {float: left; margin-left: 20px;} .clear {clear: both;}');
- win.document.write('<'+'/'+'style'+'><'+'/'+'head'+'><'+'body'+'>');
- win.document.write();
- win.document.write('<'+'p'+'>');
- win.document.write('<b>Details</b><br>');
- win.document.write({/literal}'<b>JobNumber:</b> {$showMailing.mailingJobnummer}<br>'{literal});
- win.document.write({/literal}'<b>MailingID:</b> {$showMailing.mailingID}<br>'{literal});
- win.document.write({/literal}'<b>Product:</b> {$showMailing.mailingProduct}<br>'{literal});
- win.document.write({/literal}'<b>Customer:</b> {$showMailing.mailingCustomer}<br>'{literal});
- win.document.write({/literal}'Bild <img src='+bild.src+'>'{literal});
- win.document.write('<'+'/'+'p'+'>');
- win.document.write('<'+'/'+'body'+'><'+'/'+'html'+'>');
- win.document.close();
- win.print();
- win.close();
- }
- </script>
Riek-Media.com - Webhosting riek-media.com