|
|
|
помогите разобраться с 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?fid=22&fpage=396&tid=1458941]: |
0ms |
get settings: |
12ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
38ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
47ms |
get tp. blocked users: |
3ms |
| others: | 234ms |
| total: | 373ms |

| 0 / 0 |
