Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8190207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:32:44+00:00 2026-06-07T03:32:44+00:00

i have this problem with my website (MVC3, C#) and a barcode reader. In

  • 0

i have this problem with my website (MVC3, C#) and a 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 with a barcode reader and automatically submits the form that with ajax, fills the div with the id = list.
My problem is that with chrome and ie, after the text is submited, a downloads windows appears in chrome and the favorites window appears in ie. I suppose that is because the barcode reader insers a [CR][LF] in the text and that opens those windows. I thought that the barcode reader was inserting a ctrl-j in some moment because that combination opens the downloads window in chrome and the favorites in ie, but with firefox the downloads window doesnt open (and is also ctrl-j).

I dont want to tell my client to configure the barcode reader so my page works, so i want a sollution in javascript maybe that fixes that problem.

thanks!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:32:45+00:00Added an answer on June 7, 2026 at 3:32 am

    i found this link but the only solution was to change your scanner’s default character… i’m not sure I can change mine though so , like you, I’d be looking for a browser-related fix too.. maybe javascript. i’ll try handling the characters with javascript to prevent that from happening… if I have any success i’ll try and remember to come back here and tell you hehehehehe

    i think this solves the issue….

    $(document).ready(function(){
        $("#input").keydown(function(e){
            if(e.which==17 || e.which==74){
                e.preventDefault();
            }else{
                console.log(e.which);
            }
        })
    });
    

    lemme know whether his works for you too.. make sure you empty the cache too…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following problem. I am making this website you can see in
I have a reoccurring problem with the Android Browser. This is a mobile website
I have this problem, when I load my form, the validation messages appears in
I have this problem: On this website: http://www.azercell.com/WebModule1/mainservlet?cmnd=sms&lang=en I'm trying the following script, it
I have this problem for my social network website. I want to make an
I am developing a website and everywhere i have this annoying problem... I wonder
I've been ruining Christmas with this problem. We have this website which was BUILT
I have this problem: I want to generate a new source code file from
I have this problem: $id is id for each user $img = 'http://www.somesite.com/pictures/'; $no_img
I have this problem since I'm beginning in OOP programming I want to close

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.