Click here to Skip to main content
15,914,010 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
< Hi Everyone,
I have 2 frames in my webpage and if i click on the image button(hide) that particular frame must be hided and vice-versa.

It would be great if anyone of you help me out with this.
Posted
Comments
Raghu S Gowda 24-Mar-15 1:51am    
Thank You Arkadeep.

but the framework is not hiding its just refreshing the page .
the code is as below:

$(document).ready(function () {
$("hide").click(function () {
$("CTI").toggle();
});
});
<asp:imagebutton id="hide" runat="server" imageurl="~/hide.jpg/" xmlns:asp="#unknown">




<frame name="left frame" src="crm.aspx" id="Sage" />
<frame name="right frame" src="Login1.aspx" id="CTI" />

1 solution

If your image button id is img-button and frame id is frame the this is the code.

JavaScript
<script>
$(document).ready(function() {
    $("#img-button").click(function() {
        $( "#frame" ).toggle();
    });
});
</script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900