table

Can a table field contain a hyphen?

I have a table in a MySQL table with a fieldname 'product', and want to rename it to 'ds-product'. The CMS type system I am using uses the id of formfields as the name of the table field to insert into. For most this works fine, but for a particular field it prepends 'ds-' to whatever ID I give it, so I must make the table field name m...

I was unable to centered a text on left side

<table> <tr> <td class="left"><div class="c">centrated<br>on<br>lef side</div></td> <td>middle-td</td> <td>right-td</td> </tr> </table> Here is the css: td.left { width: 200px; left-padding: 0; } div.c { text-align: center; } Now everything is centered. I want to place the div on left side and everything inside t...

Is there any limit on number of html elements, that browser can display without problems?

Basically I've got a huge table, which gets even bigger as user scrolls down (auto preloading subsequent rows). At some point browser becomes sluggish, it starts to hang for a moment as I click around or try to scroll and more sluggish it becomes, the more rows it gets. I wonder if there is any limit on number of elements that page can h...

Set minimum column width to header width in PyQt4 QTableWidget

I'm working with the QTableWidget component in PyQt4 and I can't seem to get columns to size correctly, according to their respective header lengths. Here's what the table layout should look like (sans pipes, obviously): Index | Long_Header | Longer_Header 1 | 102402 | 100 2 | 123123 | 2 3 | 454689 | 18 The...

RoR: How to print all elements that belongs_to this table

Ok, I'm not sure that my title was clear enough, but I will try to explain I have two tables: orders that has_many items and items that belongs_to orders. I just started to learn RoR and stuck with a simple task. All I want is to display orders and related items like this: Order 1: Item 1 Item 2 Order 2: Item 1 Item 2 ... I k...

HTML: What is this I hear about the table tag being deprecated?

Because that might mess me up, somewhat. I'm not entirely clear on what I'm supposed to use to replicate some of its functionality effectively, should I adopt a newer standard down the road. I can't seem to find good information sources to verify this, though. Would there be a good reason for this? ...

add information in mysql

I have a table id_user, hour, medition 1 0 100 1 1 101 1 14 102 2 5 108 2 17 103 How I can complete the inexistent hours with a 0 value for any user? example 1 0 100 1 1 101 1 2 0 1 3 0 ... ...

MYSQL moving the position of an index.

So a search on google didn't turn up anything and neither did StackOverflow so far. Essentially my problem is this: I have a merge table and another normal table I wish to merge into it. Unfortunately one index in this new table is out of position so the merge doesn't work. Existing merge table indexes: KEY `Row ID` (`Row ID`), KEY `C...

HTML page shows data that is not in the file.

Hi, I created a c++ program that parses a file and dumps some data into a html file. The output is as follows: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head><title>Block 0xa8</title></head> <body> <h1>Block 0xa8</h1> <table> <tr> <td>02 </td> ...

Manipulating join table row ordering using Hibernate annotations

I've done something similar to this with hbm files but so far I haven't found an equivalent using annotations. What I'd like to be able to do is create an association across a join table where the join table contains an order colum for the association (sorry for any incorrect terminology here). At the very simplest, the tables might lo...

htmltable slow redraw in .net 4.0

Hi i'm using an htmltable that is refreshed when a textbox change. For refresh it i'm using this code: HtmlTableRow tableRow; HtmlTableCell tableCell; for (int i = 0; i < 50; i++) { tableRow = new HtmlTableRow(); tableCell = new HtmlTableCell(); tableCell.InnerHtml = i.ToString(); tableRow.Cells...

Expanding scrollable HTML table with fixed position content below it

I wish to reimplement a GUI element (previously Tk) in HTML + CSS + Javascript, but achieving the same layout behaviour is eluding me (new to CSS). The goal is to have a page consisting mostly of a table, with a text entry box below it, at the bottom of the view. When the window is resized, the rightmost column of the table should expand...

How to select two seperate non-overlapping tables in MySQL.

Hi there. I'm looking for a query to select rows from two different tables, keeping the column names the same (I did find one result here for selecting from two different tables, but it merged the column names to have an easier query). I need to keep the original column names, but have two different tables existing within the new, larger...

HTML - Vertically Align a Table

I would like to place my table smack dab in the center of a page. IT is easy horizontally align it just using <table align="center"></table> But it will not allow this: <table align="center" valign="center"> I also cant put the valign in a div because it is not a valid attribute. I have the idea of making a cell take up an the en...

CSS table naming

Hey all, is there any way i can rename this CSS code to only effect a certain table instead of all the tables on my site? th { font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; color: #4f6b72; border-right: 1px solid #C1DAD7; border-bottom: 1px solid #C1DAD7; letter-spacing: 2px; text-transform: uppercase; text-ali...

Remove white line from Table with Jquery

Hi can someone help me remove the white line just below my top banner. In Firefox you can't see the line, but its visible in IE and Chrome. You can see it here http://www.direkte-el.dk/default.aspx Would prefer a JQuery solution, since its the only way I can change the layout. Sorry the page is in Danish, but you should still be able ...

CSS make textbox fill all available width

I have the following "line" in my web page <div style="width:100%"> "Some Text" <DropDown> "Some more text" <TextBox> <Button> <Button> </div> The DropDown control I don't really have control over the width, as it sizes to fit whatever the longest option value is. The Buttons are fixed width. How can I get the TextBox to fill all avai...

Copy a table from one database to another in Postgres

I am trying to copy an entire table from one database to another in Postgres. Any suggestions? ...

MS Report Designer - What are table groups and how are they used?

Hi. I am working on a project with some existing MS Reports using Reporting Services 2000/2005 and Visual Studio 2005 with the built in Report Designer. I have come accross a report that makes use of a table to display data which is fetched by a Stored Proc. My work required me to modify the report and the stored Proc. I've made the ch...

Parsing PDF files (especially with tables) with PDFBox

Hi! I need to parse a PDF file which contais tabular data. I'm using PDFBox to extract the file text to parse the result (String) later. The problem is that the text extraction doesn't work as I expected for tabular data. For example, I have a file which contais a table like this (7 colums: the first two always have data, only one Comple...