Forum


20:05

15/04/2009

I just started working with jqGrid. First of all, I want to say that it is rare to find such extensive documentation for an open source component. Thanks so much to whoever has done all this. In working through the tutorial on the this page:
http://www.secondpersonplural....../index.htm
however, I had to make a couple of changes to get it to work for me to retrieve data from the database. I found these problems using Firebug in the Firefox browser on an Ubuntu Linux LAMP VM using the latest downloads.
I had to change 2 things.
1) In index.php, I had to change
sortname: 'id',
to
sortname: 'invid',
2) In example.php, I had to put the db variables inline rather than from an external file:
//include("dbconfig.php");
$dbhost = "localhost";
$dbuser = "root";
$dbpassword = "xxxxxxxxxxxx";
$database = "test2";
Perhaps I was doing something wrong in the dbconfig.php file so this might be my mistake, but I just wanted to pass these hints along for anyone else who might run into similar issues.
02:53

Moderators
30/10/2007

Hello,
For the first - Thanks we will try to revise all docs when 3.5 will be published.
For the second you should open dbconfig and put the se variables. Another issue is that this file is not included properly. Maybe in this case you will need to check your php settings.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
103 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66