Title: Getting CRUD Application to work.. Post by: peter900 on November 09, 2012, 10:59:39 AM I'm trying to run some tests with EasyUI beginning with the basic crud. I've sorted the database, tested conn.php and get_users.php displays the data it should. But when I run index.html I get the screen, displayed perfectly but no records
- displaying 0 to 0 of 0 items. Here is the output from get_users.php..... Code: {"total":"13","rows":[{"id":"3","firstname":"fname1","lastname":"lname1","phone":"(000)000-0000","email":"name1@gmail.com"},{"id":"4","firstname":"fname2","lastname":"lname2","phone":"(000)000-0000","email":"name2@gmail.com"},{"id":"5","firstname":"fname3","lastname":"lname3","phone":"(000)000-0000","email":"name3@gmail.com"},{"id":"7","firstname":"fname4","lastname":"lname4","phone":"(000)000-0000","email":"name4@gmail.com"},{"id":"8","firstname":"fname5","lastname":"lname5","phone":"(000)000-0000","email":"name5@gmail.com"},{"id":"9","firstname":"fname6","lastname":"lname6","phone":"(000)000-0000","email":"name6@gmail.com"},{"id":"10","firstname":"fname7","lastname":"lname7","phone":"(000)000-0000","email":"name7@gmail.com"},{"id":"11","firstname":"fname8","lastname":"lname8","phone":"(000)000-0000","email":"name8@gmail.com"},{"id":"12","firstname":"fname9","lastname":"lname9","phone":"(000)000-0000","email":"name9@gmail.com"},{"id":"13","firstname":"fname10","lastname":"lname10","phone":"(000)000-0000","email":"name10@gmail.com"}]} index.html is "as downloaded" except all the urls are local. I can get the drag and drop and the datagrid to work - its just this app with the database connection that fails. I must be missing something simple ! Thanks Peter PS. 10/11 I've added the output from get_users.php which surely shows the db connection is ok. Is there some addtional .js file I'm missing ? I completely baffled as to why no records appear ! Title: Re: Getting CRUD Application to work.. Post by: stworthy on November 11, 2012, 05:38:04 AM Please use firebug to see if some errors occurred with this page.
Title: Re: Getting CRUD Application to work.. Post by: peter900 on November 16, 2012, 01:40:24 PM Firebug shows nothing unusual - no debug, no errors, no warning, no logged data.
The post response looks quite healthy ! Code: Connected!Connected2222222!{"total":"13","rows":[{"id":"3","firstname":"fname1","lastname":"lname1","phone":"(000)000-0000","email":"name1@gmail.com"},{"id":"4","firstname":"fname2","lastname":"lname2","phone":"(000)000-0000","email":"name2@gmail.com"},{"id":"5","firstname":"fname3","lastname":"lname3","phone":"(000)000-0000","email":"name3@gmail.com"},{"id":"7","firstname":"fname4","lastname":"lname4","phone":"(000)000-0000","email":"name4@gmail.com"},{"id":"8","firstname":"fname5","lastname":"lname5","phone":"(000)000-0000","email":"name5@gmail.com"},{"id":"9","firstname":"fname6","lastname":"lname6","phone":"(000)000-0000","email":"name6@gmail.com"},{"id":"10","firstname":"fname7","lastname":"lname7","phone":"(000)000-0000","email":"name7@gmail.com"},{"id":"11","firstname":"fname8","lastname":"lname8","phone":"(000)000-0000","email":"name8@gmail.com"},{"id":"12","firstname":"fname9","lastname":"lname9","phone":"(000)000-0000","email":"name9@gmail.com"},{"id":"13","firstname":"fname10","lastname":"lname10","phone":"(000)000-0000","email":"name10@gmail.com"}]} What could be missing that would cause the table not to load this data ? Peter Re-installed everything and it now works. Now I can see how it works with Joomla and Sales Force ! |