This is my html. I’ve downloaded the files from the Flexigrid site but i dont understand how to get data into the grid…any help?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Phone Directory</title> <link rel="stylesheet" type="text/css" href="css/flexigrid/flexigrid.css"> </head> <body> $('.flexme').flexigrid(); </body> </html>apparently my script tags wont show…look here http://stjohns.digiconmediagroup.com/test/
@millerjc
you have to add a table element with the classname “flexme:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Phone Directory</title>
<link rel="stylesheet" type="text/css" href="css/flexigrid/flexigrid.css">
<script type="text/javascript" src="jquery-1.2.3.js"></script>
<script type="text/javascript" src="flexigrid.js"></script>
<script type="text/javascript">
$('.flexme').flexigrid();
</script>
</head>
<body>
<table class="flexme">
<thead>
<tr>
<th width="100">Col 1</th>
<th width="100">Col 2</th>
<th width="100">Col 3 is a long header name</th>
<th width="300">Col 4</th>
</tr>
</thead>
<tbody>
<tr>
<td>This is data 1 with overflowing content</td>
<td>This is data 2</td>
<td>This is data 3</td>
<td>This is data 4</td>
</tr>
<tr>
<td>This is data 1</td>
<td>This is data 2</td>
<td>This is data 3</td>
<td>This is data 4</td>
</tr>
</tbody>
</table>
</body>
</html>This is the most simple way to convert a normal table to a ‘flexigrid’ table (like example 1 on http://webplicity.net/flexigrid/).
If you want more features, example 3 offers more flexibility, but you will need experience with ajax/dynamic data/jquery/php/asp
Hope this will help you a bit