
    Новые сообщения [новые:0]
  
  Дайджест 
  
  Горячие темы
    Избранное [новые:0]
  
Форумы 
 
Пользователи 
Статистика 
Статистика нагрузки 
    Мод. лог 
  
  Поиск 
| 
 | 
| 17.01.2007, 11:16 | |||
|---|---|---|---|
| 
 | |||
| помогите разобраться с ajax | |||
| #18+ Доброго времени суток!! Значит такой вопрос: есть код <script> function searchSales() { var empID = $F('lstEmployees'); var y = $F('lstYears'); var url = 'http://localhost/index.php'; var pars = 'empID=' + empID + '&year=' + y; var myAjax = new Ajax.Request( url, { method: 'post', parameters: pars, onComplete: showResponse }); } function showResponse(originalRequest) { //put returned XML in the textarea $('result').value = originalRequest.responseText; } </script> <select id="lstEmployees" size="10" onchange="searchSales()"> <option value="5">Buchanan, Steven</option> <option value="8">Callahan, Laura</option> <option value="1">Davolio, Nancy</option> </select> <select id="lstYears" size="3" onchange="searchSales()"> <option selected="selected" value="1996">1996</option> <option value="1997">1997</option> <option value="1998">1998</option> </select> <br><textarea id=result cols=60 rows=10 ></textarea> Ajax.Request посылает поидее запрос вида http://localhost/index.php?empID=1234&year=1998 в index.php как мне считывать этот запрос?? думал что if (isset($_POST["empID"])) .... но не получается :( ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
|  | 
| 17.01.2007, 11:34 | |||
|---|---|---|---|
| помогите разобраться с ajax | |||
| #18+ это GET запрос ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
|  | 
| 17.01.2007, 11:40 | |||
|---|---|---|---|
| 
 | |||
| помогите разобраться с ajax | |||
| #18+ ставлю GET ничего не меняется ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
|  | 
| 17.01.2007, 11:44 | |||
|---|---|---|---|
| 
 | |||
| помогите разобраться с ajax | |||
| #18+ попробуй посмотреть что приходит Код: plaintext 1. Спроси, может отвечу ;) icq 111718060 ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
|  | 
| 
 | 

| start [/forum/topic.php?fid=22&tablet=1&tid=1458941]: | 0ms | 
| get settings: | 8ms | 
| get forum list: | 12ms | 
| check forum access: | 3ms | 
| check topic access: | 3ms | 
| track hit: | 36ms | 
| get topic data: | 8ms | 
| get forum data: | 2ms | 
| get page messages: | 39ms | 
| get tp. blocked users: | 1ms | 
| others: | 12ms | 
| total: | 124ms | 

 
    | 0 / 0 | 
