Web
posted by These Days 2016. 4. 25. 18:00

[Windows 7 Application Compatibility episode 6]


One of my customers came to me and asked why IE8 cannot open a 140px wide window.


Well, if you drag IE border and resize IE window to the minimum, it can be as small as 250px wide x 100px tall.


That’s the minimum window, which means you cannot 140px wide window anymore with IE7 or later.


But if you use open Method, the constraints are as follows:


width = number 
Internet Explorer 7. Sets the width of the window in pixels. The minimum value is 250, and specifies the minimum width of the browsers content area. 

Prior to Internet Explorer 7 the minimum height value is 100.

 

height = number 
Internet Explorer 7. Sets the height of the window in pixels. The minimum value is 150, and specifies the minimum height of the browser content area. 

Prior to Internet Explorer 7 the minimum height value is 100.

As for the height, you can set the value down to 100, not 150.


But these values are for the content, I mean these sizes don’t include the frame size. So, the window can be smaller if you drag the window border.


If you want to set the window to the smallest, I think you need to use resizeTo Method


When you use this method, you can set the height to 58px and the width to 230px, which is the smallest content size.


You can also use showModalDialog Method and showModelessDialog Method, and these contraints apply the same to these methods.


So, anyway you cannot open 140px wide window anymore… I think you need to redesign your window.


https://blogs.msdn.microsoft.com/nevermet/2009/12/28/the-minimum-ie-window-size/

posted by These Days 2014. 3. 31. 08:11

Anchor | anchors array | Applet | applets array | Area | Array | Button | Checkbox | Date | document | 

FileUpload | Form | forms array | frames array | Hidden | History | history array | Image | images array | 

Layers | layers array | Link | links array | location |Math | MimeType | mimeTypes array | navigator | 

Number | Option | options array | Password | Plugin | plugins array | Radio |radio array | Reset | screen | 

Select | String | Submit | Text | Textarea | window

 

※ 녹색은 네츠케이프, 혹은 익스플로러 전용으로만 사용되는 객체(속성,메소드)입니다

객체(Object)

속성(Property)

메소드(Method)

이벤트핸들러(Event Handler)

Anchor

name
text
x
y

 

 

anchors array

length

 

 

Applet

 

applet's methods

 

applets array

length

 

 

Area

hash
host
gostname
href
pathname
port
protocol
search
target

 

onClick
onmouseOut
onmouseOver

Array

length

concat
join
pop
push

reverse
shift
slice
sort
unshjft

 

Button

form
name
type
value

blur
click
focus

onClick
onmouseDown
onmouseUp

Checkbox

checked
defaultChecked
form
name
type
value

blur
click
focus

onClick
onmouseDown
onmouseUp 

Date

 

getDate
getDay
getFullYear
getHours
getMilliseconds
getMinutes
getMonth
getSeconds
getTime
getTimezoneOffset
getUTCDate
getUTCDay
getUTCFullYear
getUTCHours
getUTCMilliseconds
getUTCMinutes
getUTCMonth
getUTCSeconds
getYear
parse
setDate
setFullYear
setHours
setMilliseconds
setMinutes
setMonth
setSeconds
setTime
setUTCDate
setUTCHours
setUTCMilliseconds
setUTCMinutes
setUTCMonth
setUTCSeconds
setYear
goGMTString
toLocaleString
toString
toUTCString
UTC
valueOf

 

document

activeElement
alinkColor
all
Anchor
anchors
Applet
applets
Area
bgColor
body
charset
children

cookie
defaultCharset
domain
embed
embeds
expando

fgColor
Form
forms
Image
images

lastModified
Layer
layers

linkColor
Link
links
location
parentWindow
plugins

readyState
referrer
scripts
selection
styleSheets

title
URL
vlinkColor

clear
close
createElement
createStylesheet
elementFromPoint
getSelection

open
write
writeIn

 

FileUpload

form
name
type
value

blur
focus

select

onBlur
onFocus
onSelect

Form

action
Button
Checkbox
elements
encoding
FileUpload
Hidden
length
method
name
Password
Radio
Reset
Select
Submit
target
Text
Textarea

reset
submit

onReset
onSubmit

forms array

length

 

 

frames array

length

 

 

Hidden

form
name
type
value

 

 

History

current
length
next
previous

back
foward
go

 

history array

length

 

 

Image

border
complete
height
hspace
lowsrc
name
src
vspace
width
x
y

 

onAbort
onError
onLoad

images array

length

 

 

Layers

above
background
below
bgColor
clip
document
hidden
left
name
pageX
pageY
parentLayer
siblingAbove
siblingBelow
src
top
visibility
window
x
y
zindex

load
moveAbove
moveBelow
moveBy
moveTo
moveToAbsolute
resizeBy
resizeTo

onBlur
onFocus
onmouseOut
onmouseOver
onmouseUp

layers array

length

 

 

Link

hash
host
hostname
href
pathname
port
protocol
search
target
text
x
y

 

onClick
onmouseOut
onmouseOver

links array

length

 

 

location

hash
host
hostname
href
pathname
port
protocol
search

reload
replace

 

Math

E
LN2
LN10
LOG2E
LOG10E
PI
SQRT1_2
SQRT2

abs
acos
asin
atan
atan2
ceil
cos
exp
floor
log
max
min
pow
random
round
sin
sqrt
tan

 

MimeType

description
enabledPlugin
suffixes
type

 

 

mimeTypes array

length

 

 

navigator

appCodeName
appMinorVersion
appName
appVersion
browserLanguage
cookieEnabled
cpuClass
languages
mimeTypes

platform
plugins
systemLanguage

