|
I guess this will be helpful :
Use document.getElementById(id)
|
|
|
|
|
Hi all,
as a project i'm building USB HID device using PIC18C4550 microprocessor, now it is no-brainer to build windows application to communicate with such a device. i was wandering if it is possible to accomplish the same thing with web application.
in other words i would like to connect my USB HID device to any PC with internet connection open a web page and work with my device in the same matter as i would with windows application.
Tnks u all.
modified on Tuesday, February 17, 2009 7:55 AM
|
|
|
|
|
Hi all,
i dont know this is right place to put my query..
my Site is crash twice, i got log file to analysis, but unable to solve the issues.
i am using Debug Diagnostic Tool.Unable to generate Error code or Error Description.
can you please help me.
Thanks in Advance...
JohnDas
|
|
|
|
|
can you please describe the event when site crash, if there is a live link can you give the steps how to crash site.
|
|
|
|
|
Hi
I have a web site
it is wroking fine with IE but not with FIREFOX
it has problems in the Menu bar...
I have 3 places i need to replace code lines
now i have the problem in 3 lines
Warning: Non-standard document.all property was used. Use W3C standard document.getElementById() instead.
Line:59
Error: parentMenu is null
Line:79
Error: row.childNodes is not a function
Line: 269
someone can help me what do i need to write instead in line 79,269 ?
|
|
|
|
|
I think the problem is the warning. Since you do not get the parentMenu-object with document.all it is null. As the warning says: Use document.getElementById().
Also posting the code will help a bit more to find the issues.
Regards
Sebastian
|
|
|
|
|
some has an e mail i can send the JS file to check it and see where are the problems ?
|
|
|
|
|
Could you post the snippet at the forum? It is there for this reason.
|
|
|
|
|
here it is all the menu.js
/*------------------------------------------------------------------
File: menu.js
Use: Collection of clients functions
that used for interface of the menu bar.
-------------------------------------------------------------------*/
var g_MaincontextMenu;
var currentMenu; //The last sub menu that open.
/*-----------------------------------------------------------------
Calculate the top position of the object.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function offsetTop(obj)
{
var top = 0;
for (; obj; obj=obj.offsetParent)
{
top = top + obj.offsetTop;
}
return(top);
}
/*-----------------------------------------------------------------
Calculate the left position of the object.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function offsetLeft(obj)
{
var left = 0;
for (; obj; obj=obj.offsetParent)
{
if (obj.tagName == "BODY") break;
left = left + obj.offsetLeft;
}
return(left);
}
/*-----------------------------------------------------------------
Loaded the child of the first menu.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
p_Dir Direction of the web: RTL or LTR
------------------------------------------------------------------*/
function loadContextMenu(obj, p_Dir)
{
var contextMenu;
var parentMenu;
parentMenu = returnContainer(obj);
contextMenu = document.all[obj.id + "Sub"];
//document.form2.strSearch.value = document.form2.strSearch.value + "," + contextMenu.id;
if (currentMenu)
{
menuOut(currentMenu);
}
if (contextMenu != null)
{
if(contextMenu.style.display == "block")
return;
contextMenu.style.display = "block";
var l_contextMenu_Top = offsetTop(parentMenu) + parentMenu.offsetHeight - 2;
contextMenu.style.top = l_contextMenu_Top;
contextMenu.style.width = parentMenu.offsetWidth;
contextMenu.firstChild.style.width = "100%";
contextMenu.parentMenu = parentMenu;
parentMenu.subMenu = contextMenu;
currentMenu = parentMenu;
if (p_Dir == 'RTL'){
if(contextMenu.clientWidth > parentMenu.clientWidth){
var contextMenuPosition = offsetLeft(parentMenu) - (contextMenu.clientWidth - parentMenu.clientWidth);
}else{
var contextMenuPosition = offsetLeft(parentMenu);
}
if(contextMenuPosition < 0){
contextMenu.style.left = 0;
}else{
contextMenu.style.left = contextMenuPosition;
}
}else{
contextMenu.style.left = offsetLeft(parentMenu);
var l_WindowWidth = document.body.clientWidth;
var l_DivWidth = contextMenu.clientWidth;
var contextMenuLeft = offsetLeft(parentMenu)
//alert("l_WindowWidth = " + l_WindowWidth)//
//alert("l_WindowWidth = " + l_WindowWidth + " : l_DivWidth + contextMenuLeft = " + eval(l_DivWidth + contextMenuLeft));
//alert(contextMenuLeft);
if(l_WindowWidth < l_DivWidth + contextMenuLeft){
//alert("l_WindowWidth = " + l_WindowWidth + " : l_DivWidth + contextMenuLeft = " + eval(l_DivWidth + contextMenuLeft));
contextMenu.style.left = l_WindowWidth - l_DivWidth;
}
}
contextMenu.style.height = 0;
var l_DivHeight = contextMenu.clientHeight + 2;
//-----Set The div top postion ------------------
var l_WindowHeight = document.body.clientHeight;
var l_ScrollTop = document.body.scrollTop;
//alert(l_WindowHeight);
//alert(document.body.scrollTop);
if(l_WindowHeight < (l_contextMenu_Top + l_DivHeight) - l_ScrollTop)
contextMenu.style.top = l_contextMenu_Top - ((l_contextMenu_Top + l_DivHeight - l_ScrollTop) - l_WindowHeight);
//-------------------------------------------------
contextMenu.style.overflowY = 'hidden';
contextMenu.style.height = 0;
//contextMenu.style.display = "none";
var g_MaincontextMenu = "";
SetMainDiv(contextMenu);
BuildDiv(0, l_DivHeight);
}
}
var y="";
function SetMainDiv(p_MaincontextMenu){
g_MaincontextMenu = p_MaincontextMenu;
clearTimeout(y);
}
function BuildDiv(p_Height, p_HighHeight){
//alert(1);
//document.form2.strSearch.value = document.form2.strSearch.value + "," + p_Height + "," + p_HighHeight;
//document.form2.strSearch.value = document.form2.strSearch.value + "," + g_MaincontextMenu.id;
var l_contextMenu = g_MaincontextMenu;
//g_MaincontextMenu = "";
//alert(l_contextMenu);
//alert ("p_Height = " + p_Height);
//alert ("p_HighHeight = " + p_HighHeight);
//alert(l_contextMenu.id);
if (p_Height < p_HighHeight){
l_contextMenu.style.height = p_Height + 10;
//alert(p_contextMenu.clientHeight);
//alert(1);
y = setTimeout('BuildDiv(' + parseInt(p_Height + 10) + ',' + p_HighHeight + ');', 30);
//alert(2);
//alert(p_contextMenu.style.height);
}else{
clearTimeout(y);
//alert('Clear');
}
}
/*-----------------------------------------------------------------
Loaded the child of the submenus.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function loadContextMenuSub(obj) {
var contextMenu;
var parentMenu;
//alert('loadContextMenuSub');
parentMenu = returnContainer(obj);
contextMenu = document.all[obj.id + "Sub"];
contextMenu.style.display = "block";
var l_contextMenu_Top = obj.offsetTop + parentMenu.offsetTop;
contextMenu.style.top = l_contextMenu_Top;
var l_DivHeight = contextMenu.clientHeight;
if (parentMenu.offsetLeft - contextMenu.offsetWidth + 1 < 0)
contextMenu.style.left = parentMenu.offsetLeft + parentMenu.offsetWidth - 7;
else
contextMenu.style.left = parentMenu.offsetLeft - contextMenu.offsetWidth + 7;
contextMenu.parentMenu = parentMenu;
parentMenu.subMenu = contextMenu;
//-----Set The div top postion ------------------
var l_WindowHeight = document.body.clientHeight;
var l_ScrollTop = document.body.scrollTop;
//alert(l_WindowHeight);
//alert(document.body.scrollTop);
if(l_WindowHeight < (l_contextMenu_Top + l_DivHeight) - l_ScrollTop)
contextMenu.style.top = l_contextMenu_Top - ((l_contextMenu_Top + l_DivHeight - l_ScrollTop) - l_WindowHeight);
//-------------------------------------------------
}
/*-----------------------------------------------------------------
function that change the interface of the menu item on mouseover event.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function menuOver(obj)
{
var parentMenu;
var subMenu;
var i;
parentMenu = returnContainer(obj);
for (i=0; i < obj.childNodes.length; i++)
{
obj.childNodes(i).className = obj.SubMenuTextClassOver;
}
if (parentMenu.subMenu != null && parentMenu != parentMenu.subMenu)
{
subMenu = parentMenu.subMenu;
while (subMenu != null)
{
subMenu.style.display = "none";
subMenu = subMenu.subMenu;
}
}
}
/*-----------------------------------------------------------------
function that change the interface of the menu item on mouseout event.
Parameters:
Name Description
-------------------------------------------------------------------
row The object
------------------------------------------------------------------*/
function menuOut(row)
{
var parentMenu;
var subMenu;
var i;
parentMenu = returnContainer(row);
if (parentMenu != row)
{
for (i=0; i < row.childNodes.length; i++)
{
//alert(row.childNodes(i).className);
row.childNodes(i).className = row.SubMenuTextClass;
}
}
var toElement = returnContainer(event.toElement);
var toHide = true;
if (toElement == null)
{
if (parentMenu.subMenu) parentMenu = parentMenu.subMenu;
while (parentMenu.parentMenu != null)
{
parentMenu.style.display = "none";
parentMenu = parentMenu.parentMenu;
}
}
else
{
while (toElement)
{
if (toElement == parentMenu)
{
toHide = false;
window.event.cancelBubble = true;
break;
}
toElement = toElement.parentMenu;
}
if (toHide)
{
subMenu = parentMenu.subMenu;
while (subMenu != null)
{
subMenu.style.display = "none";
subMenu = subMenu.subMenu;
}
}
}
}
function contextHighlightRow(obj)
{
var parentMenu;
var subMenu;
var i;
parentMenu = returnContainer(obj);
if (obj.selected == "false")
{
for (i=0; i < obj.childNodes.length; i++)
{
obj.childNodes(i).style.borderTop = "1px solid white";
obj.childNodes(i).style.borderBottom = "1px solid white";
if (obj.childNodes(i).cellIndex == 0 || obj.childNodes.length == 1)
{
obj.childNodes(i).style.borderLeft = "1px solid white";
}
if (obj.childNodes(i).cellIndex != 0 || obj.childNodes.length == 1)
{
if (obj.childNodes(i).cellIndex == obj.cells.length-1)
{
obj.childNodes(i).style.borderRight = "1px solid white";
}
}
}
if (parentMenu.subMenu != null && parentMenu != parentMenu.subMenu)
{
subMenu = parentMenu.subMenu;
while(subMenu != null)
{
subMenu.style.display = "none";
subMenu = subMenu.subMenu;
}
}
obj.selected = "true";
}
else
{
for (i=0; i < obj.childNodes.length; i++)
{
if (i == 0)
{
//obj.childNodes(i).style.borderTop = "1px solid " + obj.background;
obj.childNodes(i).style.borderTop = "1px solid white";
//obj.childNodes(i).style.borderBottom = "1px solid " + obj.background;
obj.childNodes(i).style.borderBottom = "1px solid white";
}
else
{
//obj.childNodes(i).style.borderTop = "1px solid " + obj.titlebar;
//obj.childNodes(i).style.borderBottom = "1px solid " + obj.titlebar;
obj.childNodes(i).style.borderTop = "1px solid white";
obj.childNodes(i).style.borderBottom = "1px solid white";
}
if (obj.childNodes(i).cellIndex == 0 || obj.childNodes.length == 1)
{
//obj.childNodes(i).style.borderLeft = "1px solid " + obj.titlebar;
obj.childNodes(i).style.borderLeft = "1px solid white";
}
if (obj.childNodes(i).cellIndex != 0 || obj.childNodes.length == 1)
{
if (obj.childNodes(i).cellIndex == obj.cells.length-1)
{
//obj.childNodes(i).style.borderRight = "1px solid " + obj.background;
obj.childNodes(i).style.borderRight = "1px solid white";
}
}
}
obj.selected = "false";
}
}
/*-----------------------------------------------------------------
function that return the parent of the item.
Parameters:
Name Description
-------------------------------------------------------------------
container The Item
------------------------------------------------------------------*/
function returnContainer(container)
{
if (container)
{
while (!container.menuElement)
{
if (container.parentElement)
{
container = container.parentElement;
}
else
{
container = null;
break;
}
}
}
return(container);
}
/*-----------------------------------------------------------------
Open new window
Parameters:
Name Description
-------------------------------------------------------------------
p_Id Category Id
*/
function loadCategoryFile(p_Id){
window.open ("OpenFileById.asp?Id=" + p_Id,"");
}
/*-----------------------------------------------------------------
Redirect function
Parameters:
Name Description
-------------------------------------------------------------------
lngCategoryID The CategoryID
------------------------------------------------------------------*/
function loadCategory(lngCategoryID)
{
window.location = "main.asp?lngCategoryID=" + lngCategoryID;
}
/*-----------------------------------------------------------------
Open Window
Parameters:
Name Description
-------------------------------------------------------------------
p_Url Url to Open
p_Width The Width of the window
p_Height The Height of the window
p_Resizable yes or no
p_Scrollbars yes or no
p_Status yes or no
p_Addressbar yes or no
p_Toolbar yes or no
------------------------------------------------------------------*/
function OpenNewWindow(p_Url, p_Width, p_Height, p_Resizable, p_Scrollbars, p_Status, p_Addressbar, p_Toolbar)
{
window.open(p_Url,"" ,"height=" + p_Height + ",width=" + p_Width + ",top=100,left=100,resizable=" + p_Resizable + ",scrollbars=" + p_Scrollbars + ",status=" + p_Status + ",location=" + p_Addressbar + ",toolbar=" + p_Toolbar);
}
/*-----------------------------------------------------------------
function that handling the onclick event
Parameters:
Name Description
-------------------------------------------------------------------
item The object that on click occured in
lngCategoryID The CategoryID
------------------------------------------------------------------*/
function clickMenu(item, lngCategoryID)
{
lngCategoryID = parseInt(lngCategoryID.substr(1));
switch (item.TypeRef)
{
case "1":
break;
case "2":
switch (item.TargetRef)
{
case "1":
window.open(item.Link);
break;
case "2":
window.location = item.Link;
break;
case "3":
parent.location = item.Link;
break;
}
break;
case "3":
window.location = "main.asp?lngCategoryID=" + lngCategoryID;
break;
case "6":
// item of the menu is a folder
window.location = "PublicLibrary.asp?lngCategoryID=" + lngCategoryID;
break;
case "8":
window.location = "DisplayNodeList.asp?lngCategoryID=" + lngCategoryID;
break;
}
}
//-------------------------------------------------------------------------
/*-----------------------------------------------------------------
Loaded the child of the submenus.
Parameters:
Name Description
-------------------------------------------------------------------
obj The object
------------------------------------------------------------------*/
function loadContextMenuSubRight(obj) {
//alert();
var contextMenu;
var parentMenu;
parentMenu = returnContainer(obj);
contextMenu = document.all[obj.id + "Sub"];
contextMenu.style.display = "block";
var l_contextMenu_Top = obj.offsetTop + parentMenu.offsetTop;
contextMenu.style.top = l_contextMenu_Top;
var contextMenuLeft = parentMenu.offsetLeft + parentMenu.offsetWidth - 7;
var l_WindowWidth = document.body.clientWidth;
var l_DivWidth = contextMenu.clientWidth;
//alert("l_WindowWidth = " + l_WindowWidth + " : l_DivWidth + contextMenuLeft = " + eval(l_DivWidth + contextMenuLeft));
//alert(contextMenuLeft);
if(l_WindowWidth < l_DivWidth + contextMenuLeft){
//alert("l_WindowWidth = " + l_WindowWidth + " : l_DivWidth + contextMenuLeft = " + eval(l_DivWidth + contextMenuLeft));
contextMenu.style.left = l_WindowWidth - parentMenu.offsetWidth - l_DivWidth;
}else{
contextMenu.style.left = contextMenuLeft;
}
var l_DivHeight = contextMenu.clientHeight;
//-----Set The div top postion ------------------
var l_WindowHeight = document.body.clientHeight;
var l_ScrollTop = document.body.scrollTop;
//alert(l_WindowHeight);
//alert(document.body.scrollTop);
if(l_WindowHeight < (l_contextMenu_Top + l_DivHeight) - l_ScrollTop)
contextMenu.style.top = l_contextMenu_Top - ((l_contextMenu_Top + l_DivHeight - l_ScrollTop) - l_WindowHeight);
//-------------------------------------------------
contextMenu.parentMenu = parentMenu;
parentMenu.subMenu = contextMenu;
}
|
|
|
|
|
As pointed out before: use document.getElementById() instead of document.all.
|
|
|
|
|
my web application is getting build successfully but while ddebugging not hitting breakpoint and giving output as follow:
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', No symbols loaded.
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE', No symbols loaded.
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\WebDev.WebHost\8.0.0.0__b03f5f7f11d50a3a\WebDev.WebHost.dll', No symbols loaded.
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', No symbols loaded.
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', No symbols loaded.
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', No symbols loaded.
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll', No symbols loaded.
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', No symbols loaded.
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', No symbols loaded.
Please help me to sort out this problem
Thanks
|
|
|
|
|
Hello,
I am currently developing with Websphere. In one of my portals is a SameTime Meeting room called WebConferencing. I am trying to open a SametimeMeeting Room Client.jar file in RAD. I am able to open the .Jar file but cannot gain access to the .class files. All of the .class files say that need the source attached. I have tried reattaching the same .jar file as the source. Does not work for me. I need to open these class files so I can edit them and repackage the .jar file with the changes in them. Can anyone help with this issue?
Thank You.
Todd
|
|
|
|
|
Hi !
i have a web service implemented in visual basic .net 2008 & one of the service functions returns a class as output and my class has a friend function which is a security concern ! , because it modifies my database !
now the question is that , if the soap delivers the whole class and just doesn't show the friend functions in the wsdl or something ?
is it secure ?
thanks alot
|
|
|
|
|
Not really, not at all. What I would do, is make a web service that handles all the database reading/writing, that way you can check the data before committing.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
The matter is that i use the object in my webservice !
for example consider it as a usename , name, family , address information class (structure) named ClsInfo, the user calls a webservice like :
function Getinfo(byval Username as string)as ClsInfo
and i have another webservice for administration purpose , called SaveValues
function SaveValues(byval Information as clsInfo)as boolean
if isvalid(information.username)andalso isinvalid(information.name) andalso... then
information.save() 'here , the save function is a friend method !
return true
else
return false
end if
so, that save function in ClsInfo is secure enough to not to change the service architecture ?
thanks for your answer .
|
|
|
|
|
Hi guys,
I am currently developing an web applications. I am using cookies and session state. However i am having problems when users open a new tab.
Currently,
IE
Opening multiple tab : will caused session to be shared
Mozilla
opening multiple tab or opening a new Mozilla browser: The session will be shared.
What i am trying to achieved is prompt and stop users from opening multiple tab and find a way to stop Mozilla from sharing session for its browser.
I can't use cookiesless sessionstate due to the current design of the system.
i tried using this to solve the multiple tab problem, and also use a javascript code to capture the
"CTRL +N". Its kinda a dirty way to do things. But now mozilla is giving me problems regarding sharing the same session for the entire browsers. From random websites and forums, i found out that mozilla is storing all session into its cookies and by default it will only clear upon the expiry of the cookies, or if you force the cookies to be deleted.
String Val;
String CompareVal;
String CompareFolder;
if (Session.IsNewSession.ToString() == "False")
{
if (Request.ServerVariables["HTTP_REFERER"] != null)
{
Val = Request.ServerVariables["HTTP_REFERER"].ToString();
if (!String.IsNullOrEmpty(Val))
{
CompareFolder = Request.UrlReferrer.Segments[2].ToString();
CompareVal = Request.UrlReferrer.Segments[3].ToString();
if (CompareFolder == "Main/")
{
if (CompareVal == "MainPage.aspx")
{
}
else if (CompareVal == "TopPage.aspx")
{
}
else
{
Response.Redirect(ResolveClientUrl("~/NoAcss.aspx"));
}
}
else
{
Response.Redirect(ResolveClientUrl("~/NoAcss.aspx"));
}
}
}
else
{
Response.Redirect(ResolveClientUrl("~/NoAcss.aspx"));
}
}
|
|
|
|
|
I Want Create My Own Job Board like "rozee.pk"
Please Help me ?
How I create my job Board using .net.
Ishtiaque Jalbani
|
|
|
|
|
Seems like your first step should be to buy a book on asp.net development, learn the basics and then progress to what is bound to be a fairly complex site with security etc.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I have an ASP.NET that needs to create PDFs files on the server, then zip them up and send them to the client. Do you have any suggestions?
The idea is to gather a list of component drawings (the PDF's), an XLS file that lists each component, zip the PDFs and XLS together and offer to user with a 'Save As'.
No problem generating a PDF, but having problems saving the PDF file, - using response.redirect and it's not releasing the resource(?) so I can move to get the next file...
Environment: VS2008, ASP.NET, IIS6, Win2k3
Thank you in advance
Tom
|
|
|
|
|
You will need a line like this:
response.ContentType = "image/jpeg";
for the browser to offer to save as.
The "image/jpeg" might be "application/pdf". Dont know for sure.
|
|
|
|
|
I found this command debugger in an article about setting a break point in an aspx html page. Since I found other ... commands. I've been trying to find the complete list of commands with no luck.
Does any one know where I might find a list?
ss
|
|
|
|
|
Google VBScript and Javascript.
Hope this helps
- Reelix
-= Reelix =-
|
|
|
|
|
In the name of God !
---------------------
Hi Everyone
I Want to create a button in one page of my website which when one person click it , Page redirect to new page but when page ( new page ) completely loaded. Any have source code . thanks.
|
|
|
|
|
Hi,
I am using RkLib.ExportData.dll for exporting datatable from .net 2003 to excel with selection of column number my code for exporting is
Dim objExport As New RKLib.ExportData.Export("Web")
objExport.ExportDetails(dt, iColumns, strHeader, RKLib.ExportData.Export.ExportFormat.Excel, "WorkDetail.xls")
i successfully exported in excel but now i want to display its heading in GUJARATI... i tried so hard but i am not able to display in gujarati.. instead gujarati it displays in different language after exporting. If i do debug it shows me contents in gujarati for strHeader array ... but..still not shows in excel file.
Please help me for the same
Thanks in advance
Dipal
|
|
|
|
|
Hi folks,
Probably something trivial, but I cannot figure out how to do this the easy way! I have a div of a certain width with therein a table with three columns. I can give the leftmost column a fixed width, since I know I will be putting images in there with a maximum width. The middle column and the rightmost column contain texts. I want the middle column to be sized automatically according to the size of the text in there (still: no problem) However, I want then the rightmost column to take-up the rest of the available space in the relevant div. Now, if I make the table 100% wide, the browser will equally divide the remaining space over the middle and the rightmost columns, which is what I do not want to happen. I want that rightmost column to consume the rest of the space, since I give the rows different background colors (alternating colors to make up a neat table) and it looks good if the rows stretch frmo left to right in the available space.
Any suggestions?
Thanks in advance
William
|
|
|
|