Click here to Skip to main content
15,868,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am generating the barcode using jquery

JavaScript
$('td.barcode_needed').append('<div class="bcTarget">');
$('.bcTarget').each(function() {
var $this = $(this);
$this.barcode(
     $this.closest('td.barcode_needed').text(),
    'code128'
});});


the below code where the barcode info enclosed in html code

PHP
<?php
$material=$add['matnr'];
  $batch=$add['cust_batch'];
  $del_qty=$add['glmng'];
  $spq=$add['spq'];
  $tool=$add['tool_no'];
  //$qty=300;
  $label=$del_qty/$spq;
 for($i=0;$i<$label;$i++)
 {
 $tr=$i % 2;
 //echo "tr value :".$tr;
     if($tr==0)
     {
      ?>
      <tr>
      <?php } ?>
  <td width="50%" class="content">
  <table>
    <tr> 
        <td width="10%">Material</td>
         <td width="40%" colspan="2" class="barcode_needed"><span><?php echo $material;?></span></td>
    </tr>
    <tr> 
        <td>Cust.Batch</td>
        <td width="5%" class="barcode_needed"><span><?php echo "L".$batch;?></span></td><td  width="35%" valign="top" align="left">Tool<br /><label style="font-size:25px;"> <?php echo $tool; ?></label></td>
    </tr>
    <tr> 
        <td>Quantity</td>
        <td colspan="2" class="barcode_needed"><span><?php echo "Q".$spq;?></span></td>
    </tr>
    </table>        </td>
        <?php
         if($tr !=0)
         {
          ?>
          </tr>
          <?php 
          } 
     } 
} ?>


now barcode is generating properly ,in ie8 all the barcode's are able to scan by barcode scanner but in ie9 some of the barcode's are not getting scan.

any idea? Thanks in advance.

For more info:

Cust Batch alone not getting scan when $tr==0,the Cust Batch which generated when $tr != 0 is getting scan.
Posted
Comments
George Jonsson 27-Oct-14 5:17am    
I suppose you need to graphically compare a barcode generated in IE8 that can be scanned, with the same barcode generated in IE9 and look for differences.
Are the bars equally wide?
Are the silent areas of both sides of the barcode of the same size?
Archana Palani 27-Oct-14 5:40am    
i can see the different in barcode which is generated in ie9.i dont know how its happening,the above code is for generating barcode.how this will get diff op in diff browswer?????

what exactly i need to do to get the same output in every browser????
OriginalGriff 27-Oct-14 5:46am    
If you can see a difference, what is it?
Archana Palani 27-Oct-14 5:57am    
i can see the different in barcode lines.there are more than one barcode with the same value L2914432506 ,which differs each other.
George Jonsson 27-Oct-14 6:29am    
Please rely to a comment, don't add new one.
We will not get noticed unless you reply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900