table

Dynamically Expanding the width of a TD

Is there a way for expanding the width of a TD in the table based on the width of the next TD. The asp:Panel is going to be hidden or displayed based on some condition in the code behind. I'm thinking it's some CSS thing that would help me fix this, but unable to put a finger on it. Help!! Here's the HTML Markup: <tr> <td class=...

Excel spreadsheet like library in Swing (=improved JTable)

Hello, I'm searching for a free, open-source if possible, Java swing library that improves the existent JTable (which is very simple). I want to do an application with a spreadsheet similar to Excel one. Without the formula but with copy/paste functionalities (multiple paste if multiple selection), column reorganizing, etc... I've fou...

JavaScript - Loop within a function to alt color table rows

I have a query building form built in php. The results of the query are returned and placed in two different tables one above the other. (table id's are results, and results2) Each record returned builds two tables to display its data. (Soon to be three) I'm using the following code to change the class tags of my 's to provide alterna...

BeautifulSoup HTML table parsing

I am trying to parse information (html tables) from this site: http://www.511virginia.org/RoadConditions.aspx?j=All&amp;r=1 Currently I am using BeautifulSoup and the code I have looks like this from mechanize import Browser from BeautifulSoup import BeautifulSoup mech = Browser() url = "http://www.511virginia.org/RoadConditions.aspx...

why is firefox missing the border on some html tables

i am using 3.5.7 version of firefox and i have the same css used in multiple html tables but there are some examples where parts of the borders are not shown. What makes no sense to me is that the same css on the same page for another html table works fine. Also, the same page in Internet Explorer looks fine from a border point of vi...

Ruby Nokogiri Parsing HTML table II

Hi all I have just installed ruby+mechanize. It seems to me that it is posible in ruby nokogiri what I want to do but I do not know how to do it. What about this table? It is just part of html of vBulletin forum site. I tried to keep the html structure but deleted some text and tag attributes. I want to get some details per thread like...

How to add a class to a table cell (td) in reStructuredText

I am trying to figure out if there any syntax where a class can be applied to a td in reStructuredText (RST), rather than a span around the table cell contents. The closest I came was this: .. role:: custom .. csv-table:: Frozen Delights! :header: "Treat", "Quantity", "Description" :widths: 15, 10, 30 "Albatross", 2.99, "On ...

Hibernate search API with 2 tables

Hello I am trying to make a query with Hibernate criteria API. It looks simple but I can't get it to work. I have 2 tables. Person and Roles. Person has a set of roles. Role doesn't have any reference to Person. (i.e a guy A can be admin, user, another girl B can be only admin, etc...) I just want to to search for everyone who is doing ...

Javascript Table Select

I am trying to select a table row, and highlight it with javascript. However, nothing seems to work. When I comment out the first two lines of the following code, I can highlight, but when I click another row, the previously selected rows stay highlighted instead of going back to white. var selectedEventId = 0; function SelectR...

How to link table row heights from two tables in SQL reporting services

I have two tables in a SQL Reporting Services report (table + matrix) that I would like to display side by side to give the illusion of one complete table. The problem is that there may be more data in the row of one table vs the other and therefore the rows could be different heights. Is there any way to match/link the heights of the...

SQL database design suggestion : Naming a database table

I have to create a table and store Active Directory SIDs representing an User or a Group. How would you name the category representing both an User and a Group ? Edit 1. Table will contain four columns : ID ( PK ), SID's Name, SID's value and another column for SID's Type ( 0 for User, 1 for Group ). Please suggest the table name...

Replace a dropdown list in the last row of a table with text

I have an html table and in one column i have dropdown select. i would like a selector to get a handle to the dropdown in the last row of the table and change it to just regular text (using the value in the select). here is the tricky part, in some cases the last row will not have a dropdown and it will just be text in this cell and in...

Looping thorugh nested tables in oracle and returning a list of objects to java

I have this table created as follow: CREATE TABLE FORNECPRODS ( SUPPLIER FORNEC_OBJ , PRODUCTS PRODTABLE )NESTED TABLE "PRODUCTS" STORE AS "PRODUCTSTABLE"; / create or replace type PRODTABLE as table of PROD_OBJ; create or replace TYPE PROD_OBJ AS OBJECT ( ID_PROD ...

Update attribute of an element in a nested table

I have created this type: create or replace type PRODTABLE as table of PROD_OBJ; and I use that PRODTABLE in the follow PLSQL code: FUNCTION INSERT_PRODUCTS ( a_supplier_id IN FORNECEDOR.ID_FORNECEDOR%TYPE, a_prodArray IN PRODTABLE ) RETURN NUMBER IS v_error_code NUMBER; v_error_mess...

rotate table data crystal reports

Hi I want to rotate the text (table data) by 90 in the crystal report as I need to show the data vertically. The table has many columns and they should be arranged Vertically. This can be done by rotating the text by 90 but the problem here is table data is not growing vertically as I get the records one below one. But my requrement i...

Animating opening/closing of table columns in jQuery

How can I animate the opening/closing of table columns in jQuery? I currently have this piece of code: jQuery(function($){ $(".togglebutton").click(function(e){ if (cost_visible) { $(".numbers").animate({width: 80}, 1500); $(".costs").animate({width: 0}, 1500); } else { $(".numbe...

Can you mix % and px to align a table?

I am trying to align different tables with different amount of columns so the first two columns are align and the rest are independently align but using % it is very difficult and when resizing window it losses alignment. That is why I was trying to align mixing with % and px on td, ex. <table> <tr> <td width="100px"></td> <...

looping through html table with jquery

i have a html table and i want to basically loop through each row and each cell per row and simply print out the results. The one thing is some of the cells have input boxes, some have select dropdowns and some have raw content inside the TD. what is the fastest way to simply looop through every cell in an html table and get the result...

How to get the table schema dynamically using Subsonic 3.0?

I have a page and it lists bunch of tables in a drop down list. I need to load up a list of columns in the database dynamically. In Subsonic 2.0 it could have been done by Subsonic.Schema.BuildTableSchema but not sure how to do it in 3.0. I tried using the code below but does not work .. SubSonic.Schema.DatabaseTable D = new SubSonic.S...

whats the easiest way to exchange row HTML in table via jquery (not drag and drop)

what's the easiest way in jquery to take the entire html for a (including the tr itself, not tr innerhtml) and swap it with another one? i'm kinda messing around with replaceWith, but that's swapping the innerHtml and i want to swap the whole TR html. seems like it should be an easy task for jquery. i'm thinking there's gotta be a wa...