Class Index | File Index

Classes


Class YFramePost


Defined in: YFramePost.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
for php data posting without reloading page via an hidden iframe
Not instanciable.
Method Summary
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.
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.

Documentation generated by JsDoc Toolkit 2.4.0 on Sat Nov 16 2013 03:47:43 GMT+0100 (CET)