본문 바로가기

JavaScript47

Ajax - Ajax.Request new Ajax.Request(actionURL,{ method: 'post', parameters : {companyName : $F('coporatedCompany')}, onLoading : function(){}, onSuccess : function(response){ var resultObj = eval('(' + response.responseText + ')'); var resultValue = resultObj.result; if ( resultValue == "SUCCESS" ) { var tbody = $('tb1').select('tbody')[0]; while(tbody.hasChildNodes()){ tbody.removeChild(tbody.lastChild); } var co.. 2010. 8. 17.
common.js div 라운드 둥글게 @CHARSET "UTF-8"; /** css3 -moz-border-radius-topleft / -webkit-border-top-left-radius (좌측 상단 모서리) -moz-border-radius-topright / -webkit-border-top-right-radius (우측 상단 모서리) -moz-border-radius-bottomleft / -webkit-border-bottom-left-radius (좌측 하단 모서리) -moz-border-radius-bottomright / -webkit-border-bottom-right-radius (우측 하단 모서리) */ .div_outsider {display : table} .div_outsider_round { display : .. 2010. 7. 23.
JSTL expected expected one of ["}", ".", ">", "gt", "=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||", "?"] 2010. 7. 7.
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('실패 하였습니다.');} }); Request와 같이 Loding, Success, Complate, Failure 등의 Callback 기능을 사용할수 있다. Prototype API를 봤더니, onFailure만 있어서 실패 했을 경우의.. 2010. 6. 9.
728x90