Module: BBMB::Html::View::ActiveX

Included in:
CurrentOrder, Favorites
Defined in:
lib/bbmb/html/view/current_order.rb

Instance Method Summary collapse

Instance Method Details

#other_html_headers(context) ⇒ Object



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/bbmb/html/view/current_order.rb', line 25

def other_html_headers(context)
  html = ''
  if(@session.client_activex? && !@lookandfeel.disabled?(:barcode_reader))
    cab = 'BbmbBarcodeReader.CAB#version=1,3,0,0'
    cid = "CLSID:1311F1ED-198B-11D6-8FF9-000103484A9A"
    if(@session.client_nt5?) 
      cab = 'BbmbBarcodeReader2.CAB#version=2,1,0,0'
    end
    props = {
      "id"			=>	"BCReader",
      "classid"	=>	cid,
      "codebase"=>	@lookandfeel.resource_global(:activex, cab),
    }
    html << context.object(props)
  end
  html << super
end