beefproject/beef-migration-test — Issue #142: 150 - Add beefjs API Function: Create iFrame 
Author: beefproject
Created: 2011-12-03 02:12:34+00:00
State: closed

Add a function that creates an iFrame and loads a URL. This function will be used for loading cross domain urls and getting whatever results are possible. Typically, the results will be success, failure and timeout.

/**
* @params: {String} url: target url which is loaded in the iframe.
* @params: {String} method: whether to use a GET or POST HTTP method.
* @params: {Hash} params: list of params that will be sent in request.
* @params: {Boolean} hidden: whether to make the iframe hidden.
* @params: {Boolean} remove: whether to remove the iframe from the dom once it is loaded.
*/

iframe_create(url, method=post, params=hash, hidden=true, remove=true)

Original link: http://code.google.com/p/beef/issues/detail?id=150