Add Row Problem

28 views
Skip to first unread message

Waynex

unread,
Oct 16, 2010, 8:58:37 PM10/16/10
to TableGear
Hi,
I'm having this interesting problem with adding new rows. Firstly here
is my test page so you can see what's going on.

http://wayneandfarrah.com/dev/critical_systems/public/test.php

The symptoms are that when you are entering the data for each column
of a new row, on exiting each column TableGear enters a new row for
it, essentially it creates a new row for each column and puts it into
the first row. You can see this on the page at the moment that I have
tried to add a new row and what TableGear has actually done (Note: I
added the first two rows via php admin so that I could verify that I
was getting data back so that is why they look right.)
I have omitted the actual connection details of course, if someone
knows a reason from looking in the code below why this might be
happening
I would be very appreciative.

<?php
include("../libraries/TableGear1.6-jQuery/include/TableGear1.6.php");

$options = array();
$options["database"] = array();
$options["pagination"] = array();
$options["database"]["name"] = "<omitted>";
$options["database"]["username"] = "<omitted>";
$options["database"]["password"] = "<omitted>";
$options["database"]["table"] = "<omitted>";
$options["database"]["host"] = "<omitted>";
$options["database"]["sortable"] = "all";

$table = new TableGear($options);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
>
<title>TableGear for jQuery</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="../libraries/TableGear1.6-jQuery/
javascripts/TableGear1.6-jQuery.js"></script>
<link type="text/css" rel="stylesheet" href="../libraries/
TableGear1.6-jQuery/stylesheets/tablegear.css" />
</head>
<body>
<div>
<h1>Markov</h1>
</div>

<div>
<?= $table->getTable() ?>
</div>
<?= $table->getJavascript("jquery") ?>

</body>
</html>

Andrew Plummer

unread,
Oct 17, 2010, 1:42:16 AM10/17/10
to tabl...@googlegroups.com
Hi,

Thanks for the tip.
There was a major bug in the jQuery client that was causing the problem you were having, as well as one in the php script as well.
I've fixed both and updated the version to 1.6.1.

Please check:


Thanks,

Andrew

Waynex

unread,
Oct 17, 2010, 3:51:28 AM10/17/10
to TableGear
Thanks for the quick response! Great Job by the way it's a very easy
to use library very minimal configurations, I had a look at some of
the other tables out there and they were very verbose to get up and
running, while yours was very easy to implement.
It's now working as expected. :D

Thanks,
Wayne
Reply all
Reply to author
Forward
0 new messages