passbe/beef-migration-test-2 — Issue #221: Add beefjs API Function: Request Confirm
Author: passbe
Created: 2011-12-05 09:31:08+00:00
State: open

Add a function that confirms a url can be loaded in an iframe. This function will be used for loading cross domain urls. The return value will be true if the url loaded and false if it didn't.

/**
* @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.
*/

request_confirm(url, method=post, params=hash)

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