'작업노트/HTML & Script'에 해당되는 글 15건

  1. 2009.10.07 JTidy (HTML Parser)
  2. 2009.03.13 scrollHeight / clientHeight / scrollTop
  3. 2008.11.19 ActiveX가 있는 페이지에서는 레이어 처리가 불가능하다.
  4. 2008.11.07 IETester
  5. 2008.11.06 [퍼온글] 가장 원했던 Ajax 기술들: 50개 이상의 예제와 자습서
  6. 2008.11.03 HTML에서 문서 형식(Doctype) 지정의 중요성 2
  7. 2008.10.30 [Ajax] innerHTML 삽입시
  8. 2008.08.26 프레임구조에서 전체화면에 링크 반영하기
  9. 2008.02.02 전체선택을 위한 자바스크립트 코드
  10. 2008.01.05 아이프레임 리사이즈 문제 해법
작업노트/HTML & Script l 2009. 10. 7. 10:34

http://www.sunspell.net/160

좋은 글이다..
작업노트/HTML & Script l 2009. 3. 13. 17:49
작업노트/HTML & Script l 2008. 11. 19. 18:01
http://www.my-debugbar.com/wiki/IETester/HomePage

IETester is a free WebBrowser that allows you to have the rendering and javascript engines of IE8 beta 2, IE7 IE 6 and IE5.5 on Vista and XP, as well as the installed IE in the same
작업노트/HTML & Script l 2008. 11. 7. 13:20

=========================================

 

Noupe에서 '가장 원했던 Ajax 기술들: 50개 이상의 예제와 자습서'라는 글을 올렸습니다. Ajaxian에서도 다루었던 프로젝트들도 많지만, 새로운 것들도 있습니다. 한 자리에 모여있는 Ajax 기술들을 한번 주욱 살펴보시죠(위 링크로 들어가면 이미지도 포함되어 있습니다).

Ajax Forms

ShoutBox

Validate a Username AJAX

Ajax 메신저

Ajax 탭 컨텐트

Ajax 장바구니

Ajax 별점 매기기

Ajax 인라인 에디트

Ajax 프로그레스 바

Ajax 페이징

Ajax 파일 브라우저 & 관리자

Ajax 캘린더

Ajax 사진 관리

Ajax 이미지 갤러리와 슬라이드쇼

Ajax 파일 업로드

Ajax 자동완성

웹에디터

투표

테이블 데이터 관리

기타



from Groups of 50+ Ajax Examples
작업노트/HTML & Script l 2008. 11. 6. 13:32

LiteBox를 구현하다가 뜻한 바대로 이루어지지 않아서,

알아본 결과

DOCTYPE 에 문제가 있었다.

http://blog.naver.com/ldbina/120054114821

나중에 읽어 봐야겠다.
작업노트/HTML & Script l 2008. 11. 3. 14:32

innerHTML 을 이용하여 내용을 삽입할 때,
삽입할 내용에

<html><head></head><body></body></html>

이러한 완전한 구조의 html문서가 포함되어있을 경우
body의 backgroundImage가 초기화 되는 등의 영향을 미칠 수 있다.(firefox에서..)

IE에서도 페이지 첫 로딩시에 innerHTML로 삽입될 경우 오류창이 뜬다.


해결책)
삽입할 내용 중에서 <body></body>안에 들어있는 알맹이만 빼고
나머지는 제거해줘야 안전하게 돌아간다.

또한, innerHTML 삽입은 body 엘리먼트 로딩이 끝난 후 진행되도록 처리한다.
예) document.body.onload = functino { abc() }
작업노트/HTML & Script l 2008. 10. 30. 12:53
프레임 구조에서는 항상 링크에 타겟이 지정되어야 한다.

그렇지 않으면 현재 프레임, 자신의 프레임에 링크가 반영되기 때문이다.

전체 페이지로 타겟을 지정하기 위해서는

<a href="../index.do" target="_top">

요로케

타겟에 "_top" 이라고 지정해줘야한다.
작업노트/HTML & Script l 2008. 8. 26. 14:41

<script type="text/javascript">
function select_all() {
 var all = document.getElementById("selectAll");
 var list = document.getElementsByName("checkList[]");
 
 if(!all.checked) {//전체선택 체크박스가 해제되었다면
  for(var i = 0; i <= list .length - 1 ; i++) {//모든 체크박스를 체크해제
   list[i].checked = false;
  }
 } else { //그게 아니라면
  for(var i = 0; i <= list .length - 1 ; i++) {
   list [i].checked = true;//모든 체크박스를 체크
  }
 }  
}
</script>


