이것저것 알아봤는데

asx파일을 생성시켜 이걸 읽어들이는 방법이 제일 무난하다고 생각

java.io를 이용하여 asx생성을 하고 javascript 에서는 특정 asx파일만 읽어들이게 한다.

 

개선의 여지가 많다..

한개의 재생목록이 아닌 사용자별로 각각 다른 재생목록필요시 문제가 될수있다..

'개인적인 프로그램 > JAVA/JSP' 카테고리의 다른 글

request 라인단위로 읽기  (0) 2011.10.26
java 썸네일 thumbnail  (0) 2011.10.26
흠 static{} 이걸 왜 쓰는걸가?  (0) 2011.10.26
CalendarUtil을 만들면서..  (0) 2011.10.26
util을 만들면서...  (0) 2011.10.26
Posted by 삽지리
,

왜 이걸 몰랐을까? 라는 생각이 든다.

창의 크기를 줄이고 늘렸을때 특정 엘리먼트의 크기가 변해야되는 일이 있었을때

내가 생각한건 setinterval 함수로 계속 체크를 해주는 방법이였다.

벗뜨 onresize라는 이벤트가 있었으니.

다음은 msdn에서 퍼온것이다.

여기서 놀란것은 난 window.onresize 만 생각했는데

div.onresize도 있넴.. 흠좀무

출처 : http://msdn2.microsoft.com/en-us/library/ms536959(VS.85).aspx

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

onresize Event

Fires when the size of the object is about to change.

Syntax

Inline HTML <ELEMENT onresize = "handler" ... > All platforms
Event property object.onresize = handler JScript only
object.onresize = GetRef("handler") Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = object EVENT = onresize> Internet Explorer only

Event Information

Bubbles No
Cancels No
To invoke Change the height or width of the object.
Default action No default action.

Event Object Properties

Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query the event object for the following event properties.

Available Properties

altKey Sets or retrieves a value that indicates the state of the ALT key.
altLeft Sets or retrieves a value that indicates the state of the left ALT key.
clientX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
clientY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
ctrlKey Sets or retrieves the state of the CTRL key.
ctrlLeft Sets or retrieves the state of the left CTRL key.
offsetX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the object firing the event.
offsetY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event.
returnValue Sets or retrieves the return value from the event.
screenX Sets or retrieves the x-coordinate of the mouse pointer's position relative to the user's screen.
screenY Sets or retrieves the y-coordinate of the mouse pointer's position relative to the user's screen.
shiftKey Sets or retrieves the state of the SHIFT key.
shiftLeft Retrieves the state of the left SHIFT key.
srcElement Sets or retrieves the object that fired the event.
type Sets or retrieves the event name from the event object.
x Sets or retrieves the x-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.
y Sets or retrieves the y-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.

Remarks

The onresize event fires for block and inline objects with layout, even if document or CSS (cascading style sheets) property values are changed. Objects have layout when measurements such as the height and width attributes are set, or when the position of the object is set. Intrinsic objects, such as button, and windowed objects, such as window and iframe, fire as expected. This event does not fire for files with embedded controls.

Resizing HTML applications also fires the onresize event.

Standards Information

There is no public standard that applies to this event.

Applies To

A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, CUSTOM, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, FRAME, hn, HR, I, IMG, INPUT type=button, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, window, XMP

 

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

Posted by 삽지리
,

간단히 말해서

상위 엘리먼트에 overflow: auto 를 줬다

참조 :

http://hyeonseok.com/soojung/web/2005/03/07/123.html

그런데 ie6에서 상위엘리먼트가 하위를 덮어서 하위레이어가 안보인다.

이이유가 haslayout과 관련된 버그란다..

그래서 다시 그 상위엘리먼트에 zoom:1;을 주었다

참조 :

http://crowelee.wordpress.com/2007/01/26/ie-css-bug-fix-hack/

 

http://stophobia.tistory.com/90

Posted by 삽지리
,