table

how to prevent html table widths from enlarging due to huge one word

suppose I have a table: <table width="100"> <tr> <td> hi i like you you are awesome blah blah blah no no no no </td> </tr> </table> then the table will be displayed with 100px width just fine but then if the table becomes: <table width="100"> <tr> <td> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

How to create a table in objective C?

Hi, everyone, I am the beginner of the objective C and I want to ask some general question. I have a NSArray * object, which contain the first name and the last name (see below example), and I would like to show the format like a table (as well as the iPhone contacts but only display the content is enough, not the search and group and ...

HTML table td alignment

I have three buttons inside a td element. Now all the buttons are being aligned vertically. How can I align them horizontally without using nested table. ...

Xslt how to style conditional odd/even rows

I've an html table written using xslt transformation that looks like this <table> <xsl:for-each select="someNode"> <xsl:if test="testThis"> <tr> <!-- <xsl:call-template name="conditionalRowStyle"/> --> <td>something</td> </tr> </xsl:if> <tr> ...

WPF Table: Disable editing of a specific cell?

Hello, given a Table with some TableCells (containing a Paragraph) in a rich text box, how can I disable editing of a specific cell? Please Note, that I don't want to disable editing of the whole table / rich text box. Thanks for any hint! ...

Problems With Tables And PHP

I'm using this code to populate a Table: <style type="text/css"> table, td { border-color: #600; border-style: solid; } table { border-width: 0 0 1px 1px; border-spacing: 0; border-collapse: collapse; } td { margin: 0; padding: 4px; border-width: 1px 1px 0 0; background-color: #FFC; } </style> <tab...

OpenSource for table recognition on plain text

I am searching for a table recognition library which can operate on plain text. Ideally the library is not a dirty hack of regular expression, but something inference-based. All I can find are papers but no implementations of the concepts described. I am willing to implement such a concept, but I can not believe there is nothing out the...

uitableview header that stays at top

I'd like to have a tableview header that can remain at the top of the table, even when the user has scrolled down. I tried using a section header for this, but my table has multiple sections so I can't guarantee that one particular header will be at the top. What should I do? ...

What are the best practices for designing DB Tables

We're building our DB design (using PostgreSQL) and for (almost) every table , I have the following columns CREATE_TIMESTAMP TIMESTAMP, CREATED_BY VARCHAR(25), modified_TIMESTAMP TIMESTAMP, modified_BY VARCHAR(25), I am also using Audit tables for some of the Entity Tables. The DB about 15 tables as of now (very soon will ...

jQuery tablesorter - sorting by rows and columns, not just columns

Hi, I have this problem. I have a big table with categories in THEAD and in TBODY I have authors of articles. When i apply tablesorter on this table, I can sort it by columns But I want to sort it by rows too, so I can tell, how many articles author has in which category. Is it possible? Oh I forgot, I am using this tablesorter: http:/...

Sort mySQL table's fields

So lets say I have a table (lets say 50 rows, 50 columns) that I occasionally have to make tiny edits to. While I realize I could be (maybe some of you will tell me I should be) using the query to do this, I like using a database management program (like Sequel Pro) to make changes by hand. So I have two questions: When you do a query ...

Rails Join Table without Model

Is it possible to create a join table without a model. I have a model called User and Pet. I want user to have only one pet and pet to only have one owner. Very simple. However, I am trying to figure out how to create a join table pets_users that has both users.id and pets.id in it without having to create the actual model. Is this poss...

jquery div append table twice

Hi all. Here is my code : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ; "http://www.w3.org/TR/html4/loose.dtd"&gt;&lt;html&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> </head> <body>...

lua - metamethod lookup through __index ?

I've implemented my own class system and I'm having trouble with __tostring; I suspect a similar issue can happen with other metamethods, but I haven't tried. (Brief detour: each class has a __classDict attribute, holding all methods. It is used as the class instances' __index. At the same time, the __classDict's __index is the supercla...

CakePHP, setting recursive to -1 for a model so it doesn't do "joins"?

I have 2 models that are associated but don't want it to use joins when I make database updates.. from the cakephp cookbook, I can't quite gather how I am supposed to set "recursive" to -1, also, do I do it for the model that has the association, the other one, or both such as if model1 "belongs to" model2 and I am trying to make it so...

Add columns to multiple tables in schema

Hi, I need to alter multiple tables in a schema, for all tables prefixed with something, for example: ALTER TABLE "SCHEMA"."TABLE1" ADD ( "COLUMN1" CHARACTER(4) NOT NULL DEFAULT 'DATA', "COLUMN2" VARCHAR(16) NOT NULL DEFAULT 'MORE_DATA', ); I need this to iterate over multiple tables, like SCHEMA.table1, SCHEMA.ta...

blinks or flash bgcolor

I have there is a table showing the last 10 news. But when I want to put any new command to the news appears in the td blinks or flash bgcolor ...

Making a row editable based on a checkbox in HTML

Hi, I have a table in HTML. The contents of this table are dynamically populated. Every row of the table has text boxes and one checkbox. When the page is loaded, all the text boxes in the rows will be in a read-only state. Now, i want to change the state of the text boxes in a particular row to editable, if the check-box in that row i...

Building a map from a matrix in Matlab

I have a matrix A which holds integers in a bounded range (0..255) and I need to build a table mapping a value (0..255) to all the coordinates in the matrix which hold this value. What is the best way to achieve this? - I thought about using containers.Map for the task but Map doesn't support multiple values per key. I could have used ...

Retrieving value from a textbox in HTML table

Hi, I have a table which has textboxes in its cells. All these textboxes are created and populated dynamically by using PHP. I have to iterate through the cells and get the values. By using the following code, I am able to get the innerHTML of the cells. var tblLang = document.getElementById("tbl_Languages"); var tblrows = tblLang.rows...