table

To have text and a picture on the same page in LaTeX

My LaTeX puts each picture in my document to an empty page, no matter what is the size of the picture such that only the caption is in the page where is the picture. Example of code \begin{table}[h!] \begin{landscape} \begin{figure} \caption{ERD} \includegraphics[width=25cm]{/Users/cs/hy/usecases.png...

SQL Design - Accounting for unknown values

Ok, this gets a little tricky. Here goes. Say I have a table called HoursCharged ChrgNum(varchar(10)) CategoryID(uniqueidentifier) Month(datetime) Hours(int) CategoryID is a foreign key reference to another table in my database, which is just a name/ID pairing. ChrgNum is guaranteed to be unique outside of this database, a...

overflow="scroll" in <td>

Why does the css property overflow="scroll" not work in <td>, while overflow="hidden" works well? <table border="1" style="table-layout:fixed; width:100px"> <tr> <td style="overflow:scroll; width:50px;">10000000000000000000000000000000000</td> <td>200</td> <td>300</td> </tr> </table> From the css specs1,2, I can't see ...

How can I convert this table based layout to CSS?

I have a table based layout which is 100% height/width with no scrollbars. The header (red) automatically expands to fit the content and I don't know how many pixels it will be. The fluid table below gives exactly what I what. <html> <body height=100%> <table height=100% width=100% padding=0> <tr height=1><td colspan=2 bgcolor=red>Fit...

creating a Table structue using JQuery

Hi , In my application, there is a view page to show the table of Attributes name as the header and its value filled by many people below. Like Name Age salary a 22 18912 b 23 89972 c 23 781273 i want it like above .. But i am getting it as Name Age Salary a 22 18912 b 23 89972 23 781273 I am using JQuery t...

javascript tables

I'm having an issue with looping through a table in javascript and getting the text from the first cell of a row. I want to get the text of this cell so that I can compare it with something else and remove the row if the text matches. When I try to get the text though, all that actually comes out is "[object text]". Can anyone tell me ...

Why does layout change in IE when UL is alone in a TD vs having an extra empty DIV?

I'm adding css-based tab navigation to a site that is still using table-based layout. When I place my tab list inside a td, there is a visual "gap" that you can see. If I put an empty div with width: 100% in the td, then my tab list displays correctly. (It also works fine outside the table.) Why does the div make the tabs lay out correc...

How to programmatically copy a table in SQL Server, without the data?

I need to copy a table I already I have in a SQL server database, but I don't need th edata contained in the source table. The examples I found only involve copying the data. Copy the table structure only, not the data. Source and target tables are in the same database. Target table does not exist yet. Need to do this programmatically...

Div not expanding proportional to content

I'm converting a bunch of tables into divs, the layout itself is very simple and so far it works great in both ie and ffx. BUT, when the content of a div doesn't fit then it grows out of it, and pushes everything after it down...in other works, makes a mess The layout is like this, <div class="wrapper"> <div class="left">picture</d...

Dynamic width of Table as per column

I have one table which display data as from Dynamic Content, I want to make table width 100% when there is 6 cols. and table width auto if less the 5 cols. I tried with CSS but, when there is only two cols , it expand two cols to full width while have table 100% width and looks awkward. Is there any Javascript , jQuery script available...

Can't work out why I can't format this text

Now, I could be being a bit thick and be doing this the wrong way, but in short, I have a dataset where I run a query to retrieve what a customer has ordered. Specifically, I've picked one with multiple items in for testing purposes. I'll spare you all the code but the specific bit I'm having an issue with is: <script runat="server"> ...

Table cell not spanning correctly

Hi, I'm having trouble with a table cell not spanning correctly. I'm using jQuery to show/hide a row of a table which contains a form, however, when I toggle the display of it, it isn't working correctly. You can see what I mean here - http://development.dekken.co.uk/bni/training/ If you click on 'confirm', the form is toggled. Howev...

PHP ASCII Table Library

Is threr a de-facto standard library for creating ASCII "tables" in PHP? Basically, I want some PHP code that, when handed an Array or other data structure will output tables that look something like the mysql command line client's results +--------+---------------------+----------------------------------+ | fld_id | fld_name ...

Creating tables dynamically in jQuery

Hey everyone, I'm building some data dynamically using jQuery, but I'm getting the following error: Uncaught Error: HIERARCHY_REQUEST_ERR: DOM Exception 3 This happens at the appendTo part of a script that looks like this: $('<tr />').append( /* lots of stuff */ ).add( $('<tr />') ).append( /* some more */ ).appendTo($tbody...

SQL - Combine two tables for one output

Say I have two tables: KnownHours: ChargeNum CategoryID Month Hours 111111 1 2/1/09 10 111111 1 3/1/09 30 111111 1 4/1/09 50 222222 1 3/1/09 40 111111 2 4/1/09 50 UnknownHours: ChargeNum Month Hours 111111 2/1/09 ...

Return another value when row is inexistent

Hello, In a database table with a structure like this : Table 1 Name | Id A 1 B 2 Table 2 Table1's ID | IntValue 1 11 2 66 now, there is a query which joins the 2 tables and outputs something like A | 11 B | 66 but the problem is that when, let's say row (A,1) gets deleted from table1 the...

How to make two elements in gtk have the same size?

I'm using pyGTK. I want to layout a large element with 2 smaller ones on each side. For aesthetic reasons, I want the 2 smaller ones to be the same size. As it is, they differ by a few pixels, and the middle element is not centered as a result. I tried using gtk.Table with 3 cells, but having homogeneous=True doesn't have the desired ef...

Bug in Word 2007 ConditionalStyle

I'm using the Word 2007 object model to manipulate tables. Whenever I read the Shading or Borders properties of a ConditionalStyle object for a table's style (using VBA or C#), it resets the table's applied conditional styles to Header Row, Banded Rows, and First Column, and it clears all table-level formatting (borders and shading). ...

Best way to parse a table in Ruby

I'd like to parse a simple table into a Ruby data structure. The table looks like this: http://img232.imageshack.us/img232/446/picture5cls.png Edit: Here is the HTML and I'd like to parse it into an array of hashes. E.g.,: schedule[0]['NEW HAVEN'] == '4:12AM' schedule[0]['Travel Time In Minutes'] == '95' Any thoughts on how to do ...

When would you ever set the increment value on a database identity field?

Given the table: CREATE TABLE Table1 ( UniqueID int IDENTITY(1,1) ...etc ) Now why would you ever set the increment to something other than 1? I can understand setting the initial seed value differently. For example if, say, you're creating one database table per month of data (e.g. Table1_082009, Table1_092009) and want to s...