Table Style

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raed Sawalha

    #1

    Table Style

    I have the following table in ascx , when I click the button the table style
    not showing in the popup , it is ONLY showing on the page not in the
    popup...WHY?

    <TABLE style="BACKGROU ND: #d8e8f5;CURSOR: hand" bgcolor="#d8e8f 5"
    id="tblMenu" cellSpacing="0" cellPadding="2" width="150" border="1">
    <TR>
    <TD class="standerd font" >New Document</TD>
    </TR>
    <TR>
    <TD class="standerd font">New Folder</TD>
    </TR>
    </TABLE>

    this table is shown when user click the button as following:
    <TABLE id="Table6" cellSpacing="0" cellPadding="0" width="560" border="0">
    <TR>
    <TH style="HEIGHT: 14px" vAlign="middle" scope="col" align="right" width="67">
    <IMG id=imgAddNew
    onmouseover="MM _swapImage('Ima ge15','','/images/<%=strImgName_N ew_O%>',1)"
    style="CURSOR: hand" onclick="showMe nu('tblMenu',10 0,44);"
    onmouseout=MM_s wapImgRestore() height=23
    src="MailTools/images/<%=strImgName_N ew%>" width=59 border=0 name=Image15[color=blue]
    ></TH>[/color]

    </table>


    the javascript function is :


    function showMenu(menu, width , height)
    {

    var lefter = event.clientX;
    var leftoff = event.offsetX;
    var topper = event.clientY;
    var topoff = event.offsetY;
    var oPopup = window.createPo pup();
    var oPopBody = oPopup.document .body;
    var HTMLContent = eval(menu).inne rHTML;
    oPopBody.innerH TML = HTMLContent;
    oPopup.show(lef ter - leftoff - 2, topper - topoff
    + 22, width,height,do cument.body);
    }
  • Eliyahu Goldin

    #2
    Re: Table Style

    In yout javascript function your manipulate with variables. You never change
    the html of the popup window. Should be

    oPopup.document .body.innerHTML = HTMLContent;

    Eliyahu

    "Raed Sawalha" <RaedSawalha@di scussions.micro soft.com> wrote in message
    news:68DF83CD-6146-4A18-AF92-DBE3AC52FDBE@mi crosoft.com...[color=blue]
    > I have the following table in ascx , when I click the button the table[/color]
    style[color=blue]
    > not showing in the popup , it is ONLY showing on the page not in the
    > popup...WHY?
    >
    > <TABLE style="BACKGROU ND: #d8e8f5;CURSOR: hand" bgcolor="#d8e8f 5"
    > id="tblMenu" cellSpacing="0" cellPadding="2" width="150" border="1">
    > <TR>
    > <TD class="standerd font" >New Document</TD>
    > </TR>
    > <TR>
    > <TD class="standerd font">New Folder</TD>
    > </TR>
    > </TABLE>
    >
    > this table is shown when user click the button as following:
    > <TABLE id="Table6" cellSpacing="0" cellPadding="0" width="560" border="0">
    > <TR>
    > <TH style="HEIGHT: 14px" vAlign="middle" scope="col" align="right"[/color]
    width="67">[color=blue]
    > <IMG id=imgAddNew
    > onmouseover="MM _swapImage('Ima ge15','','/images/<%=strImgName_N ew_O%>',1)"
    > style="CURSOR: hand" onclick="showMe nu('tblMenu',10 0,44);"
    > onmouseout=MM_s wapImgRestore() height=23
    > src="MailTools/images/<%=strImgName_N ew%>" width=59 border=0 name=Image15[color=green]
    > ></TH>[/color]
    >
    > </table>
    >
    >
    > the javascript function is :
    >
    >
    > function showMenu(menu, width , height)
    > {
    >
    > var lefter = event.clientX;
    > var leftoff = event.offsetX;
    > var topper = event.clientY;
    > var topoff = event.offsetY;
    > var oPopup = window.createPo pup();
    > var oPopBody = oPopup.document .body;
    > var HTMLContent = eval(menu).inne rHTML;
    > oPopBody.innerH TML = HTMLContent;
    > oPopup.show(lef ter - leftoff - 2, topper - topoff
    > + 22, width,height,do cument.body);
    > }[/color]


    Comment

    • Raed Sawalha

      #3
      Re: Table Style


      I modified it as following and still wont display the table style

      function showMenu(menu, width , height)
      {


      var lefter = event.clientX;
      var leftoff = event.offsetX;
      var topper = event.clientY;
      var topoff = event.offsetY;
      var oPopup = window.createPo pup();
      var HTMLContent = eval(menu).inne rHTML;
      oPopup.document .body.innerHTML = HTMLContent;
      oPopup.show(lef ter - leftoff - 2, topper - topoff
      + 22, width,/*newHeight*/height,document .body);
      }

      "Eliyahu Goldin" wrote:
      [color=blue]
      > In yout javascript function your manipulate with variables. You never change
      > the html of the popup window. Should be
      >
      > oPopup.document .body.innerHTML = HTMLContent;
      >
      > Eliyahu
      >
      > "Raed Sawalha" <RaedSawalha@di scussions.micro soft.com> wrote in message
      > news:68DF83CD-6146-4A18-AF92-DBE3AC52FDBE@mi crosoft.com...[color=green]
      > > I have the following table in ascx , when I click the button the table[/color]
      > style[color=green]
      > > not showing in the popup , it is ONLY showing on the page not in the
      > > popup...WHY?
      > >
      > > <TABLE style="BACKGROU ND: #d8e8f5;CURSOR: hand" bgcolor="#d8e8f 5"
      > > id="tblMenu" cellSpacing="0" cellPadding="2" width="150" border="1">
      > > <TR>
      > > <TD class="standerd font" >New Document</TD>
      > > </TR>
      > > <TR>
      > > <TD class="standerd font">New Folder</TD>
      > > </TR>
      > > </TABLE>
      > >
      > > this table is shown when user click the button as following:
      > > <TABLE id="Table6" cellSpacing="0" cellPadding="0" width="560" border="0">
      > > <TR>
      > > <TH style="HEIGHT: 14px" vAlign="middle" scope="col" align="right"[/color]
      > width="67">[color=green]
      > > <IMG id=imgAddNew
      > > onmouseover="MM _swapImage('Ima ge15','','/images/<%=strImgName_N ew_O%>',1)"
      > > style="CURSOR: hand" onclick="showMe nu('tblMenu',10 0,44);"
      > > onmouseout=MM_s wapImgRestore() height=23
      > > src="MailTools/images/<%=strImgName_N ew%>" width=59 border=0 name=Image15[color=darkred]
      > > ></TH>[/color]
      > >
      > > </table>
      > >
      > >
      > > the javascript function is :
      > >
      > >
      > > function showMenu(menu, width , height)
      > > {
      > >
      > > var lefter = event.clientX;
      > > var leftoff = event.offsetX;
      > > var topper = event.clientY;
      > > var topoff = event.offsetY;
      > > var oPopup = window.createPo pup();
      > > var oPopBody = oPopup.document .body;
      > > var HTMLContent = eval(menu).inne rHTML;
      > > oPopBody.innerH TML = HTMLContent;
      > > oPopup.show(lef ter - leftoff - 2, topper - topoff
      > > + 22, width,height,do cument.body);
      > > }[/color]
      >
      >
      >[/color]

      Comment

      Working...