Javascript jumping touchpad.

Hi guys I made a left touchpad and when i press on it I want the character to jump but I cant get it working, here is my piece of code, can someone help me?

------------Code---------------------------------

var jumper : GameObject;  
var jumpSpeed: float = 12; // initial jump speed
var gravity: float = 30;

function Update () {

    for (var i = 0; i < Input.touchCount; ++i) {

        if (Input.GetTouch(i).phase == TouchPhase.Began) {

            

        }

    }

}

Nowhere in the code you present do you check for whether the user is pressing your jump pad. Any touches anywhere on the screen will be picked up by your code. Maybe take a look at the Penelope tutorial or the AngryBots demo and you’ll see the code that they use for handling touch input.