참조 : http://blogdoc.nate.com/465881 

위페이지에 정리가 잘되어있어요.



제목을 정하기가 좀 나쁘네요 ^^;;

Internet Explorer 7.0에서는

전체 창으로 새창을 띄웠을 때

창을 닫을까요 하고 물어 봅니다.

이 물음 없이 닫는 스크립트 입니다.

window.close();

또는

self.close();

대신에


window.open('about:blank','_self').self.close();

이렇게 쓰시면 됩니다.

 

현재창이 닫혀야 되는 창이 아닌경우 아래.. 참조.  <-- 2015.11.12 수정

참조 : http://opencode.co.kr/bbs/board.php?bo_table=javascript_tips&wr_id=48&sfl=&stx=&sst=wr_id&sod=desc&sop=and&page=2

위페이지에 정리가 잘되어있어요.

 

window.close()를 하면, 창을 닫을 것인지 확인하게 되는데

그런 과정없이 그냥 닫아야 할 때는 아래처럼 하면 됩니다.

<script language="JavaScript">
if (window.name !== 'window_id') {
window.open('about:blank','_self');
opener=window;
window.close();
}
</script>

Posted by 말없제이
,
[출처] PARTNER114 - http://www.partner114.com/bbs/board.php?bo_table=B81&wr_id=30
주소창에 아이콘 넣기.
해더와 해더사이에 넣으세요 이미지 확장자는  ico
<link rel="SHORTCUT ICON" href="http://www.minicard.co.kr/favicon.ico">
Posted by 말없제이
,

<span id="lblNtcYN" style="font-color:red;">선택하신 등록공종은 등록 신청이 불가능합니다.</span>
<font color="red">선택하신 등록공종은 등록 신청이 불가능합니다.</font>

<script>
function idChk()
{
    var reg_Exp1 = new RegExp("[a-zA-Z]+","g");
 var reg_Exp2 = new RegExp("[0-9]+","g");
 var reg_Exp3 = new RegExp("^[0-9a-zA-Z]*$","g");
 var matchStr = "123456a";
    var match1 = reg_Exp1.exec(matchStr);
 var match2 = reg_Exp2.exec(matchStr);
 var match3 = reg_Exp3.exec(matchStr);
 
 
 if(matchStr == "")
    {
        //document.getElementById("txtSearchID").focus();
        alert('아이디를 입력해주세요');
        return false;
    }else if(matchStr.length != 7)
    {
        //document.getElementById("txtSearchID").focus();
        alert('아이디는 7자로 입력해주세요');
        return false;
    }
    else if(!match1 || !match2 || !match3)
 {
    
  alert('아이디는 영문,숫자 조합을 사용하셔서 입력해주세요'+match1+":"+match2+":"+match3);
  return false;
 }
 alert('조합값 : '+match1+":"+match2+":"+match3);
}
</script>

<script>idChk();</script>

Posted by 말없제이
,

DHTMLEdit 를 이용한것임.
처음엔 팝업을 기본적으로 띠워보고,.. 안된다 싶을때 DHTML 에디터 액티브X를 가동시킨후 그것을 통해서 팝업을 띠움.

테스트 예제는 http://test.kilho.net/popup.html

-----------------------------------------------------------------------

<script language = "javascript">
////////////////////////////////////////////////////////////
//
// 홈페이지,프로그램 제작의뢰 : http://www.cretec.co.kr
//
///////////////////////////////////////////////////////////

function k_Popup(url,target,flag)
{
  var objPopup = window.open(url,target,flag);

  // 팝업창이 차단되면 window.open()함수는 리턴 값으로 null을 반환함.
  if (objPopup == null)
  {
    document.write("<object id='DHTMLEdit' classid='clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A' width='1' height='1' align='middle'><PARAM NAME='ActivateApplets' VALUE='1'><PARAM NAME='ActivateActiveXControls' VALUE='1'></object>");
    setTimeout('k_Popup2("'+url+'","'+target+'","'+flag+'")', 500);
  }
}

function k_Popup2(url,target,flag)
{
  try
  {
    DHTMLEdit.DOM.Script.execScript('window.open("'+url+'","'+target+'","'+flag+'")');
  }
  catch (e)
  {
    // DHTML ActiveX 까정 없을때 ^^
  }
}

// 사용법 k_Popup('주소','프레임','옵션');
k_Popup("http://test.kilho.net/poptest.html","","width=500,height=500");
</script>


