Blocking wholepage(Frameset) with multiple frames using jquery BlockUI from iFrame
in Using jQuery
•
11 years ago
The client I'm working for has the framset like this.
<FRAMESET id="frames" cols="672,*" framespacing="0" frameborder="no" border="0" >
<FRAME src="leftIndex.html" name="mainFrame" frameborder="no" scrolling="no" marginwidth="0" marginheight="0" bordercolor="#333333" id="mainFrame" title="mainFrame" >
<FRAME src="rightIndex.html" name="rightFrame" frameborder="no" scrolling="auto" noresize="noresize" marginwidth="0" marginheight="0" id="rightFrame" title="rightFrame" >
</FRAMESET>
In the main frame ,I have an iframe
< iframe id="admin" src="" style="position:absolute; top:5; left:2; width:640px; height:576px; opacity:1.0;visibility:hid
<FRAMESET id="frames" cols="672,*" framespacing="0" frameborder="no" border="0" >
<FRAME src="leftIndex.html" name="mainFrame" frameborder="no" scrolling="no" marginwidth="0" marginheight="0" bordercolor="#333333" id="mainFrame" title="mainFrame" >
<FRAME src="rightIndex.html" name="rightFrame" frameborder="no" scrolling="auto" noresize="noresize" marginwidth="0" marginheight="0" id="rightFrame" title="rightFrame" >
</FRAMESET>
In the main frame ,I have an iframe
< iframe id="admin" src="" style="position:absolute; top:5; left:2; width:640px; height:576px; opacity:1.0;visibility:hid
< /iframe>
From the right frame , I have assigned a mainstream.html to this iframe like this
function doview(){ parent.mainFrame.setupTemp
My problem is now to block the entire webpage using jquery blockui when I click a button in the mainstream.html, I have so far tried this code :
mainstream.html
$(document).ready(function
$('#change').click(functio
window.parent.$.blockUI();
setTimeout(function() {
$.unblockUI({
});
}, 30000);
});
});
I also tried to use
`top.frames[1].$.blockUI()
//* button in mainstream.html*//
<input type="button" class="button" id="change" value="Set VideoStream" ></input>
Please help me out with how I can block the entire page from an iframe. I have tried everything.
I have included jquery v1.7.2 and jquer blockui plugin-v 2.39 in left index ,rightindex n mainstream.html pages.
Thanks in advance . Any suggestions are really appreciated.
1