passbe/beef-migration-test-3 — Issue #225: Add beefjs API Function: Create iFrame
Author: passbe
Created: 2011-12-08 23:50:18+00:00
State: open
Labels: GC Imported Issue

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)
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=150