Results 1 to 3 of 3

Thread: how to post magnatic stripe card reader data to aspx or ashx?

  1. #1
    Join Date
    Jul 2009

    how to post magnatic stripe card reader data to aspx or ashx?

    I am working on something that I have to first read the id number on a magnetic stripe card then post it to a login.aspx to login the website.
    what sorts of techniques can I use for achieving that?

    my first solution is (insecure)----:
    save the data in a file when swipe the card, then use ActiveX control in a Javascript to read the file on clinet machine, then post it to the login.aspx

    any better idea?

  2. #2
    Join Date
    Dec 2007
    Dayton, OH
    .aspx means .NET. Please ask this question in the .NET forum.

  3. #3
    Join Date
    Jan 2007
    Stripe readers generally act like keyboards. The only real issue is dealing with carriages returns / newlines. The workaround can be something like a keylogging JavaScript (a Flash app or Java applet would work too). Just log the keystrokes until you hit your designated End-Of-Data marker or a pause in input significantly greater than that between "keystrokes" as configured in your reader.

    EDIT: And then, of course, stuff the logged keystrokes into a variable for an AJAX request or a form field for a synchronous request [or a form field for an AJAX request].
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center