php - load data from server-side in bootstrap data-table -
hi new bootstrap , angularjs. trying load info server-side mysql using php bootstrap taking lots of time because there 3000 records , records first loading showing in bootstrap data-table taking more 5mins. need create fast. using angularjs also. on google search found out can processing info in server-side. hence, i need know how populate info server-side in bootstrap data-table.
please help me !!! :)
sample json info : (which getting php file)
get.php?json=all&query=select * student
limit 0,3
[ { "id":"1", "fname":"aarya", "mname":null, "lname":"m", "gender":"male", "dob":"2004-10-04", "admissiondate":"2014-03-28 06:38:49", "academic_year":"2013-2014", "admissionnumber":"-", "class":"4", "section":"d", "rollno":"1", "applicationnumber":null, "mobile":"9655093949", "transporttype":"school-transport", "transportm":null, "pickuppoint":"echampatti", "photo":"upload\/student\/1.jpg", "parentid":"1", "pickup":"125", "discountid":"1", "tf_discountid":"0", "bs_discountid":"0" }, { "id":"2", "fname":"abhi", "mname":null, "lname":"s", "gender":"male", "dob":"2004-06-13", "admissiondate":"2014-03-28 03:17:35", "academic_year":"2013-2014", "admissionnumber":"-", "class":"4", "section":"d", "rollno":"2", "applicationnumber":null, "mobile":"-", "transporttype":"own-transport", "transportm":null, "pickuppoint":"na", "photo":"upload\/student\/2.jpg", "parentid":"2", "pickup":null, "discountid":null, "tf_discountid":"0", "bs_discountid":"0" }, { "id":"3", "fname":"ahraf", "mname":null, "lname":"a", "gender":"male", "dob":"2004-10-25", "admissiondate":"2014-03-28 03:17:35", "academic_year":"2013-2014", "admissionnumber":"-", "class":"4", "section":"d", "rollno":"3", "applicationnumber":null, "mobile":"9025509301", "transporttype":"school-transport", "transportm":null, "pickuppoint":"rayakottai", "photo":"upload\/student\/3.jpg", "parentid":"3", "pickup":"1", "discountid":null, "tf_discountid":"0", "bs_discountid":"0" } ]
i'd utilize ng-repeat info server within table itself. along lines of following:
<table class="table table-striped"> <tr ng-repeat="data in serverdata"> <td>{{data.fname}}</td> <td>{{data.lname}}</td> </tr> </table>
php json angularjs twitter-bootstrap datatable
No comments:
Post a Comment