473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Why is Div content not expanding div in internet explorer?

This little glitch is driving me crazy.
been researching all day and can't get it to work.

I have a hover over, and when it fills with data, it expands. It works in firefox, but not IE.

Live link (try with IE and other browsers)
http://www.reefjunkies.org/Bulletins/Default.aspx




the code

Expand|Select|Wrap|Line Numbers
  1. <%@ Page Title="" Language="VB" MasterPageFile="~/Templates/Main.Master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Bulletins_Default" %>
  2.  
  3. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderMain" Runat="Server">
  4.  
  5.  
  6. <script type="text/javascript">
  7.  
  8.             function attachFlyoutToLink(oLink, index) {    
  9.                 try {                        
  10.                     <%=FlyoutBulletin.getClientID()%>.Close();        
  11.                     <%=FlyoutBulletin.getClientID()%>.AttachTo(oLink.id);
  12.                     var sNewHtml = getRecordInfo(oLink, index);
  13.                     document.getElementById("divFlyoutContent").innerHTML = sNewHtml;
  14.                     <%=FlyoutBulletin.getClientID()%>.Open();
  15.                 } catch(ex){}
  16.             }
  17.  
  18.             function HoldFlyout() {
  19.                 try {
  20.                     <%=FlyoutBulletin.getClientID()%>.Open();
  21.                 } catch(ex) {};
  22.             }
  23.  
  24.              function closeFlyout2() {
  25.                 try {
  26.                     <%=FlyoutBulletin.getClientID()%>.close();
  27.                 } catch(ex) {};
  28.             }
  29.  
  30.              function getRecordInfo(oLink, iIndex) {
  31.  
  32.                 var Subject = GridBulletins.Rows[iIndex].Cells[0].Value;
  33.                 var Bulletin = GridBulletins.Rows[iIndex].Cells[1].Value;
  34.                 var DateStamp = GridBulletins.Rows[iIndex].Cells[2].Value;
  35.  
  36.  
  37.  
  38.  
  39.               /*
  40.  
  41.  
  42.  
  43.  
  44.                 var sNewHtml = "<table>";
  45.                 sNewHtml += "<tr><td class='tdText' nowrap><b>Subject:</b></td><td class='tdText'>" + Subject + "</td></tr>";
  46.                 sNewHtml += "<tr><td class='tdText' nowrap><b>Bulletin:</b></td><td class='tdText'>" + Bulletin + "</tr>";
  47.                 sNewHtml += "<tr><td class='tdText' nowrap><b>Date:</b></td><td class='tdText'>" + DateStamp + "</tr>";
  48.                 sNewHtml += "</table>";
  49.  
  50.                 return sNewHtml;
  51.                 */
  52.  
  53.  
  54.                  var sNewHtml = "<div style='text-align: left; padding: 3px;  overflow: hidden; margin-bottom: -1px; min-height: 100px;'>";
  55.                  sNewHtml += "<b>Subject</b> " + Subject + "<br><br>";
  56.                  sNewHtml += "<b>Bulletin</b> " + Bulletin + "<br><br>";
  57.                  sNewHtml += "<b>Date</b> " + DateStamp + "";
  58.                  sNewHtml += "<br><br><span id='Close_Link' OnMouseOver='this.style.cursor='pointer';' onclick='<%=FlyoutBulletin.getClientID()%>.Close()' ><img src='/Images/Icons/close_icon.gif'></span> ";
  59.                  sNewHtml += "</div>";
  60.                  return sNewHtml;
  61.             }
  62.  
  63.  
  64.         </script>
  65.         <div style="padding: 3px; text-align: left"></div>
  66. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  67.         <tr>
  68.             <td style="background-image: url(/Images/Blk_Grd_Bg.jpg); width: 100%; height: 20px;
  69.                 background-color: #000000">
  70.                 <span class="ArialWhite12BLD">&nbsp;Bulletins</span>
  71.             </td>
  72.         </tr>
  73.         <tr>
  74.             <td align="center" style="width: 100%" valign="top">
  75.  
  76.  
  77.  
  78. <div style="margin: 0px 7px 7px" >  </div>
  79.                         <div>
  80.                         <table width="100%">
  81.                                                 <tr>
  82.                                                     <td>
  83.                                                     <div style="margin: 3px; text-align: left; font-family: Arial, Helvetica, sans-serif; font-size: large; font-weight: bold; padding-left: 20px;">
  84.                                     Bulletins
  85.                                                     </div>
  86.                                                     </td>
  87.                                                     <td align="right"><div style="padding-right: 30px">
  88.                                                         <asp:LinkButton ID="LinkButtonAddBulletin" runat="server" text="Add Bulletin" /></div></td>
  89.                                                 </tr>
  90.                                             </table> </div>
  91.  
  92.                                      <obout:Grid ID="GridBulletins" CallbackMode="true" runat="server" AllowFiltering="True" 
  93.                                                    AutoGenerateColumns="False" FolderStyle="/Images/Grid/styles/black_glass" 
  94.                                                    Width="612px" AllowAddingRecords="False" 
  95.                                           EnableRecordHover="True" AllowGrouping="True" 
  96.                             Serialize="False" DataSourceID="ObjectDataSourceBulletins">
  97.  
  98.                                          <Columns>
  99.                                           <obout:Column runat="server" ID="HiddenSubject" DataField="Subject" InsertVisible="false" Visible="false"/>
  100.                                            <obout:Column runat="server" ID="HiddemBulletin" DataField="Bulletin" InsertVisible="false" Visible="false"/>
  101.                                            <obout:Column runat="server" ID="HiddenDate" DataField="DateStamp" InsertVisible="false" Visible="false" />
  102.  
  103.  
  104.  
  105.                                              <obout:Column ID="BulletinsID" runat="server" DataField="UserAccountsID, BulletinsID, Nickname, AccountType" 
  106.                                                  HeaderText="Profile" TemplateID="BulletinsIDUserIdTemplate" width="120" Align="center" />
  107.  
  108.                                              <obout:Column  ID="Bulletins" runat="server" 
  109.                                                  TemplateID="Bulletintemplate" Width="60%" DataField="Subject, Bulletin, datestamp" 
  110.                                                  HeaderText="Bulletins" Align="center" />
  111.  
  112.  
  113.  
  114.  
  115.                                              <obout:Column ID="ViewBulletin" DataField="BulletinsID" HeaderText="View Bulletins" Width="150" runat="server" templateid="ViewBulletintemplate" />
  116.  
  117.  
  118.                                          </Columns>
  119.                                          <Templates>
  120.                                              <obout:GridTemplate ID="Bulletintemplate" runat="server">
  121.                                                  <Template>
  122.  
  123.                                                      <center>
  124.                                                      <asp:Label ID="LabelSubject" runat="server" Text='<%# Container.DataItem("Subject")%>' Font-Size="Medium" />
  125.                                                      <br /> <br />
  126.                                                         <%# Left(Container.DataItem("Bulletin"), 200) & "..."%><br /><br />
  127.                                                          <b><%# FormatDateTime(Container.DataItem("DateStamp") & "", DateFormat.LongDate)%></b>
  128.                                                        </center> 
  129.  
  130.  
  131.                                                  </Template>
  132.                                              </obout:GridTemplate>
  133.  
  134.                                              <obout:GridTemplate ID="AquariumCritiquesReplyIDtemplate" runat="server">
  135.                                                  <Template>
  136.  
  137.                                                  </Template>
  138.                                              </obout:GridTemplate>
  139.                                               <obout:GridTemplate ID="ViewBulletintemplate" runat="server">
  140.                                                  <Template>
  141.  
  142.  
  143.                                                   <span class="tdTextLink" id="grid_link_<%# Container.DataItem("BulletinsID") %>" onmouseover="attachFlyoutToLink(this, <%# Container.PageRecordIndex.ToString() %>)" onmouseout="HoldFlyout()" onclick="closeFlyout2()"><img src="/images/icons/fish.png" width="90" /></span>
  144.  
  145.  
  146.  
  147.                                                  </Template>
  148.                                              </obout:GridTemplate>
  149.                                              <obout:GridTemplate ID="BulletinsIDUserIdTemplate" runat="server">
  150.                                                  <Template>
  151.                                                  <div style="padding: 6px; border: 1px solid #666666; text-align: center; background-color: #DEDEDE; background-image: url('/Images/Grey_Gradient_profile_bg.jpg');">
  152.                                                      <a href='<%# "/Profile/Default.aspx?ID=" & Container.DataItem("UserAccountsID") %>'>   
  153.                                                      <asp:Image ID="ImageButtonProfilePicture" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="1" />
  154.                                                      </a>
  155.                                                      <br />
  156.  
  157.                                                     (<%# Container.DataItem("AccountType")%>)<br />
  158.                                                    <%# Container.DataItem("NickName") %>
  159.  
  160.                                                    <asp:HiddenField ID="HiddenUserID" runat="server" Value='<%# Container.DataItem("UserAccountsID") %>' />
  161.                                                    <asp:HiddenField ID="HiddenBulletinID" runat="server" Value='<%# Container.DataItem("BulletinsID") %>' />
  162.                                                  </div>
  163.                                                  </Template>
  164.                                              </obout:GridTemplate>
  165.  
  166.                                          </Templates>
  167.                                      </obout:Grid>
  168.  
  169.                                   <table cellpadding="0" cellspacing="0" style="width: 10px">
  170.     <tr>
  171.         <td></td>
  172.         <td></td>
  173.         <td></td>
  174.     </tr>
  175.     <tr>
  176.         <td>
  177.  
  178.                                                     <obout:Flyout ID="FlyoutBulletin" runat="server" FadingEffect="True" Align="MIDDLE" Position="MIDDLE_LEFT" zIndex="20" CloseEvent="NONE" OpenEvent="ONCLICK">
  179.  
  180.  
  181.                                                       <table cellpadding="0" cellspacing="0" style="width: 10px">
  182.     <tr>
  183.         <td></td>
  184.         <td></td>
  185.         <td></td>
  186.     </tr>
  187.     <tr>
  188.         <td></td>
  189.         <td>
  190.          <div id="divFlyoutContent" class="tdText" style="background-color: #FFFFFF; border: 1px solid #000000; min-width: 370px; min-height: 100px; z-index:1000; overflow: hidden; margin-bottom: -1px;">
  191.  
  192.  
  193.  
  194.  
  195.              </div>
  196. </td>
  197.         <td style="background-color: white; background-image: url('/Images/Flyright.png'); width: 9px; vertical-align: top;"><img src="/Images/spacer.gif" width="9px" /></td>
  198.     </tr>
  199.     <tr>
  200.         <td></td>
  201.         <td style="height: 9px; background-color: white; background-image: url('/Images/FlyBottom.png'); text-align: left;"></td>
  202.         <td style="height: 9px; width: 9px; background-color: white; background-image: url('/Images/FlyBottomright.png')"></td>
  203.     </tr>
  204. </table>
  205.  
  206.  
  207.  
  208.  
  209.  
  210.                                                      </obout:Flyout> 
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.                                      <asp:ObjectDataSource ID="ObjectDataSourceBulletins" 
  219.                      runat="server" SelectMethod="GetBulletins" TypeName="DAL">
  220.                                          <SelectParameters>
  221.  
  222.  
  223.                                          </SelectParameters>
  224.                  </asp:ObjectDataSource>
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.                                      <br />
  234.  
  235.                    </td>
  236.         </tr>
  237.     </table>
  238.     </td>
  239.     </tr>
  240.     </table>
  241. </asp:Content>
  242.  
  243.  
  244.  

The div in the <obout:Flyout ID="FlyoutBulletin" is where the glitch is

Line 190
Oct 22 '10 #1
0 1458

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Robert Blasius | last post by:
Hello, I've a problem displaying a header content in Internet Explorer. You can view the problem on www.robert-blasius.de The upperimage should be on the left of the middle "line" and the lower...
2
by: CathieC | last post by:
I have a websote developed using visual studio 2005 beta , .net version 2 i deploy my application to a server and it is run from client computers. One of the users gets the error "Internet...
3
by: ckirchho | last post by:
Halo, I am trying to realize a two column layout basically like this: <html> <head> <style> leftCol { float: left; width: 15em; }
1
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that...
3
by: laredotornado | last post by:
Hi, This problem only affects PC IE. On a secured page (a page visited via https), there is a link that reads -- "Download HTML File". The link connects to this page <?php...
6
by: Pete Verdon | last post by:
Summary: Can I do an XSLT transform, in the client, of a tree of nodes taken from the displayed page DOM in IE? This works in Firefox. Hi, I'm just starting the process of rewriting part of a...
0
by: nehacredo | last post by:
hi alll.. i wanna display a word file content in a browser..how can i do that..i hav done one coding in that i can display the contents...but with contents some symbols also coming... anyone pls...
3
by: ysakaed | last post by:
Hi I am trying to get the content of the iframe to replace the content inside a div here is the code i use. function changeContent(content) { var buf = content + "_2"; var iframe =...
1
by: Christian W Larsen | last post by:
I want to export a datagrid to Excel. Here is the code: Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition",
1
by: avpkills2002 | last post by:
I seem to be getting this weird problem in Internet explorer. I have written a code for parsing a XML file and displaying the output. The code works perfectly fine with ffx(Firefox).However is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.