반응형
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- netflix oss
- spring cloud
- WebLogic
- coalesce
- KAFKA
- vue.js
- docker-compose
- Netty
- weblogic 10
- spring boot
- Redis Sentinel
- MySQL
- Spring Open Feign
- spring boot redis
- RabbitMQ
- JPA
- grafana
- argo cd
- QueryDSL
- Hibernate
- Selenium
- ChannelPipeline
- docker
- Docker Compose
- mybatis
- Airflow
- cassandra
- redis
- docker compose mysql
- jmeter
Archives
- Today
- Total
IT.FARMER
Ajax - Ajax.Updater 본문
반응형
var ajaxUrl = getPath()+"/common/selectMemberTree.jsp";
new Ajax.Updater({success:'selectMemberTreeList'},
ajaxUrl,
{method:'get',
parameters : params,
onLoding:function(){},
onSuccess:function(){},
onComplete:function(){alert('성공');},
onFailure:function(){alert('실패 하였습니다.');}
});
new Ajax.Updater({success:'selectMemberTreeList'},
ajaxUrl,
{method:'get',
parameters : params,
onLoding:function(){},
onSuccess:function(){},
onComplete:function(){alert('성공');},
onFailure:function(){alert('실패 하였습니다.');}
});
Request와 같이 Loding, Success, Complate, Failure 등의 Callback 기능을 사용할수 있다.
Prototype API를 봤더니, onFailure만 있어서 실패 했을 경우의 callback만 되는 줄 알았더니.
다 된다.
반응형
'JavaScript > ajax' 카테고리의 다른 글
Ajax XMLHttpRequest caching 방지 (0) | 2011.11.23 |
---|---|
Ajax new XMLHttpRequest() (0) | 2011.03.04 |
Ext Tree Jsp (0) | 2010.10.11 |
Ajax - Ajax.Request (0) | 2010.08.17 |