.......................................
<tr>
    <td>
        <input type="checkbox" name="selectAll" onClick="select_all()">          
    </td>
</tr>
<tr>
    <td>
        <input type="checkbox" name="checkList[]" value="딸기">
        <input type="checkbox" name="checkList[]" value="사과">
        <input type="checkbox" name="checkList[]" value="배">
        <input type="checkbox" name="checkList[]" value="귤">
<!-- 자바 struts 사용시 ActionForm에서 array로 받으려면  '[]' 이녀석을 꼭 붙여줘야 한다.-->
    </td>
<tr>
....................................

원래 코드에서 수정하고 테스트는 안해보았음.

작업노트/HTML & Script l 2008. 2. 2. 11:35

How To Resize an IFrame to the Size of Its Contents Without Displaying Scroll Bars

Article ID : 278469
Last Review : November 23, 2006
Revision : 4.1
This article was previously published under Q278469

SUMMARY

In certain situations, you may want to resize an IFrame so that all of its document contents are visible, but no scroll bars are displayed on the page. This article describes how to do this.

Back to the top

MORE INFORMATION

To determine the size of the IFrame's contents, you must access the height and width properties of the underlying IFrame document. Because you only have scripting access to pages that are hosted in the same domain, you can only access the properties to the pages that are hosted within the same domain (for example, Cross Frame Scripting). Therefore, the source document of the IFrame must be from the same domain as the page that contains the IFrame.

The following code demonstrates how to resize an IFrame in this way. Create a new .htm document, and paste the following HTML code. In the SRC attribute for the IFrame, you must supply an HTML page from the same domain that the IFrame loads.

NOTE: This technique may not work correctly if there are absolutely positioned elements that are residing within the IFrame.
<HTML>
<HEAD>
<SCRIPT LANGUAGE=javascript>
<!--
function reSize()
{
	try{	
	var oBody	=	ifrm.document.body;
	var oFrame	=	document.all("ifrm");
		
	oFrame.style.height = oBody.scrollHeight + 
(oBody.offsetHeight - oBody.clientHeight); oFrame.style.width = oBody.scrollWidth +
(oBody.offsetWidth - oBody.clientWidth); } //An error is raised if the IFrame domain !=
its container's domain catch(e) { window.status = 'Error: ' + e.number + '; ' + e.description; } } //--> </SCRIPT> </HEAD> <BODY onload=reSize()> <iframe onresize=reSize() id=ifrm src=YOUR_PAGE_HERE></iframe> </BODY> </HTML>
This example uses try and catch to check for domain consistency, which are only available with Internet Explorer 5 and later. This error checking is included for illustration purposes and is not absolutely necessary; it only allows the script to fail gracefully.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:
https://partner.microsoft.com/global/30000104 (https://partner.microsoft.com/global/30000104)
For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS (http://support.microsoft.com/default.aspx?scid=fh;en-us;cntactms)

Back to the top

REFERENCES

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
167796 (http://support.microsoft.com/kb/167796/EN-US/) PRB: Permission Denied Error Message When Scripting Across Frame
For more information about measuring element dimensions and locations, see the following Microsoft Developer Network (MSDN) Web site:
http://msdn.microsoft.com/workshop/author/om/measuring.asp (http://msdn.microsoft.com/workshop/author/om/measuring.asp)
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
http://msdn.microsoft.com/ie/ (http://msdn.microsoft.com/ie/)

http://support.microsoft.com/iep (http://support.microsoft.com/iep)

Back to the top

작업노트/HTML & Script l 2008. 1. 5. 13:01
1 2 

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

카테고리

분류 전체보기 (117)
작업노트 (98)
Error Handling (19)
JAVA (8)
JSP & Servlet (6)
Framework (10)
HTML & Script (15)
IDE (3)
LINUX (4)
Books (2)
Search Engine (7)
etc. (10)
Developer's Diary (13)
Patterns (0)
Database (1)
거미줄세상 (12)
쌓기 (1)
책읽기 (0)
Reviews (4)

달력

«   2024/05   »
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
get rsstistory! Tistory Tistory 가입하기!