Thanks Keri,

Point noted. But I don't think that offers much defence to Stig's
comments. I wasn't discounting the suggestions that were given one
bit.

Big misunderstanding on both sides, and I should have been clearer on
why javascript is a limitation going forward. I may have posted in the
wrong forum on this one, but PHPUG is one of my more active groups and
I thought someone may have already gone down this path without JS
(e.g. a known ActiveX control).

I don't underestimate the power of JS, I've worn my ExtJS/Qooxdoo/
Jquery hat many times and love the stuff. It's just in this instance,
due to hardware and software (browser) constraints, we require an
alternate method. I should have been clearer that that was all I was
asking.

Actually, I assumed this was a dead thread, I sent that response two
days ago. We've made ground elsewhere, so thanks for your time
everyone.

Cheers
A

On Oct 6, 10:37 am, Keri Henare <[email protected]>
wrote:
> In defence of Stig (and everybody else who has been part of this convo), it 
> seems as if everybody understood your "gotcha", you just didn't understand 
> that it isn't the problem that you think it is. As far as the question goes 
> in regards to the USB barcode scanner, I think it's been pretty well 
> answered; Javascript has no limitation as far as this use-case is concerned. 
> It seems as though the only limitation here is your understanding of 
> Javascript (no offence intended).
>
> I've whipped up a real quick (and dirty) example:http://gist.github.com/612356
> For the example, type anything while on the page, if it includes the string 
> "pixelfusion" then that will trigger an event on the page. I've used a 
> straight string comparison, but as Stig mentioned, you could get away with a 
> regex on the buffer.
>
> Do not underestimate the powers of the Javascript, or suffer your father's 
> fate, you will.
>
> Kind regards,
> Keri Henare
> ---------------------------------------------------
> Chief Technical Officer
> Pixel Fusion
>
> [e]  [email protected]
> [w]  pixelfusion.co.nz
> [m]  (+64) 021 874 552
> [p]  (+64) 09 550 3084
>
> Zend Certified Engineer 
> -http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND013450
>
> PLEASE NOTE: I check my email 3 times per day and will respond at these 
> intervals.  For anything urgent please ring me.
> ---------------------------------------------------
>
> On 4/10/2010, at 3:59 PM, Aaron Cooper wrote:
>
> > ----- Original Message -----
> > From: Stig Manning
> > To: [email protected]
> > Sent: Monday, October 04, 2010 3:29 PM
> > Subject: Re: [phpug] [OT] - USB Barcode Scanner to Web
>
> > >>Hi James,
>
> > >>Sounds like he has already quoted $1M+ to the client and wants some kind 
> > >>of super hard, active-x or client-side java class solution to justify the 
> > >>cost.
>
> > That assumes a little too much about the client. A touch bitchy too, in a 
> > sarcastic kid sort of way, considering you made a comment to James, yet 
> > ofcourse to me and the entire group.
>
> > >>It really is very simple with JavaScript. Even if you can't program the 
> > >>preamble, you can just regex (pattern match) the barcode input to detect 
> > >>it and submit/process.
>
> > That assumes a little too much about the nature of the project, it's future 
> > usage, and dependancies. None of which were shared, as it was not required 
> > in the context of the question. The barcodes may not follow a common 
> > pattern one little bit.
>
> > >>No need for complexification. Which is one of the worst habits of 
> > >>developers.
>
> > Leaning on assumptions to justify an unnecessary point would be right up 
> > there for me.
>
> > A
>
> > Not to
> > -Stig
>
> > James McGlinn wrote, On 4/10/2010 1:12 PM:
> >> Sure.  If it's about what you see as the limitations of Javascript maybe 
> >> let us know what you see those as being?  We've put a fair bit of effort 
> >> into making our app respond (form submission, page updates, form reset, 
> >> even audible feedback) with no further action from the operator besides 
> >> the scan taking place.
>
> >> Happy to share what we've learned through that process.
>
> >> - James
>
> >> On 4/10/2010, at 3:07 PM, Aaron Cooper wrote:
>
> >>> Thanks James,
>
> >>> Again, I am well aware it is no different from a keyboard.
>
> >>> Noone's really reading the primary gotcha of my post so I'll just close 
> >>> this one now.
>
> >>> Cheers people
> >>> Aaron
>
> > --
> > NZ PHP Users Group:http://groups.google.com/group/nzphpug
> > To post, send email to [email protected]
> > To unsubscribe, send email to
> > [email protected]
>
> > --
> > NZ PHP Users Group:http://groups.google.com/group/nzphpug
> > To post, send email to [email protected]
> > To unsubscribe, send email to
> > [email protected]

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to