--------------------------

Posted by 말없제이
,
사용자 삽입 이미지
 ER-WIn 띄울때.. 경고창.. 읽어보면 -- 이유를 알지만.. 그냥 넘기기 일수...
사용자 삽입 이미지
사용자 삽입 이미지
물리적 이름이 안보임 --.. 허걱.. 처음엔 버전 탓이라고 생각했으나..
원인은 그것이 아니라, 네이밍이 안되어서 그렇다는..
해당 nsm을 연결시켜주면 끝.

연결방법 :
사용자 삽입 이미지
사용자 삽입 이미지
Posted by 말없제이
,
실행 중에 전체 컴파일(코드 디렉터리)
지금까지 설명한 세 가지 컴파일 방법 모두, 배포하기 전에 모든 코드 파일(코드 숨김 파일 및 지원 클래스)을 컴파일해야 합니다. ASP.NET 2.0에서는 코드 디렉터리를 사용할 수 있습니다.

코드 디렉터리는 컴파일되지 않은 클래스를 보관하는 특수 디렉터리입니다. 실행 중에 ASP.NET 런타임은 응용 프로그램에서 ASPX 페이지가 자동으로 참조하는 어셈블리로 이 디렉터리의 콘텐츠를 컴파일합니다. 즉, 코드 디렉터리를 사용함으로써 지원 코드에 대해 별도의 어셈블리를 만들고 참조하지 않아도 됩니다. 코드 디렉터리의 장점은 프로젝트를 완전히 컴파일하지 않고 배포할 수 있으므로 잠재적인 불일치 문제를 줄일 수 있다는 점이며, 단점은 서버에서 컴파일되지 않은 코드가 노출된다는 점입니다.

=== = == = == = =
매 컴파일하다보니 - -..
있었다는걸 잊어버리는..
Posted by 말없제이
,

매일 str.equals("xx") 할때 null 체크하던것을..
저런 습관이면 생략이 가능하군요--  

---Tip------------------------------------------------------
    String을 비교할 때의 Tip입니다.

    public void showHI(String str0)
    {
        if( str0.equals("TEST") ) System.out.println("Hi!!!");
    }

    이런 코드가 있을 수 있겠죠.
    showHI("TEST")의 결과는 Hi!!!입니다..
    showHI("테스트")의 결과는      입니다..(blank)
    그럼,
    showHI(null)의 결과는 무엇일까요?
    바로 NullPointException입니다...
    왜냐하면, equals()를 가진 str0자체가 null이기 때문에 equals()를 사용할 수
    없기 때문입니다.
    위의 메소드는 아래처럼 변경되어야 합니다.

    public void showHI(String str0)
    {
        if( "TEST".equals(str0) ) System.out.println("Hi!!!");
    }

    이 코드는 null이 들어와도 blank입니다.
    100%확실한 객체인 "TEST"를 사용하는 것이
    99.9999%의 확실성을 가진 str0 객체를 사용하는 것보다 좋습니다.

    일반적으로 String 비교를 사용할 때는
    비교할 문자열의 equals()를 사용하는 습관을 가져 주십시요.
    (물론 선택의 문제입니다.)
    ------------------------------------------------------------


==================================================
최초작성일 : 2002년 1월 25일

최종수정일 : 2004년 11월 1일
 - - -

참조 :
http://blog.daum.net/bifrost0076/6030209
2008.10.07 21:42 에 올린자료.

Posted by 말없제이
,


/* 화면 확대 축소 시작 IE 전용 */
 var nowZoom = 100; // 현재비율
 var maxZoom = 200; // 최대비율(500으로하면 5배 커진다)
 var minZoom = 80; // 최소비율


 //화면 키운다.
 function zoomIn() {
  if (nowZoom < maxZoom) {
   nowZoom += 10; //25%씩 커진다.
  } else {
   return;
  }

  document.body.style.zoom = nowZoom + "%";
 }


 //화면 줄인다.
 function zoomOut() {
  if (nowZoom > minZoom) {
   nowZoom -= 10; //25%씩 작아진다.
  } else {
   return;
  }

  document.body.style.zoom = nowZoom + "%";
 }

/* 화면 확대 축소 끝 */
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

Posted by 말없제이
,

형식이 기억이 안날때..