userAgent
userLanguage
userProfile

javaEnabled
preference
savePreferences
taintEnabled

 

Number

MAX_VALUE
MIN_VALUE
NaN
NEGATIVE_INFINITY
POSITIVE_INFINITY

toString
valueOf

 

Option

defaultSelected
index
selected
selectedIndex
text
value

 

 

options array

length

 

 

Password

defaultValue
form
name
type
value 

blur
focus
select

onBlur
onChange
onFocus
onKeydown
onKeypress
onKeyup
onSelect

Plugin

description
filename
name

refresh

 

plugins array

length

 

 

Radio

checked
defaultChecked
form
name
type
value

blur
click
focus

onClick
onmouseDown
onmouseUp 

radio array

length

 

 

Reset

form
name
type
value

blur
click
focus

onClick
onmouseDown
onmouseUp 

screen

availHeight
availLeft
availTop

availWidth
BufferDepth
colorDepth
height
pixelDepth
updayeInterval
width

 

 

Select

form
length
name
options
selectedIndex
type

blur
focus

onChange

String

length

anchor
big
blink
bold
charAt
charCodeAt
concat
fixed
fontcolor
fontsize
formCharCode
indexOf
italics
lastIndexOf
link
match
replace
search
slice
small
split
strike
sub
substr
substring
sup
toLowerCase
toUpperCase 

 

Submit

form
name
type
value

blur
click
focus

onClick
onMouseDown
onMouseUp

Text

defaultValue
form
name
type
value

blur
click
focus
select

onBlur
onChange
onFocus
onKeydown
onKeyup
onSelect

Textarea

defaultValue
form
name
type
value

blur
click
focus
select

onBlur
onChange
onFocus
onKeydown
onKeyup
onSelect

window

clientInformation
closed

defaultStatus
dialogArguments
dialogHeight
dialogLeft
dialogLeft
dialogTop
dialogWidth

document
event
frames
history
innerHeight
innerWidth

length
location
locationbar
menubar

name
navigator
offscreenBuffering
opener
outerHeight
outerWidth
pageXOffset
pageYOffset

parent
personalbar
screen
screenX
screenY
scrollbars

self
status
statusbar

toolbar
top

alert
back
blur

close
confirm
find
focus
forward
home
moveBy
moveTo
navigate

open
print
prompt
resizeBy
resizeTo

scroll
scrollBy
scrollTo
stop

onBlur
onError
onFocus

onLoad
onResize
onUnload





















출처 : 네이버 지식인


'Web > JavaScript' 카테고리의 다른 글

키 입력 제어  (0) 2014.03.21
posted by These Days 2014. 3. 21. 20:36

한글 입력 막기

style="ime-mode:Disabled;"

 

숫자만 입력 가능

onkeypress="if(!(event.keyCode > 47 && event.keyCode < 58)) event.returnValue=false;"

 

한글만 입력 가능

onkeypress="if(!(event.keyCode < 47 && event.keyCode > 58)) event.returnValue=false;"

 

붙여 넣기 방지

<input type="text" onpaste="javascript:return false;">


'Web > JavaScript' 카테고리의 다른 글

Javascript Event  (0) 2014.03.31
posted by These Days 2013. 10. 1. 10:40

instr/instrrev

<%

test="I love you"

response.write instr(test,"o")

response.write instrrev(test,"o")

%>

instr = 4

앞에서부터 찾은 love에 포함된 'o'의 위치값

instrrev = 9

뒤에서부터 찾은 you에 포함된 'o'의 위치값

※ 두 함수 모두 검색한 문자의 결과값은 좌측부터 시작한 위치값

posted by These Days 2013. 9. 27. 16:52

PHP 5.2 버전 쓰다가 5.3으로 재설치 하고 SQL Server PHP 드라이버 잡아주고 디비 접속 테스트까지 완료했는데 쿼리 실행시

sqlsrv_query() expects parameter 1 to be resource, null given in

이런 오류가 나타난다

반나절 삽질 결과  페이지 내에 실행되는 쿼리가 2개 이상인데 쿼리 하나 실행 종료 할때마다 sqlsrv_close($conn); 으로 디비접속을 끊어줬었다

PHP 5.2 버전에서는 이렇게 사용 해왔었는데 5.3버전 부터는 여기서 오류가 나타나는것으로 확인하고 제일 마지막에 접속을 닫는것으로 처리해서 해결함

이 오류 메세지는 상기와 같은 원인으로만 나타나는것은 아니고 여러 원인이 있을 수 있음

posted by These Days 2013. 9. 26. 07:54

IIS 6.0 + PHP 5.2.17 셋팅을 했다

설정을 다 하고 테스트로 <? phpinfo(); ?> 를 띄워봤는데 한겨울 설원과도 같은 하얀 화면만 날 반긴다..

소스보기 하면 PHP 소스 내용이 그대로 보인다

왜 그럴까..

태그를 <?php php?>로 바꿔 줬더니 정상적으로 페이지가 열렸다..

혹시나 하고 php.ini 파일을 좀 뒤져봤더니 

; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.

; NOTE: Using short tags should be avoided when developing applications or

; libraries that are meant for redistribution, or deployment on PHP

; servers which are not under your control, because short tags may not

; be supported on the target server. For portable, redistributable code,

; be sure not to use short tags.

short_open_tag = Off

항목이 있었다

이걸

short_open_tag = On

으로 바꿔줬더니 <? 태그도 정상적으로 인식


'Web > PHP' 카테고리의 다른 글

sqlsrv_query() expects parameter 1 to be resource, null given in...  (0) 2013.09.27