Search Posts

Category: php

How to display records in table ,accordingly checked columns or drag and drop that column into table from list in side bar?

i have to display records from table “user” and “item” , both table having columns (userid,username,address,contact,city) and (itemid,itemname,ownerofitem,applicableforcity) respectivlely..in my view page by default i have display one table with info “username” and “city”…now i have to add both table’s field in left hand side and if i select itemname and drag n drop it into table taht field will be added and data filtered accordingly .how it can be possible using angular js or […]

Display same category items in same row and also display only 6 items

Hi i am newbie to angularjs. I have designed my cart which is displaying the items from db. i want to display the same category items in a same row. i dont know how to display it. Here is my code. my js code app.controller(“productsview”,[“$scope”,”$http”,function($scope,$http){ $scope.productload = true; $scope.getcategory = function(){ $http.get(“db/getcategory.php”).then(function(resp){ $scope.categories = resp.data; console.log(resp.data); $scope.getsubcategory(); }); }; $scope.getsubcategory = function(){ var pcount = 0; var products1 = []; $scope.allproducts = []; var apcount […]

PHP table + pdfMake + AngularJS

I’m a noobie of PHP and AngularJS. I have a webpage that communicates to a web serves with PHP – AJAX. It queries a database, and echoes the result (a big table) in an html placeholder. I want to print the content of that table in a downloadable PDF file when the user pushes a button. I want to use PDFmake and now it works well for test purpose, but how can I pass that […]

Getting Apache PHP responses parallelly for AJAX requests [duplicate]

This question already has an answer here: Why cannot Apache handle multiple requests at the same time? 7 answers My AJAX request takes about 7 seconds to complete. For a page I have many such requests. The server responses almost sequentially for each request. For 10 requests I am getting the response of the last one after 1 minute. Is there a way to get the responses independently? I tried simply $http.get as well as […]

Not able to disable the whole div content by default and enable when click on edit button

I have attached an image here below. In the above picture. There are two buttons in the top right corner. My requirement is when I load this page everything in this page including save button should be disabled except edit button. When I click on edit, the page should be able to edit that is page should be enabled. Is it possible to do it as I am expecting. Here below I have attached my […]

How to check if value already exists in database PHP and AngularJS

Currently, if the name exists, nothing happens when trying to create. I have made the “name” column unique in DB, so only 1 can exists. I would like to give an alert() warning if the name already exists, but i cant seem to make it work Here’s my form: <h3>Add name</h3> <form ng-submit=”insert()”> <label for=”newName”>Name</label> <input type=”text” name=”name” ng-model=”name” class=”form-control” id=”newName” required> <br/> <label for=”gender_id”>Gender</label><br> <select name=”gender_id” ng-model=”gender_id” class=”form-control” id=”gender_id” required> <option value=”1″>Male</option> <option value=”2″>Female</option> […]

ui-select it is possible to load data while typing

i’m new to angularjs. it is possible to load a data while typing in ui-select.Me having record more that 9000. can anyone help for this <ui-select ng-model=”item.general_ledger” name =”general_ledger_1″ id =”general_ledger_{{$index}}” theme=”selectize” ng-disabled=”disabled” style=”width: 150px;” ng-required=”true”> <ui-select-match placeholder=”Select Any GL”>{{$select.selected.Short_name}}</ui-select-match> <ui-select-choices repeat=”coa in loadCoalist | filter: $select.search” refresh=”refreshFunction($select.search, $select)” refresh-delay=”400″> <span ng-bind-html=”coa.Short_name | highlight: $select.search”></span> </ui-select-choices> </ui-select> Source: AngularJS

Next Page »