EasyUI Forum
September 14, 2025, 12:57:59 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Getting CRUD Application to work..  (Read 11064 times)
peter900
Newbie
*
Posts: 22


View Profile Email
« 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 !
« Last Edit: November 10, 2012, 04:39:08 PM by peter900 » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 11, 2012, 05:38:04 AM »

Please use firebug to see if some errors occurred with this page.
Logged
peter900
Newbie
*
Posts: 22


View Profile Email
« Reply #2 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 !
« Last Edit: November 24, 2012, 11:57:16 AM by peter900 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!