SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard lorenw's Avatar
    Join Date
    Feb 2005
    was rainy Oregon now sunny Florida
    2 Post(s)
    0 Thread(s)

    I don't know what to call this and want to know how it's done.

    Hi All, I just saw something way too cool, just have no idea what to call it.

    If you do php and javaScript with AJAX, you will be amazed, and I really want to know how this is done.
    Here is the (demo) website, (this is the site to use your app on.)

    My friend pointed his Iphone at the qr code and took a picture. The website actually responded immediately and an AJAX processing .gif replaced the qr code.
    He entered a pin and the transaction was complete and the website then displayed the "thank you for your purchase" page.
    (they actually manipulated an individual web page viewed by me and photographed by me from an app) is how it works.
    in the first few seconds watch as she makes a purchase by taking a picture of the qr code and note how the website reacted with a processing gif.

    What I think I know,
    The barcode is generated randomly by javascript, it changes on every page load.
    NOTE: If you submit the barcode to a reader, all you get is the URL and no random (extra) code.

    The site sets two cookies, JSSID and svrtkn but I would suspect that a div would have an identifying string to do the AJAX update but it does not.

    I Know AJAX and don't understand this.

    Stay with me.
    The app. on the iphone (unless smarter than me) will send the photo data to something like
    My huge question is, how does a request (POST or GET) to appdata.php change the page "you" are viewing.
    I know how to deal with any kind of incoming data but this is AJAX with an external request.

    Something tells me this is the future.
    Please help me understand this.

    I have more info, ask me or run this yourself. On the link, what's this has a link to the Iphones app center

    Thanks and hope to hear some speculation
    What I lack in acuracy I make up for in misteaks

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Central Florida
    191 Post(s)
    4 Thread(s)
    You don't know whether the user previously tied together the mobile device and computer (using Unique ID of each) through an account.
    I that way the the current computer session can be identified by the ID of the device and linked - as we see in the initial part of the video.
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)

    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  3. #3
    SitePoint Evangelist
    Join Date
    Oct 2005
    Michigan, USA
    2 Post(s)
    0 Thread(s)
    My guess is websockets. I don't know much about it but I believe it can be done that way. With websockets the server can push data to the browser. In this case, only to the one browser listening for something about the unique ID embedded in that QR code.
    - Robert


Posting Permissions

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