//------------------------
ASP 스타일 태그
    <%  ........   %>     :  스크립틀릿(scriptlet)
    <%!  .......   %>     :  정의(define)
    <%--  ...  --%>     :  주석(comment)
    <%@  .....   %>     :  지시어, 디렉티브(directive)
    <%=  .......   %>     :  표현, 익스프레션(expression)

XML 스타일 태그
    액션 스크립트
        <jsp:useBean ................. />
           : 자바 빈즈 사용하는 액션 스크립트

        <jsp:setProperty ................. />
                  : 빈즈 객체에 값 저장하는 액션 스크립트

        <jsp:getProperty ................. />
                  : 빈즈 객체에서 값 가져오는 액션 스크립트

        <jsp:include ................. />
                  : 인클루드 액션 스크립트

    커스텀 태그(custom tag) 또는 태그 라이브러리(tag library)
        <%@ taglib uri="......." prefix="myTag" %>
                 : 디렉티브로 태그라이브러리를 지정

        <myTag:attribute  name="value" />
                 : 태그명과 어트리뷰트명을 사용 (바디가 없는 태그)

        <myTag:attribute  name="value">....</myTag:attribute>
                 : 태그명과 어트리뷰트명을 사용 (바디가 있는 태그)

        커스텀 태그의 사용 예:
             중첩 태그의 사용:
                    <myTag:if>
                       <myTag:condition>바디</myTag:condition>
                       <myTag:then>바디</myTag:then>
                       <myTag:else>바디</myTag:else>
                    </myTag:if>

             반복 태그의 사용:
                     <myTag:loop>
                        바디
                     </myTag:loop>

    JSTL(JSP 스탠다드 태그 라이브러리, JSP standard tag library)
        <%@ taglib uri="http://java.sun.com/jsrl/core" prefix="c" %>
                     : 스탠다드 코어(core) 태그

        <%@ taglib uri="http://java.sun.com/jsrl/xml" prefix="x" %>
                     : 스탠다드 XML 태그

        <%@ taglib uri="http://java.sun.com/jsrl/fmt" prefix="fmt" %>
                     : 스탠다드 국제화(i18n) 및 형식화(format) 태그

        <%@ taglib uri="http://java.sun.com/jsrl/sql" prefix="sql" %>
                     : 스탠다드 SQL 태그


        커스텀 태그의 사용 예:
             코어 태그의 종류:
                  EL 지원:
                            <c:out />
                            <c:set />
                            <c:remove />,
                            <c:catch />

                  흐름 제어:
                            <c:choose />
                             <c:when />
                             <c:otherwise />
                             <c:forEach />
                             <c:forTokens />
                             <c:if />

                   URL 관리:
                             <c:import />
                            <c:redirect />
                            <c:url />

                     
             XML 태그의 종류:

                  기본:
                             <x:out />
                             <x:set />
                             <x:parse />

                  흐름 제어:
                             <x:choose />
                            <x:when />
                            <x:otherwise />
                            <x:forEach />
                             <x:if />

                   변환:
                             <x:transform />

 
             국제화 형식화  태그의 종류:
                   로케일 설정:
                            <fmt:setLocale />
                            <fmt:requestEncoding />

                   메시지 처리:
                          <fmt:bundle />
                          <fmt:message />
                          <fmt:param />
                          <fmt:setBundle />

                   숫자, 날짜 형식:
                           <fmt:formatNumber />
                           <fmt:formatDate />
                         , <fmt:parseNumber />
                           <fmt:parseDate/>
                           <fmt:setTimeZone />
                           <fmt:timeZone/>

             SQL 태그의 종류:
                   테이터 소스 설정:
                           <sql:setDataSource />

                   SQL:
                           <sql:query />
                           <sql:dateParam />
                           <sql:param />
                           <sql:update />
                           <sql:transaction />


   스트럿츠 프레임워크
        <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
                           :  스트럿츠 빈즈 태그  라이브러리 디렉티브

        <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
                           :  스트럿츠 논리 태그  라이브러리 디렉티브

        <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
                           :  스트럿츠 html 태그  라이브러리 디렉티브

        <%@ taglib uri="/WEB-INF/tlds/nested-html.tld" prefix="nested" %>
                           :  스트럿츠 중첩 태그  라이브러리 디렉티브

        <%@ taglib uri="/WEB-INF/tlds/nested-template.tld" prefix="template" %>
                           :  스트럿츠 탬플릿 라이브러리 태그  디렉티브

        <%@ taglib uri="/WEB-INF/tlds/nested-tiles.tld" prefix="tiles" %>
                           :  스트럿츠 타일즈 태그  디렉티브


