table

Best database design (model) for user tables

I'm developping a web application using google appengine and django, but I think my problem is more general. The users have the possibility to create tables, look: tables are not represented as TABLES in the database. I give you an example: First form: Name of the the table: __________ First column name: __________ Second column na...

Mysql scenario - Get all tasks even if there is no entry?

Hi Gurus, I have three tables Tasks with columns Taskid, Taskname TaskAllocations with columns Taskid, EmpNum TaskEntries with columns TaskId, EmpNum, WorkedDate, Hoursspent Now I want to get all the task entries along a particular week. Here my problem is even if there is no Taskentry for a particular task I should get atleast a r...

jquery how to get html table id above button after clicked

i have an html table followed by a button that says "Add Row" below it. WHen i click on the button, i would like to add a new row onto the html table but first i need to get the html table id above. is there anyway in jquery to say "Give me the id of the html table right before this button"> ...

How to represent dual-cell format in CSS?

Maybe I'm having a brain fart today, but I've been having this problem for awhile now. Anyways, given this code: <table> <tr> <td><img src="" /></td> <td valign="middle">Text</td> </tr> </table> This renders a format with an image to the left, and some vertically centered text to the right of it. This works because then I can...

Database tables with only one index ... bad idea?

If a programming language allowed the creation of database tables, but only allowed one field to be used as an index ... how limiting would that be? I am not a real database programmer, so I'm wondering if such a system could be used as the basis for serious databases, or would be only a toy. ...

Make a td fixed size (width,height) while rest of td's can expand.

Hi all, Do you know, how to fix the size of a td Width and Height in a table allowing the rest of td on table to expand as needed? Thanks. The problem is that when there is data inside of td's it will not shrink more than the data, but if is empty it will shrink all the way, if you expand the window the td will expand. I would like t...

Get content from table with id. Regex

I need to sort a html string so I get the content I need. Now I need to loop through the tr's in a table that got an ID. I could really need some help to get this regex going. Appriciate all help I can get ...

best method in jquery for replacing rows in a table after server side processing such as mysql sorting - .html, .append, .clone, or other?

What is the 'best practice' when returning dynamic data for a table (server side sorting, filtering etc from a db) ? Do you return just the data in json, and repeatedly clone a row element, replacing the values in each row (thus decreasing the size of the ajax call, but increasing the client side processing), or return the full html, an...

How to add a not null column to postgresql table without doubling its size on disk

Is there a way to add a not null type column to a Postgresql table without doubling its size on disk? If for instance I have a table with some columns defined, and I want to add a column I'd do the following: alter table my_table add new_column int update table my_table set new_column = 0 alter table my_table alter column new_colum...

Change the visibility of all rows in a table with JavaScript

I have a table filled by a repeater, with many of the rows hidden initially. I have an anchor that fires a javascript function to change all the rows in the grid. The function is as follows: function ExpandAll() { var elem = document.getElementById("repeaterTable"); var rows = elem.rows; for (var i = 1; i < ...

Adding rows to a table based on user input (ASP.NEt)

Hi All, I have a TextBox entry field where the user will enter a integer value. And then there is a "Create" button, which when clicked upon must generate a Table with 2 columns : "Name" and "Email" being the column headers. I want each row to have a textbox in each of these columns. All of this has to happen after the button is clic...

Microsoft Word 2007 VSTO, Create table outside word?

I am using VSTO to fill data into a table in a Microsoft Word 2007 template. The amount of data varies and filling many pages (+50) takes a lot of time. The code I use to create a table: Word.Table table = doc.Tables.Add(tablePosition, numberOfRows, 8, ...

How to fix height of TR?

Is it possible to fix the height of a row (tr) on a table? The problem appears when I shrink the window of the browser, some rows start playing arround, and I can not fix the height of the row. I tried several ways: tr width="20" / tr style="height:20px" / td height="20" / td style="height:20px" I am using IE7 Thanks in advance. S...

How to get min-width or similar to work on whole page? IE7 and 8

Hi, I am creating a Web page, the problem is that when I shrink the window of the browser, the tables and the div will shrink at the size they need to fit the content, and it makes the page look terrible. I have to declare a width of 90% for all elements, but when I declare min-with:700px; to all elements (div and tables) do not obey an...

Merge cells in Table (RDLC)

Hi, Can I get merged cells in some rows while other rows cells remain not merged? Like this way: | group row 1                              | | cell1 | cell3 | cell4 | cell5 | cell6 || cell1 | cell3 | cell4 | cell5 | cell6 |... | group row 2                              |... I have to export to Excel content of datagridview with group ...

Getting table entry index

I can't get table entry index. I need it to remove an item from table. I use table.insert to add entries to table. Another question: why Lua doesn't have "overload" to function table.remove so one can remove item by associative index? ...

Should this be in a table or a div or other?

Ok, I'm not trying to put fuel on the table/div debate, for this project I've already decided that I want to use divs for everything that's not tabular, so far it is working out well. I have one spot where I need to display name value pairs, so on the left I display the name (label) and on the right I display a value. It's not necessar...

padding an entire column in an html table

I have two columns in a table. Without explicitely specifying a column width, I want to allow a bit of space between the left column and the right. I know I can do this by setting the padding-right style on each left cell, but is there some way to just specify it once so it applies to all cellsin that column? I don't want to add a "sp...

Can't sort table with associative indexes

Hi, why I can't use table.sort to sort tables with associative indexes? ...

Adding tables in jHtmlArea

Anyone know of a way of making jHtmlArea support table content, and allow the user to add tables/cells/rows to the editor box? It doesn't appear to be a standard feature for the plugin. I would like for my user to be able to create tables in the WYSIWYG editor. Thanks! ...