Welcome To Snipplr


Everyone's Recent Snippets Tagged table



jQuery Ajax function to load xml data into a table and add class to even rows for striping.
1 2427 posted 16 years ago by vagrantradio
1 2167 posted 16 years ago by ginoplusio
Very quick CSS addon to create a checkerboard background color "grid". Not compatible with Internet Explorer (until they start accepting better CSS selectors).
1 2450 posted 16 years ago by cryode
1 1760 posted 16 years ago by CDIDevs
Creates the table using the VB
0 1953 posted 16 years ago by staley412
A script I used for quickly load a file (see line 3) and then make a table which had linenumbers on each line. You may want to add a +1 when its generating the table...
0 1566 posted 16 years ago by Knarf
A Temp table is great for combining multiple SELECT statements in a Sproc and outputting as just one table. Don't forget to Drop the table after the SELECT * FROM #TempTableName at the end.
2 2089 posted 16 years ago by highlyevolved
Price table sample markup UPDATE 1: with CSS styles
0 1291 posted 16 years ago by dreadwarrior
0 1124 posted 16 years ago by blaz
This function is very helpfull when you need to put some data (that was gotten from database) to HTML table. You can choose vertical or horizontal types. **Horizontal type:** | 1 | 2 | 3 | | 4 | 5 | 6 | | 7 | 8 | 9 | **Vertical type:**...
1 2573 posted 16 years ago by kirik
0 1753 posted 16 years ago by CuDDL
A javscript snipped which will mark each table cell with a CSS class containing the cell's column number. This allows you to set the table column widths using just one CSS rule and without hand editing the table HTML code. This is to workaround the l...
0 2431 posted 16 years ago by miohtama
1 3660 posted 16 years ago by traeregan
2 1898 posted 16 years ago by cshaiku
This will return a list of all the tables in a certain database along with their row count.
1 1637 posted 16 years ago by blackf0rk
0 1146 posted 16 years ago by resurge
This code was use for openning a pdf file that was in a table cell. This link was the only link/button for each rows. Using this, you can click anywhere on each rows to open it's link page.
0 1600 posted 17 years ago by HubertGaulin
Great little snippit to add a <tr> to the bottom of a table. Note the use of the context in the jQuery e.g var n = $('tr:last td', this).length; Will have to use this in the future, very good to know!
4 3039 posted 17 years ago by 1man
0 1433 posted 17 years ago by smoover
Use instead of standard "sql\_tablesort()" function. Handles multiple "sort" in $header, but the arrow will be only on last sorted column. This can be handled with rewriting theme_table, for example.
0 1467 posted 17 years ago by kurokikaze
0 1464 posted 17 years ago by stavelin
show a table with data and his column name
2 2092 posted 17 years ago by ginoplusio
sorting a table through javascript
3 1820 posted 17 years ago by ginoplusio
0 1689 posted 17 years ago by crishnakh
Simple enough.
3 2041 posted 17 years ago by mattkenefick
Fields are tab delimited and need to match table schema. I've found the tab separator ASCII(009) preferable over using a comma. The second version can help remove double quotation marks around character fields. Don't forget the keyword LOC...
0 1932 posted 17 years ago by RICHARDP
I often need to know if a record exists in a table. This method is probably the most efficient. Too many people don't use the exceptions that Oracle provides, which is a shame. I think I got it from Tom Kyte's site? Or Steven Feuerstein?
0 3804 posted 17 years ago by stews