Class YWindow
Defined in: YWindow.js.
Constructor Attributes | Constructor Name and Description |
---|---|
YWindow()
window toolsNot instanciable.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
YWindow.getbrowser()
gets general browser name .
|
<static> |
YWindow.getsize()
gets current window size.
|
<static> |
YWindow.post(datas{object}, target, msg)
post datas as in a submitted html form.
|
Method Detail
<static>
{string}
YWindow.getbrowser()
gets general browser name .
- Returns:
- {string} can be "opera" "msie" "safari" "firefox" "chrome" "mozilla" or "" if not identifyed.
<static>
{array}
YWindow.getsize()
gets current window size.
- Returns:
- {array} the window size.
<static>
{array}
YWindow.post(datas{object}, target, msg)
post datas as in a submitted html form.
- Parameters:
- datas{object}
- indexed datas to post(ex: datas={va:"hi",vb:"bye"}; correspond to $_POST=array('va'=>"hi",'vb'=>"bye");).
- target
- {string} target for form submit ('_self','_blank',etc...)
- msg Optional
- {string}if set , ask for confirmation with this message before postiong the datas
- Returns:
- {array} the window size.