'get = request.POST instance'

def handle_ajax(self, dispatch, data):

    if (dispatch == 'goto_position'):
        position = data.get('position', u'1')
        if (position.isdigit() and (int(position) > 0)):
            self.position = int(position)
        else:
            self.position = 1
        return json.dumps({'success': True})
    raise NotFoundError('Unexpected    dispatch    type')
