473,808 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
</TH>


</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);
}
Nov 19 '05 #1
2 1752
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" <Ra*********@di scussions.micro soft.com> wrote in message
news:68******** *************** ***********@mic rosoft.com...
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
</TH>


</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);
}

Nov 19 '05 #2

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:
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" <Ra*********@di scussions.micro soft.com> wrote in message
news:68******** *************** ***********@mic rosoft.com...
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
</TH>


</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);
}


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
2154
by: Carl Gilbert | last post by:
Hi I am currently writing a site that utilises tables. I have one page that links to a second page. The only problem is that when I link to the second page, the table loads up with a different height than was set in the code. However, when I use the navigation buttons in IE to go back and then forward again to the second page, the table is displayed as expected.
10
7863
by: John | last post by:
I have a table with two rows. On the first row is a text box and in the second row is an image. I have set the table cellpadding to 0 and cellspacing to 0. The table is leaving extra spaces in the rows on the top and bottom of the picture and image. I need to make the height of the rows to be the same as the textbox and image. How do I do this? I have tried even setting the height of the table and all the <td> and <tr> tags to 1 but have...
0
2736
by: yurps | last post by:
Hello here is my html, if you click the missing image in the first column on the left, the div is shown, when clicked again the div disappears...but the bottom border disappears as well...Is there anyway to stop this...??? <HTML> <HEAD> <title>Conform Inbox</title> <meta content="False" name="vs_snapToGrid">
1
2017
by: andrewkooi | last post by:
Greetings, I have 16 links for my horizontal menu navigation as you can see in my website www.singakad.com and at present, I am using a table and javascript for this menu. Is it possible for me to create a submenu for certain cells in this horizontal menu? How do I go about doing this? Thank you in advance for any assistance given.
7
2635
by: Shawn B. | last post by:
Greetings, I am trying to create a table that has a scrolling body. The problem I'm experiencing is that if the columns in the "body" part of the table exceed the width of the "header" then they columns lose their alignment. Can anyone help me correct this?
5
2122
by: outstretchedarm | last post by:
I'm extremely new to javascript and to programming in general. I am trying to create an interactive table. I have already created the table with constants, in the key of C (it is for music). what I would like to do is to create a dropdown box that would enable the user to select all 12 keys, then based on that choice, have the whole table re-calculate, basically transposing all the data up or down. how would I go about doing this.
7
4830
by: Kamal | last post by:
Hello all, I have a very simple html table with collapsible rows and sorting capabilities. The collapsible row is hidden with css rule (display:none). When one clicks in the left of the expandable row, the hidden row is made visible with css. The problem is when i sort the rows, the hidden rows get sorted as well which i don't want and want to be moved (while sorting) relative to their parent rows. The following is my complete html code...
1
5197
by: MissMarie | last post by:
I've been playing around with DIV tables in myspace to better learn how to rewrite my own code for my business site without having to pay someone to design it. I've tried embedding a slideshow into a div table and after I save it I noticed that the slideshow does not show up and the embed code I added is altered. Can anyone help me figure this out? The embed code that I'm talking about is three quarters down the code page under {PHOTOS},...
9
5317
by: dli07 | last post by:
Hello, I'm trying to convert a piece of code that creates a dynamic vertical resizing bar in a table from internet explorer to firefox. It's based on a post from http://blogs.crankygoblin.com/blogs/geoff.appleby/pages/50712.aspx. I've also read the post on this topic by bggraphics, but he doesn't arrive at a final result. The main problem I am having is that the layerX and layerY event properties don't work. They're supposed to return the...
1
16983
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot examples I found on the web. Works in IE and mozilla. http://www.imaputz.com/cssStuff/bigFourVersion.html
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10631
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.