jsgrid-php icon indicating copy to clipboard operation
jsgrid-php copied to clipboard

Not showing anything

Open breyg opened this issue 7 years ago • 7 comments

I created a Databased named jsgridsample and imported the tables from the createdb.sql file. I saved the files in Xampp/htdocs/jsgrid-php-master I changed the mysql:host to mysql:host=localhost Those are the only changes I've made to the files

Do I need to do something else?

Thank you!!

breyg avatar Oct 30 '17 04:10 breyg

This should be sufficient. All you need is to create the DB and change the connection string to the database. Be sure the environment is properly configured and the connection string to the DB is correct.

tabalinas avatar Nov 26 '17 14:11 tabalinas

I've done this and I have the same problem. I get the 'JSGrid and PHP Sample' title on the page, but no table.

karissabob avatar Jan 03 '19 14:01 karissabob

did you solved this issue

SuryaJD avatar Mar 23 '19 13:03 SuryaJD

I am having the same issue. I unzipped the folder then changed the config.php to my database and the only thing that shows on screen is "JSGrid and PHP Sample".

dmhuffer avatar Apr 01 '19 13:04 dmhuffer

I found a version of this that actually works.

https://github.com/rade93/Inline-Table-Insert-Update-Delete-in-PHP-using-jsGrid

karissabob avatar Apr 02 '19 04:04 karissabob

I was having the same problem. Only the 'JSGrid and PHP Sample' title. I replaced /public with public in the root index.html. Also replaced /countries with countries and /clients with clients in the sample.js file in the js folder. Worked perfect after that.

JeffCarroll58 avatar Feb 26 '20 00:02 JeffCarroll58

This is because of wrong ajax paths is js file "/public/js/sample.js" if you run it from folder

 return $.ajax({
                        type: "GET",
                        url: "/clients/",
                        data: filter
                    });

!!! url: "/clients/" !!!

"Xampp/htdocs/jsgrid-php-master" so the root will be "Xampp/htdocs/"

and will be "Xampp/htdocs/clients" not "Xampp/htdocs/jsgrid-php-master/clients"

move all installation to the root or edit the sample.js and change every url: "/clients/" to url: "clients/" and so one also shold be for the same reason

qant avatar Mar 10 '21 09:03 qant