passbe/beef-migration-test-2 — Issue #220: Add beefjs API Function: Create iFrame
Author: passbe
Created: 2011-12-05 09:30:40+00:00
State: open

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