|
Функция изменения репутации
|
|
| ModaL | Дата: 05 Сентября 2010, 13:55 | Сообщение # 1 | ● ● ● ● ● 231 сообщение Статус: Offline | Code function repsqw(){var reason,hrf; hrf = window.location.href; $.get('/index/23-$_USER_ID$', function(data){ $.post('/index/', {reason: reason,a: 23}, function(data){var rs = $('input[name="ssid"][p="content"]',data).text(); a: '23', t: '1', s: '$_USER_ID$', act: '2', reason: document.getElementById('prich').value;
ssid: session }, function(){}); });
} Ничерта не происходит. Code <textarea id="prich" style="width:100%;height:95px; margin-top:1px;"></textarea> | | |
|
| Infamous | Дата: 05 Сентября 2010, 14:05 | Сообщение # 2 |  ● ● ● ● ● 1670 сообщений Статус: Offline | | | |
|
| ModaL | Дата: 05 Сентября 2010, 14:20 | Сообщение # 3 | ● ● ● ● ● 231 сообщение Статус: Offline | Infamous, ты не понял Code reason: document.getElementById('prich').value; Делаю,чтобы текст могли вводитьв поле Code <textarea id="prich" style="width:100%;height:95px; margin-top:1px;"></textarea> .А результата нет... | | |
|
| Infamous | Дата: 05 Сентября 2010, 14:25 | Сообщение # 4 |  ● ● ● ● ● 1670 сообщений Статус: Offline | Code $.get('/index/23-1/', function(data) { var session = $('input[name="ssid"]', $('cmd[p="content"]', data).text()).val(); $.post('/index/', { a: 23, t: 1, s: 1, act: 0, ref: 'http://webcodes.ru', reason: document.getElementById('prich').value, ssid: session }, function() { alert(true); }) }) | | |
|
| ModaL | Отредактировал ModaL - Воскресенье, 05 Сентября 2010, 14:40 Дата: 05 Сентября 2010, 14:33 | Сообщение # 5 | ● ● ● ● ● 231 сообщение Статус: Offline | Code function repsqw(){ $.get('/index/23-54/', function(data) { var session = $('input[name="ssid"]', $('cmd[p="content"]', data).text()).val(); $.post('/index/', { a: 23, t: 1, s: 54, act: 2, ref: 'http://webcodes.ru', reason: document.getElementById('prich').value, ssid: session }, function() { alert(true); }); Как только не мучался и нифига... | | |
|
| cucYa | Дата: 05 Сентября 2010, 15:01 | Сообщение # 6 |  ● ● ● ● ● Совращенный мальчик.7317 сообщений Статус: Offline | Функция не закрыта. | | |
|
| ModaL | Дата: 05 Сентября 2010, 15:15 | Сообщение # 7 | ● ● ● ● ● 231 сообщение Статус: Offline | Code function repsqw(){ $.get('/index/23-54/', function(data) { var session = $('input[name="ssid"]', $('cmd[p="content"]', data).text()).val(); $.post('/index/', { a: 23, t: 1, s: 54, act: 2, ref: 'http://webcodes.ru', reason: document.getElementById('prich').value, ssid: session }, function() { alert(true); }); } Закрыл и не фурычит... Консоль:  | | |
|
| cucYa | Дата: 05 Сентября 2010, 15:21 | Сообщение # 8 |  ● ● ● ● ● Совращенный мальчик.7317 сообщений Статус: Offline | Функция $.get() тоже не закрыта. | | |
|
| ModaL | Дата: 05 Сентября 2010, 15:55 | Сообщение # 9 | ● ● ● ● ● 231 сообщение Статус: Offline | Упс.Спасибо.Разобрался | | |
|