Class Index | File Index

Classes


Class myfaces._impl.xhrCore._IFrameRequest


Extends myfaces._impl.xhrCore._BaseRequest.

Defined in: _IFrameRequest.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
iframe transport for an alternative way to do ajax communication

The idea to make a frame a protocol transport is, to make a form submit with the iframe as target, and once done use the result in the iframe as result for the request.

Field Summary
Field Attributes Field Name and Description
<static> <constant>  
myfaces._impl.xhrCore._IFrameRequest.JX_PART_IFRAME
request marker that the request is an iframe based request
<static> <constant>  
myfaces._impl.xhrCore._IFrameRequest.MF_PART_IFRAME
request marker that the request is an apache myfaces iframe request based request
Method Summary
Method Attributes Method Name and Description
<static>  
myfaces._impl.xhrCore._IFrameRequest.callback()
the callback function after the request is done
<static>  
myfaces._impl.xhrCore._IFrameRequest.constructor_(arguments)
constructor which shifts the arguments to the protected properties of this clas
<static>  
myfaces._impl.xhrCore._IFrameRequest.send()
send method, central callback which sends the request
Methods borrowed from class myfaces._impl.xhrCore._BaseRequest:
getViewState
Class Detail
myfaces._impl.xhrCore._IFrameRequest()
iframe transport for an alternative way to do ajax communication

The idea to make a frame a protocol transport is, to make a form submit with the iframe as target, and once done use the result in the iframe as result for the request.

This method can be used by older browsers and if you have a multipart request which includes a fileupload element, fileuploads cannot be handled by normal xhr requests. The standard html 4+ compliant way to do this is to use an iframe as submit target for a form.

Note on almost all browsers this method induces a real asynchronity, the only exception is firefox 3.6- which blocks the ui, this is resolved in Firefox 4

Field Detail
<static> <constant> myfaces._impl.xhrCore._IFrameRequest.JX_PART_IFRAME
request marker that the request is an iframe based request

<static> <constant> myfaces._impl.xhrCore._IFrameRequest.MF_PART_IFRAME
request marker that the request is an apache myfaces iframe request based request
Method Detail
<static> myfaces._impl.xhrCore._IFrameRequest.callback()
the callback function after the request is done

<static> myfaces._impl.xhrCore._IFrameRequest.constructor_(arguments)
constructor which shifts the arguments to the protected properties of this clas
Parameters:
arguments

<static> myfaces._impl.xhrCore._IFrameRequest.send()
send method, central callback which sends the request

Documentation generated by JsDoc Toolkit 2.1.0 on Tue Sep 06 2011 21:09:22 GMT-0500 (COT)