Skip to content

Can't Get 128 to Generate #454

@GaryFurash

Description

@GaryFurash

Whether I store the JS locally or reference it from a local drive, I can't get any type of CODE128 barcodes to generate. The first 2 barcodes look fine. The last one doesn't show anything, even when I use "CODE128", "CODE128 A", etc.

<!DOCTYPE HTML>
<html lang="en-US">

<head>
    <meta charset="UTF_8">
    <title>Test Page</title>
    <!-- <script type="text/javascript" src="./JsBarcode.all.min.js"></script> -->
    <script src="https://cdn.jsdelivr.net/jsbarcode/3.3.20/JsBarcode.all.min.js"></script>
</head>

<body>
    <div>
        <P>Barcode 3</P>
        <img id="barcode2" />
        <script>
            JsBarcode("#barcode2", "9780199532179", {
                format: "CODE39",
                displayValue: true,
                fontSize: 24,
                lineColor: "#0cc"
            });
        </script>
    </div>

    <div>
        <P>Barcode 3</P>
        <img id="barcode3" />
        <script>JsBarcode("#barcode3", "9780199532179", {
                format: "CODE39",
                displayValue: true,
                fontSize: 20
            });</script>
    </div>

    <div>
        <P>Barcode 4</P>
        <svg id="barcode4"></svg>
        <script>JsBarcode("#barcode4", "HELLO", { format: "CODE128 auto" });</script>
    </div>
</body>

</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions