javascript / jquery guys please i need help ?

Discussion in 'JavaScript' started by muchochiz, Nov 21, 2010.

  1. #1
    muchochiz, Nov 21, 2010 IP
  2. pagewil

    pagewil Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes it is done via Javascript. JQuery is a javascript library meaning that it is a simplified form of javascript that makes it writing javascript a lot easier, quicker and with a bunch of great functions thrown in.

    I have created a thumbs up, thumbs down script on one of my sites http://mpgdata.com. It is not an easy thing to code from scratch but essentially it is made up of two click events, one bound to each element.

    When one is clicked the number inside it is extracted, incremented and then placed back inside. That's the easy part. You then need a variety of if statement detecting whether or not the opposing button has been pressed. If it has then you need to deduct the opposing element's number by 1 and increment the pressed number.

    To stored the results ajax calls must be used to communicate with a database.

    This is a very brief explanation but should give you an idea as to where to start.

    W.
     
    pagewil, Nov 22, 2010 IP
  3. 24hgame.net

    24hgame.net Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i always use mootools.
     
    24hgame.net, Nov 29, 2010 IP