Class YFramePost
Defined in: YFramePost.js.
Constructor Attributes | Constructor Name and Description |
---|---|
for php data posting without reloading page via an hidden iframe
Not instanciable. |
Method Attributes | Method Name and Description |
---|---|
<static> |
YFramePost.accept(result)
|
<static> |
YFramePost.childRequest(childwin, result)
|
<static> |
YFramePost.flushPile()
|
<static> |
YFramePost.post(url, datas, target, onPosted, opDatas)
calls posting page.
|
Class Detail
YFramePost()
for php data posting without reloading page via an hidden iframe
Not instanciable.
Not instanciable.
Method Detail
<static>
YFramePost.accept(result)
- Parameters:
- result
<static>
YFramePost.childRequest(childwin, result)
- Parameters:
- childwin
- result
<static>
YFramePost.flushPile()
<static>
YFramePost.post(url, datas, target, onPosted, opDatas)
calls posting page.
- Parameters:
- {string} url
- the pointed page must links to this js source, contain the 'body' tag and call YFramePost.accept(result); at end of page.
- {object} datas
- object containing fields of the datas you wish to post and their values(ex: $_POST['myfield']=5 =correspond=to=> {myfield:5}).
- {object} target
- post target(deafault:'_self').
- {function} onPosted
- invoked when post done. of type onPosted(opDatas,result);.
- {mixed} opDatas
- returned at onPosted invocation.