반응형
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 |
Tags
- spring boot redis
- cassandra
- RabbitMQ
- netflix oss
- Docker Compose
- QueryDSL
- Spring Open Feign
- docker
- mybatis
- redis
- Airflow
- MySQL
- docker compose mysql
- Redis Sentinel
- argo cd
- Netty
- KAFKA
- Hibernate
- grafana
- spring boot
- weblogic 10
- ChannelPipeline
- vue.js
- Selenium
- spring cloud
- JPA
- jmeter
- WebLogic
- docker-compose
- coalesce
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 |