I have this problem with my website (MVC3, C #) and barcode reader. In my form, I have something like this:
<ajax form....> <input type=text /> <div id=list> </div> </form>
And the input is filled in by the barcode reader and automatically sends the form, which with ajax fills the div with the list id =. My problem is that with chrome and i.e. After sending the text to Chrome, download windows appear, and the favorites window appears in ie. I suppose this is because the barcode reader inserts the text [CR] [LF] into the text and opens these windows. I thought the barcode reader was inserting ctrl-j at some point, because this combination opens the download window in chrome and favorites in ie, but with firefox the download window does not open (as well as ctrl-j).
I don’t want my client to set up a barcode reader for my page to work, so I want a solution in javascript to solve this problem.
thanks!!!
source share