table

jQuery Table with drag-and-drop and checkboxes

Hi, I'm looking for a jQuery plugin but I'm not sure which I should use to get the desired effect. Essentially I'm looking to copy the TabularInline style data entry table from Django, but also allow the user to drag-and-drop re-order the position of the inlines. I'd also need the ability to add a new row. Which would be the best plug...

How to set BackColor of a table cell dynamically with a database value?

As a bonus to the project I'm currently working on, the people would like it if I could change the background color of individual table cells depending on what their value is. So in the RadGrid_ItemDataBound event handler I have, I'm trying to set the BackColor of the cell if the cell's text equals a certain value from a dataset in my da...

How do I loop through multiple tables with jQuery in a html file loaded with ajax

I am trying to parse a response data as html format. The data contains multiple tables (not nested tables). I load the html with ajax and trying to loop through the data with jquery. The problem is No result when I start with 'table' for looping (I have multiple tables and have no ID for the table.) When I use 'tr' It works well in firef...

n*n table vs (n^2)*3 table in mysql

A while back I posted a different question regarding column order. While this question does not relate to column order, I was suggested to make my table differently from how I was making it. Lets say I am selling 100 products. Some of these products are compatible with each other, some are not. Some have not been tested yet (I did not m...

What is a good way to regenerate HTML table on jQuery event, instead of appending to div element?

My plan was to use jQuery's .data() method to store my table row information in a hidden div element. Then, upon clicking an Add or Remove row button, I would modify the jQuery data in the hidden div, clear the table div contents, and then regenerate the table's rows from the data stored in the hidden div. To start with, my project han...

how to do mysql select query on two tables linked by another table

Suppose I have a table whose function is specifically to link two other tables in terms of OOP So suppose that I have two tables: one for person's name and another one for phone numbers Table 1: id person's name 1 John 2 Smith Table 2: id Phone number 5 23424224 6 23424242 And then I have a third table that links ...

How to display a 2D array in jTable?

I have a static 2D array called "Status.Data[][]" and a Column header called "Status.Columns[]" I am using net beans and I want to be able to have the arrays populate the table. private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { jTable1.setColumnModel(new DefaultColumnModel(Status.Data, Status.Columns));...

Work around to make table-cell CSS render properly in IE6/7?

Hey, My site is showing up fine in IE8/FF/Chrome but I can't figure out how to make it function with IE. The relevant CSS: #maincontent { display: table; } #content { display: table-cell; width: 620px; padding-left:4%; padding-right: 22px; padding-bottom:15px; } #sidebar { display: table-cell; width...

JQuery assigning a newly created link to a variable?

Hello! How do i assign this newly created link to the local variable? tblOutput += '<td>'; tblOutput += $('<a></a>') .click(function (e) { $.fancybox({ 'autoDimension': true, 'showCloseButton': true, 'type': 'iframe', 'href': 'WordManagerForm.aspx?cmd=updateword&amp;categoryNodeID=' + nodeID + '&amp;nodeID=' + id_text }); ...

New Oracle Database

When I create an Oracle database it has a lot of tables in it with strange names. What are these tables? Should I keep them? If not, how can I avoid creating them? These are the table names: LOGMNR_UID$ LOGMNR_SESSION_EVOLVE$ LOGMNR_GLOBAL$ LOGMNR_RESTART_CKPT_TXINFO$ LOGMNR_AGE_SPILL$ LOGMNR_SPILL$ LOGMNRC_DBNAME_UID_MAP LO...

html & css: Remove column dividers in a html table

I have a html table with css. Currently all the cells have a white border around them, I am having trouble removing the column borders for each cell so the rows are divided by a white line. A similar table to what i'm trying to achive can be seen at http://www.smashingmagazine.com/2008/08/13/top-10-css-table-designs/, look at example 3 (...

Why is there a border on this table?

On this page, there seems to be a small problem... there's a sliver of white showing. Here is the relevant HTML: <table id="topbar"> <tr> <td id="topbar_logo"> <a href="http://stackmobile.com/" style='padding: 0px;'> <img src='images/logo.png' style='width: 48px; height: 40px; border: 0px; margin: 0px;' /> </...

Infinite loop in IE6 Print Preview

I work on a web application hosted at over a hundred large sites that has as one of its requirements support for Internet Explorer 6 - not supporting IE6 is not an option as the organisations that use it are huge and that decision is out of my hands. Users have discovered that printing certain pages is not possible, and having simplifie...

Placing the table on div

<div id="container"> <div class="main_div"> <div class="cell1">1</div> <div class="cell2">2</div> <table> <tr> <td > The Tag </td> <td> The Tag </td> ..... more data </tr> </table> </div> </div> </body> </html> Here the Table won't fit the containe...

Alternating table row color?

When generating html tabular data, I just wanted to hear what methods you use to alternate the table row color? For my purposes, I am using Java and JSPs on the backend. I was just planning on looping through the data and if index % 2 == 0 set it to one color else set it to something else. Is this ok? Maybe it would be better if I us...

How to fill a column based on first column

I am making a mySQL table which lists ~70 products and information on whether they are compatible or not. For the sake of simplifying the question, I will pretend there were only four products. Product1 Product2 Compatible? A A Yes A B No A C Maybe A D ...

Table caption element is causing page to break when printing

Hi there, Consider the following table: <table> <caption>The caption</caption> <thead>...</thead> <tbody>...</tbody> <tfoot>...</tfoot> </table> The table renders right when displaying on screen, but when printing it breaks the table for a new page. When I delete the caption element or display:none, the table renders right on printin...

Div inside of a <td>?

Is it valid to have a div inside of a <td> element? I need to display a box inside of the table.. Update: I need this box (that appears in the td) to have padding..i.e. it really needs to look like a box thats floating in the middle of the td. ...

No duplicate rows, but redundant data

I have a mySQL table which represents a company's products. The table shows whether or not two products are compatible with each other. The table looks somewhat like Product1 Product2 Compatible? A A Yes A B ? A C No A D ? B A ? B ...

Triply grouped-by tabular data - how to display?

I need to display a bunch of data in a table on a website as part of a report. The problem is there's a bunch of it, and it needs to be visually grouped. Each piece of data is a "usage" of an item, and has a date (representing when it was used), a store number (corresponding to the store that used it), an item name (the item that was us...