|  | 
| 
помогите разобраться с 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:16 |  | ||
| 
помогите разобраться с ajax | |||
|---|---|---|---|
| #18+ это GET запрос ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
| 17.01.2007, 11:34 |  | ||
| 
помогите разобраться с ajax | |||
|---|---|---|---|
| #18+ ставлю GET ничего не меняется ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
| 17.01.2007, 11:40 |  | ||
| 
помогите разобраться с ajax | |||
|---|---|---|---|
| #18+ попробуй посмотреть что приходит Код: plaintext 1. Спроси, может отвечу ;) icq 111718060 ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
| 17.01.2007, 11:44 |  | ||
|  | 

| start [/forum/topic.php?desktop=1&fid=22&tid=1458941]: | 0ms | 
| get settings: | 11ms | 
| get forum list: | 13ms | 
| check forum access: | 4ms | 
| check topic access: | 4ms | 
| track hit: | 40ms | 
| get topic data: | 11ms | 
| get forum data: | 2ms | 
| get page messages: | 39ms | 
| get tp. blocked users: | 2ms | 
| others: | 13ms | 
| total: | 139ms | 

| 0 / 0 | 