Posted by 말없제이
,

JDBC Driver 정리

DevTool/JSP 2010. 6. 4. 11:19

*.JDBC Driver 정리

http://cafe.naver.com/webprogrammer2.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=47\
위사이트 참조.


DB2
Vendor Site  http://www.ibm.com/db2/
Driver Name  com.ibm.db2.jcc.DB2Driver
Sample URL  jdbc:db2://127.0.0.1:50000/dbname

Derby
Vendor Site  http://db.apache.org/derby/
Embedded
Driver Name  org.apache.derby.jdbc.EmbeddedDriver
Sample URL  jdbc:derby:path-to-hsql-db-files;create=true
Remote Server
Driver Name  org.apache.derby.jdbc.ClientDriver
Sample URL  jdbc:derby://127.0.0.1/testdb

FireBird (Interbase)
Vendor Site  http://firebird.sourceforge.net/
Driver Name  org.firebirdsql.jdbc.FBDriver
Sample URL  jdbc:firebirdsql:127.0.0.1/10007:/path-to-dbname.fdb

FrontBase
Vendor Site  http://www.frontbase.com/
Driver Name  jdbc.FrontBase.FBJDriver
Sample URL  jdbc:FrontBase://127.0.0.1/dbname

HSQLDB
Vendor Site  http://hsqldb.sourceforge.net/
Driver Name  org.hsqldb.jdbcDriver
Embedded
Sample URL  jdbc:hsqldb:file:/path-to-hsql-db-files
Remote Server
Sample URL  jdbc:hsqldb:hsql://127.0.0.1

Ingres
Vendor Site  http://opensource.ca.com/projects/ingres/
Driver Name  com.ingres.jdbc.IngresDriver
Sample URL  jdbc:ingres://127.0.0.1:II7/dbname

MySQL
Vendor Site  http://www.mysql.com/
Driver Name  com.mysql.jdbc.Driver
Sample URL  jdbc:mysql://127.0.0.1/dbname

OpenBase
Vendor Site  http://www.openbase.com/
Driver Name  com.openbase.jdbc.ObDriver
Sample URL  jdbc:openbase://127.0.0.1/dbname

Oracle (10i)
Vendor Site  http://oracle.com/
Driver Name  oracle.jdbc.driver.OracleDriver
Sample URL  jdbc:oracle:thin:@//127.0.0.1:1521/dbname

Oracle (8, 8i, 9i)
Vendor Site  http://oracle.com/
Driver Name  oracle.jdbc.driver.OracleDriver
Sample URL  jdbc:oracle:thin:@127.0.0.1:1521:dbname

PostgreSQL (7.4, 8.*)
Vendor Site  http://www.postgresql.org/
Driver Name  org.postgresql.Driver
Sample URL  jdbc:postgresql://127.0.0.1:5432/dbname

SQLServer
Microsoft Driver - SQL Server 2005
Vendor Site  http://www.microsoft.com/sql/default.asp
Driver Name  com.microsoft.sqlserver.jdbc.SQLServerDriver
Sample URL  jdbc:sqlserver://127.0.0.1;databaseName=dbname

Microsoft Driver - SQL Server prior to 2005
Vendor Site  http://www.microsoft.com/sql/default.asp
Driver Name  com.microsoft.jdbc.sqlserver.SQLServerDriver
Sample URL  jdbc:microsoft:sqlserver://127.0.0.1;databaseName=dbname;SelectMethod=cursor

jTDS Driver
Vendor Site  http://jtds.sourceforge.net/
Driver Name  net.sourceforge.jtds.jdbc.Driver
Sample URL  jdbc:jtds:sqlserver://127.0.0.1:5000/dbname

Sybase
Sybase Driver
Vendor Site  http://www.sybase.com/
Driver Name  com.sybase.jdbc3.jdbc.SybDriver
Sample URL  jdbc:sybase:Tds:127.0.0.1:5000/dbname

jTDS Driver
Vendor Site  http://jtds.sourceforge.net/
Driver Name  net.sourceforge.jtds.jdbc.Driver
Sample URL  jdbc:jtds:sybase://127.0.0.1:5000/dbname;useLOBs=false;TDS=4.2

참고 사이트
http://cwiki.apache.org/CAY/database-support.html



Posted by 말없제이
,