More work on #150

git-svn-id: https://beef.googlecode.com/svn/trunk@575 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
scotty.b.brown
2010-11-24 10:48:34 +00:00
parent 7a4a84d7ef
commit 24481d3a61

View File

@@ -72,12 +72,20 @@ beef.dom = {
*/
iframeCreate: function(url, method, params, hidden, remove){
var iframe = this.createElement('iframe', {
width: '1px',
height: '1px',
style: 'visibility:hidden;',
location: url
});
if (hidden){
var iframe = this.createElement('iframe', {
width: '1px',
height: '1px',
style: 'visibility:hidden;',
src: url
});
} else {
var iframe = this.createElement('iframe', {
width: '100%',
height: '100%',
src: url
});
}
document.body.appendChild(iframe);