show live SQL resultes

Discussion in 'jQuery' started by roice, Mar 31, 2011.

  1. #1
    Hello,
    I have store and I want to add box on the page that show if some product is still available.
    Is it possible to print the number of product items left liveon the page ?
    live mean - if someone buy product, the box will show the new total without refreshing for the other visitors...
    ?

    Thank you in advanced,
    Roi.
     
    roice, Mar 31, 2011 IP
  2. codeartist

    codeartist Peon

    Messages:
    96
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you need to use the ajax script for that
     
    codeartist, Apr 2, 2011 IP
  3. roice

    roice Peon

    Messages:
    200
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    do you have any example for this code?
     
    roice, Apr 2, 2011 IP
  4. codeartist

    codeartist Peon

    Messages:
    96
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if any visitor enters in your site your website has to keep requesting on the product quantities by sending product id as parameter and server can send json data and based on the data retrieved you can display new price :) i can program for you me needed
     
    codeartist, Apr 3, 2011 IP
  5. leunamer

    leunamer Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    @codeartist is right you have to do ajax, better to look at jQuery ajax for more information and samples...
     
    leunamer, Apr 3, 2011 IP