angularjs – ng-repeat – custom data sorting using dropdown

March 3, 2016
Today I learn how to sort data binded using ng-repeat. I am setting multiple values one for “expression” and one for “reverse” but no need for that insead you can just “-“(negative) in expression value and data get sorted reversely so simple. I facing this issue because I need to provide sorting using dropdown instead clicking ...
Read more..

Setting file editor in Core FTP

February 25, 2016
You can easily edit your files using different IDE in core FTP. Follow below steps to change/update/add editor for your server files. – First connect to server files using Core FTP. – Go to the “File Associations” in Manage menu item. You will get a screen like below: – Add the extension and select executable (as which IDE ...
Read more..

How to change AngularJS data outside the scope

February 18, 2016
Today I learn how to update scope data outside of controller or app. Angular have $scope.$apply() method which will explicitly update your binded data. Sharing sample code how I did that:  <div ng-app="mySampleApp" ng-controller="sampleCtrl"> <h1>{{mydata}}</h1> </div> <input type="button" value="Change to 'test data'" ng-model="data" onclick="change()"> Angular JS code var app = angular.module('mySampleApp', ); app.controller('sampleCtrl', function($scope, $http) { $scope.mydata = "Dummy Text"; }); function change() ...
Read more..

Codeigniter Session Issue

January 13, 2016
Due to Codeigniter session issue i need to go away from native session class of it and look for alternative. Initially I try to debug it, but not luck. So here is the code how I used PHP session instead codeginiter. There may be two approaches to achieve this either create your own library or override ...
Read more..

wordpress creating custom widget area

December 30, 2015
Today i have created a custom widget area in my theme. Thought of sharing it. Follow below two easy steps to enable it: 1) Add below lines of code to your theme functions.php file <?php /** * Register our sidebars and widgetized areas. * */ function arphabet_widgets_init() { register_sidebar( array( ...
Read more..

Bootstrap Event for modal, executing JS before modal popup

December 10, 2015
Bootstrap provide some event which can be hook on modal functionality. “” is a event used to hook a function just befor a modal window popups. Below is an example how you can acheive this using “”. //Comment Popop $("#ShowComment").on("", function(e) { var questoinId = $(e.relatedTarget).data('questoinid'); $.ajax({ method: "POST", url: "<?php echo site_url()?>dashboard/get_comments/"+questoinId }) .done(function( msg ) { $("#commentTable").html(msg); }); }); //Comment Popop Below are some events available ...
Read more..

PHP 7 new features list

October 19, 2015
Today google about new enhancement and featured introduced in PHP 7 and found that PHP 7 is really having a lot of new functions and features with it. Here I am listing few of them which i found interesting. 1)The removal of ASP tags (<%) and script tags (<script language=php>) as a means of entering or ...
Read more..

override codeigniter native session

October 6, 2015
Struggling a lot with codigniter session issue. So I thought of using database for storing session but it did not solve my problem either (For Database approach click here ) than I thought of giving a try to have a library which override the codeigniter session class. Here I am sharing how to create library which ...
Read more..

Display multiple google map locations using latitude and longitude

September 28, 2015
Here i am sharing how you can show multiple location on google map using Google API latitude and longitude. create a html file as “index.html” and add below code your body tag. <script src="" type="text/javascript"></script><script type="text/javascript">// <![CDATA[ var markers = [{"lat":"17.454000","lng":"78.434952"},{"title":"shilparamam","lat":"17.452665","lng":"78.435608","description":"Mumbai formerly Bombay, is the capital city of the Indian state of Maharashtra."},{"title":"image hospitals","lat":"17.452421","lng":"78.435715","description":"Pune is the seventh largest metropolis in India, ...
Read more..

Adding Google Marker using postal address

September 13, 2015
You can point market on google Map using specific address: create a html file as “index.html” and add below code:  <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>Geocoding service</title> <script src=""></script> <script> var geocoder; var map; function codeAddress() { var address = document.getElementById('address').value; geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results.geometry.location); placeMarker(results.geometry.location,map); document.getElementById("latitude").value = ...
Read more..