table

how to add NavigationBar with Editbutton on left to the Uitable In Iphone?

Hi, In my iphone application i have added the Uitable view.While launching the application the table is showing the No. of rows which i want.Now i want to add the Navigation bar to the UiTable,also i want to add the edit button on the left side of the navigation bar. How to add the Navigation bar in the UiTable view in iphone?I dont wa...

UITabBar with UITableView - I can see the table correctly, but cannot select a row

This may be an easy answer for someone. I first built an a navigation app that had a table loaded from SQLite. The rootViewController (UITableViewController) is loaded from the mainWindow.xib . I added the search and scope functions, and push a detailed view (UIViewController) from a row selection just fine, and can navigate back and f...

Cant read second table from same sqlite database iphone

in my program i have a database and two tables in it my first function readLocationsFromDatabase // Setup the database object sqlite3 *database; locations = [[NSMutableArray alloc] init]; // Open the database from the users filessytem if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) { // Setup the ...

How might you clone a database table via Rails migration?

I want a migration to create a clone of an existing table by just suffixing the name, including all the indexes from the original table. So there's a "snapshots" table and I want to create "snapshots_temp" as an exact copy of the table (not the data, just the table schema, but including the indexes). I could just copy and paste the b...

JQuery Height of Hidden TR returning 0...

Hey Guys, I'm trying to calculate the height of a TR that is set to display:none, however, the jquery height extension method returns 0 everytime. Of course when its visible it returns the correct value. From my understanding and past experience, I don't know why this is happening because shouldn't it return the height even if its hid...

How does one round TABLE corners with JS or CSS?

Hi everyone, First, thanks to everyone for helping so much, I'm addicted to the community :-) All righty, so I've got a plain ole html table, and I'd like to round its corners in some way that is more automated than creating a different image for each foreground/background combination. Oh, and it absolutely must work with IE7. Anyone kn...

Ideas to manage IP and Ports in Key/Value format?

I'm looking for a good and fast way to manage IP addresses and ports in a file. Sort of a DB Table that has 2 columns: IP and Port, but in a file, without using a DB. It has to support adding, deleting and updating. I don't care from concurrency. Thanks. ...

How do I set specific widths for an HTML table layout?

Hi everyone, I have a layout made in photoshop and I'm trying to slice it up and put it into a table layout. I'm trying to make a layout using a table that looks like this: http://imgur.com/eKndd.gif but when I marked up the table all the widths of the cells seem to be incorrect and not what I want. My markup is: <table width="950" bo...

cakePHP: How to create a form for a 2D/multidimentional table?

Hi, I need to create a form in CakePHP to allow users enter data(numbers) into the cells shown on the table below. The input screen needs look like the table shown below. The users should be able to select any cell they want to enter/update the value, then type in the value, click submit and submit the value/s. Each "Metric section ...

html: hover table column

How can I change the background column of an html table column when the mouse is over it? Preferably with css only. ...

How to hide Table Row Overflow?

I have a situation on some tables where the data is too large to fit. So, it expands the cell vertically to accomodate for this. So now rows that have the overflow are twice as tall as rows with smaller amounts of data. This is unacceptable. How can I force table to have the same row height of 1em? Here is some markup that reproduce...

List stored functions using a table in PostgreSQL

Just a quick and simple question: in PostgreSQL, how do you list the names of all stored functions/stored procedures using a table using just a SELECT statement, if possible? If a simple SELECT is insufficient, I can make do with a stored function. My question, I think, is somewhat similar to this other question, but this other question...

rendering thousands of thumbnails table vs div vs span

So my current code using tables to render thumbnails. when the page is resized, I use javascript to recalculate the number of rows and reinsert the cells into the correct columns. This works fine for 100 thumbnails but is kind of slow when displaying 3000 thumbnails. So I've looked at how bing displays its thumbnails and it appears to ...

rowspan with css

my website layout uses a table like this. <table> <tr> <td align="left" valign="top" rowspan="2" style="padding-right:41px;"> </td> <td align="left" valign="top" width="440px"> </td> </tr> <tr> <td align="left" valign="top" width="440px"> </td> </tr> </table> a nav bar on the left which takes up two rows and two columns. How can I ...

Selecting rows in jQuery

I am a beginner in jQuery. I have a table with multiple rows, how do I select next row or previous row after selecting a particlar row? ...

traversing td/tr with jquery's closest()

<td width="162"><span class="required">*</span> Name:</td> <td width="407"> <label> <input id="store_name" class="text_field alnum" type="text" minlength="3" maxlength="30" size="40" name="store_name" style="color: rgb(51, 51, 51);"/> </label> </td> <td class="char_count_area" style="color: green;"/> I have some...

Cascade a value in a table

Lets say I have two tables, 'a' and 'b'. The relationship of 'a' to 'b' is one to many. Lets both tables have the field status. This field has the values 'active' and 'inactive'. If I set the field status to 'inactive', does MySQL have a way to cascade this down to all tables tied to the row I changed the status value for? Or would ...

HTML Tables - How to make IE not break lines at hyphens

I have some table cells containing dates formatted like this: 2009-01-01. I.E 7 seems to be breaking these into two lines at the hyphen. Is there any way to turn this off? ...

tr:nth-child(even) help. how to apply to one class?

im not very good with css and i need some help. i have a table where i want every other row to be gray and the alternating rows to be white. but i only want it to happen on one particular table. i added some code to my css: tr:nth-child(even) { background: #CCC; } tr:nth-child(odd) { background: #FFF; } but the proble...

MySQL: Table Layout for perfomance (Multiple Query vs One single big query)

Hello stackoverflowers, I have a straightforward question. I am doing a web application that uses MySQL, and I am currently designing it. I just have a small question about performance. I would like to know what is more efficient: Scenario #1: Table: Restaurant -Name -City -Province -Country -Continent sql =...