1. 체크박스 선택 유무   :::::   방법 1

 var iCkecked = 0 ;
   $("input[name^=ckbTemplet]").each(function(){
        if(this.checked){
         iCkecked++;
        }
       });
   if(iCkecked ==0 ){
    modal.alert(" 파일을 선택해주세요.");
    return;
   }

 

 체크박스 선택 유무 ::::: 방법 2

 

 $('input:checkbox[name=userGroup]:checked').length

 

 

 라디오 값 가져오기
 
$('input:radio[name=timeType]:checked').val()

 

 

 

 

 2.  trim

  var str = $.trim(value);

 

 

 

3. 선택된 값 읽기

 

$("#select_box option:selected").val();
$("select[name=selectbox]").val();

jQuery로 선택된 내용 읽기
$("#selectbox option:selected").text();

 

 

 

 

 

 

 

http://hanjiq.egloos.com/2358924 기초 예제

http://pat.im/906 -박스 서서히 사라지는 예제

http://rubis.tistory.com/294  ajax 예제

http://leandrovieira.com/projects/jquery/lightbox/ 이미지 박스에 하이라이트

http://www.mimul.com/pebble/default/2007/11/10/1194695220000.html  이미지 로더 ? 반만 다운후 다보이게

포문

 <html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript"
 src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript">    function test() {        var a = 0;        var su =1;        $('div:[id^=div]').each(//각각div:안에 있는  div로 시작()^=)하는 id 호출함                function(){                    a +=0.25;//this는 자바 속성인데 $(안에 들어가면 jquery 추가됨)                    $(this).html(su++).css('background', 'rgba(255,0,0,'+a+')')                    .css('textAlign', 'center');//html(이안에 html로 쓰겠다는 소리)                })    }</script>
</head>
<body>
 <input type="button" value="바꾸기" onclick="test()">
 <div id="div1" style="border: 1px dotted; width: 300px; height: 50px;"></div>
 <div id="div2" style="border: 1px dotted; width: 300px; height: 50px;"></div>
 <div id="div3" style="border: 1px dotted; width: 300px; height: 50px;"></div>
 <div id="div4" style="border: 1px dotted; width: 300px; height: 50px;"></div>
</body>
</html>

 

http://findfun.tistory.com/404  --예제 많음

--> http://findfun.tistory.com/421  ---- trim

--> http://findfun.tistory.com/414   ----- 오브젝트 배열로 만들기 ~

--> http://findfun.tistory.com/410 ---숫자 체크

--> http://findfun.tistory.com/408 -- isPlainObject()  오브젝트 가 맞는지 확인

--> http://findfun.tistory.com/403 -- each 반복문 ..

--> http://findfun.tistory.com/401   -- ajax 할때 파라메타 쉽게 만들기

--> http://findfun.tistory.com/400 -- ajax post

http://blog.naver.com/tweety2411?Redirect=Log&logNo=100161568560   ajax 파일 업로드

http://malsup.com/jquery/form/#file-upload 파일 업로드

http://stackoverflow.com/questions/2259551/spring-3-0-making-json-response-using-jackson-message-converter?rq=1  

전자정부프레임워크 공통컴포넌트 첫난관! 전자정부프레임워크

2012/04/09 17:25

복사http://blog.naver.com/9942077/150136043232

에러 내용 :

Error configuring application listener of class org.springframework.web.context.ContextLoaderListener


전자정부프레임워크의 개발 준비를 마친 후 기본 프로젝트를 생성하고 공통컴포넌트를 추가하면 이와같은 에러가 빡 난다!!


아놔~ 이거 뭐야..


ClassNotFoundException

pom.xml

즉, tomcat을 띄울때 이넘이 jar파일(pom.xml에 설정해준(dependencies로))을

설정


프로젝트의 오른쪽마우스 클릭 -> Properties -> Deployment Assembly -> Add -> Java Build Path Entries -> Next -> Maven Dependencies -> Finish

package util;

import java.io.File;

public class ShowFileList  {

 public static void main(String[] args) throws Exception {
   try {
           

     String dir = "D";//
             (new ShowFileList()).showFileList(dir);

         } catch (Exception ex) {
             ex.printStackTrace();
         }


 }
 
 public void showFileList(String path) throws Exception {
        File dir = new File(path);
        File[] files = dir.listFiles();

        for (int i = 0; i < files.length; i++) {
            File file = files[i];

            if (file.isFile()) {
             String strFileName = file.getCanonicalPath().toString().toLowerCase();
             if( strFileName.indexOf(".svn") == -1 &&  (strFileName.indexOf(".java") > -1  || strFileName.indexOf(".xml") > -1)   )
              System.out.println("[File]"+file.getCanonicalPath().toString().replace("\\", "/").replace(".java", ".class"));
              
            } else if (file.isDirectory()) {
               // System.out.println("[Directory]"+file.getCanonicalPath().toString());
                try {
                    showFileList(file.getCanonicalPath().toString());
                } catch (Exception e) {
                }
            }

        }
    }

 
 
 
}



겁나 귀여움
3단고 음 쩌내요 ㅎㅎ
아이쿸 하나 둘~아임인마드뤼~이이이이이이이이이이이이이이익에에ㅞㄱ[ㅇ[ㄱ아아으아아아~ 이러케 조흔날 하아 흙흙흞
노량진 수산시장 대하

내가 먹어본 대하중에 잴잘구운대하 전문가가 구운낌 ㅎㅎ

iPhone 에서 작성된 글입니다.

java.util.Date d = new java.util.Date();
    SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");
    //marketSearchBean.setStartDt(DateCalcUtil.addDate(-365, df.format(d)));    
    //marketSearchBean.setEndDt(DateUtil.toDate());

프로젝트 - > 오른쪽 마우스  -> java Build path
web app Libaries  언바운드이면

삭제 후

add library  -> web appLibraires 선택 넥스트-> 확인


인터넷 익스플로러에서 작업을 하는 중에,
AJAX로 만들어진 요청이 계속해서 같은 값만을 불러 오는 경우가 발생..

익스플로러에서 같은 파라미터 값을 갖는 URL 요청을,
캐쉬되어 미리 저장하고 있던 페이지로만 반복해서 리턴해서 발생한 문제였다.

이러한 문제의 해결법은, 아래와 같은 방법이 있을 수 있겠다.

response.setDateHeader("Expires", -1);
response.setHeader("Pragma", "no-cahce");
response.setHeader("Cache-Control", "no-store"); //HTTP 1.0
response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1

또는,

ajax 요청에 사용되는 URL 끝에 유니크한 파라미터 값을 붙여서 날리는 방법이 있다.

ex) Math.round(Math.random()* (new Date().getTime())); :)

참고 :
http://savour.tistory.com/tag/cache-control
스크립트단

escape(encodeURIComponent('한글 파라메타값'))

java단

URLDecoder.decode("받은 데이터","UTF-8")

var iCnt = 0 ;
  for(var i=0; i<document.fm.elements["파라메타명"].length ; i++){
   if(document.fm.elements["파라메타명"][i].checked ==true)
    iCnt++;
  }
if (iCnt ==0) {
   alert("선택해주세요");
   document.fm.elements["파라메타명"][0].focus();  
   return;
  }