All Input fields are open

7 views
Skip to first unread message

Ralph

unread,
Oct 5, 2010, 11:31:53 AM10/5/10
to TableGear
Hi Andrew,

Just started testing TG everthing seems to work ok, except all the
input fields are open ready to edit.

The demo is different all the input fields are closed and open when
clicked on.

I have seached around to try and find a setting to activate the
clicking on a field to enable edit, but can't find it.

This is a link to my test page:-

http://www.easypagez.com/TableGear1.6-jQuery/test.php

Thanks

Ralph

Andrew Plummer

unread,
Oct 10, 2010, 10:01:10 AM10/10/10
to tabl...@googlegroups.com
 Ralph,

Thanks for your input and sorry to get back to you so late.

It looks like a few things are wrong with the page you sent.
First, the form element is outside of the html document, not inside where it should be.
Also the tablegear table isn't being initialized properly.
Are you using the same sample script as provided in the package?

If not I can take a look if you send me the php file you're using.

Andrew

Ralph Ames

unread,
Oct 10, 2010, 10:20:32 AM10/10/10
to tabl...@googlegroups.com
Hi Andrew,

Thanks for your reply.

I tried using the index.php in the package first, but I was getting no
connection.

So I put the attached test file together based on your documentation.

Thanks

Ralph

test.php.txt

Andrew Plummer

unread,
Oct 10, 2010, 11:05:54 AM10/10/10
to tabl...@googlegroups.com
Well, that mostly looks right, but one thing I do see is that you're calling the getTable method twice, once before the html declaration.
Try taking that out and see how it goes.

Andrew

Ralph Ames

unread,
Oct 10, 2010, 11:28:07 AM10/10/10
to tabl...@googlegroups.com
Ok, I took out this line

$tg->getTable();

and I get the <head>...........</head>

<body>
<div>
And nothing else..........resulting in a blank page.

http://www.easypagez.com/TableGear1.6-jQuery/test.php

Taking this line out

<?= $table->getTable() ?>

Returns the same as I had before.

http://www.easypagez.com/TableGear1.6-jQuery/test.php

Andrew Plummer

unread,
Oct 10, 2010, 12:20:05 PM10/10/10
to tabl...@googlegroups.com
Check out the bottom. 

$tg is the instance, but you're calling methods on $table.
Also watch out for syntax errors in the constructor.
Right now I'm not getting parse errors, just a blank page (probably my PHP settings), so makes sure the commas, closing parentheses are all correct, etc.

Andrew

Ralph Ames

unread,
Oct 10, 2010, 12:31:01 PM10/10/10
to tabl...@googlegroups.com
Went back to the index.php file and re-entered my database information.

I needed to use the host field in the, options array

The problem was this

// Database host: if omitted defaults to localhost.
// $options["database"]["host"] = "<DATABASE_HOST>",

I have just noticed the comma at the end, and changed it to a semi-colon.

Bob's your uncle.

http://www.easypagez.com/TableGear1.6-jQuery/index.php

Looks good now.

Andrew Plummer

unread,
Oct 10, 2010, 2:37:04 PM10/10/10
to tabl...@googlegroups.com
OK great...

I'll change the comma in the source too so others don't have the same problem.

Thanks!

Andrew
Reply all
Reply to author
Forward
0 new messages