Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: Iframe in Ajax Tab [12133]

$
0
0
Hello,

I have a problem with an Ajax Tab Container with an iframe in it. If i leave ouit the frame the tab control shows ok. Whenever I insert an iframe in the tab control the tabs are not shown anymore. In fact the css-property visibility is set to hidden. Whenever I try to force this value back to visible with javascript, the rest of the tab layout is completely messed up. Here is the code with the Iframe. With the Iframe, no tabs, without the iframe everthing looks fine. (this actually a simplified example of my real code, but it shows the problem and rules out any other conflicts with my existing code).

<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
<ajax:TabContainer id="tctest" runat="server">
<ajax:TabPanel ID="tabTest" HeaderText="test" runat="server">
<HeaderTemplate>
Test
</HeaderTemplate>
<ContentTemplate>
<iframe src="http://www.google.com" />
</ContentTemplate>
</ajax:TabPanel>
</ajax:TabContainer>
</div>
</form>
</body>
</html>


Any clues?
Comments: I got same problem and found out that it's due to the stringent syntax requirement. You can not use <iframe src="http://www.google.com" /> But have to use <iframe src="http://www.google.com" > </iframe>

Viewing all articles
Browse latest Browse all 4356

Trending Articles