http://ubuntuportal.com/2013/12/how-to-install-xampp-1-8-3-for-linux-in-ubuntu-desktop.html
Friday, 21 April 2017
Thursday, 13 April 2017
how to mange angularjs routing
put the two basic javascript source which is need for angularjs and anularjs routing.
----------------------------------------------------------------
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.7/angular-route.min.js"></script>
<script src="main.js"></script>
----------------------------------------------------------------
var app = angular.module('myApp', ['ngRoute']);
app.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl : 'pages/home.html',
controller : 'HomeController'
})
.when('/blog', {
templateUrl : 'pages/blog.html',
controller : 'AboutController1'
})
.when('/about', {
templateUrl : 'pages/about.html',
controller : 'AboutController'
})
.otherwise({redirectTo: '/'});
});
app.controller('HomeController', function($scope) {
$scope.message = 'Hello from HomeController';
});
app.controller('BlogController', function($scope) {
$scope.message = 'Hello from BlogController';
});
app.controller('AboutController', function($scope) {
$scope.message = 'Hello from AboutController';
});
app.controller('AboutController1',function($scope){
debugger;
alert("hii pawan");
$scope.mainmsg='home page';
});
----------------------------------------------------------------
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.7/angular-route.min.js"></script>
<script src="main.js"></script>
----------------------------------------------------------------
var app = angular.module('myApp', ['ngRoute']);
app.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl : 'pages/home.html',
controller : 'HomeController'
})
.when('/blog', {
templateUrl : 'pages/blog.html',
controller : 'AboutController1'
})
.when('/about', {
templateUrl : 'pages/about.html',
controller : 'AboutController'
})
.otherwise({redirectTo: '/'});
});
app.controller('HomeController', function($scope) {
$scope.message = 'Hello from HomeController';
});
app.controller('BlogController', function($scope) {
$scope.message = 'Hello from BlogController';
});
app.controller('AboutController', function($scope) {
$scope.message = 'Hello from AboutController';
});
app.controller('AboutController1',function($scope){
debugger;
alert("hii pawan");
$scope.mainmsg='home page';
});
how to create angularjs module
var myapp=angular.module("pawanapplication",['pass list of dependencies']);
how to use my app on controller
myapp.controller("controllername",function($scope,dependencies like $http){
hare you can write your code;
});
how to use my app on controller
myapp.controller("controllername",function($scope,dependencies like $http){
hare you can write your code;
});
curl tuttorial
http://www.web-technology-experts-notes.in/2015/04/php-interview-questions-and-answers-for-2-year-experience.html
ajax call example
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#save").click(function(e){
e.preventDefault();
alert("hi");
var title=$("#title").val();
var desc=$("#title_desc").val();
var dataString = 'title='+ title + '&desc='+ desc;
$.ajax({
url:'http://localhost/CodeIgniter-3.1.0/index.php/welcome/showData',
type:'POST',
data:dataString,
success:function (response){
debugger;
alert("res");
}
});
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#save").click(function(e){
e.preventDefault();
alert("hi");
var title=$("#title").val();
var desc=$("#title_desc").val();
var dataString = 'title='+ title + '&desc='+ desc;
$.ajax({
url:'http://localhost/CodeIgniter-3.1.0/index.php/welcome/showData',
type:'POST',
data:dataString,
success:function (response){
debugger;
alert("res");
}
});
});
});
</script>
Tuesday, 11 April 2017
use html engine in node js
http://www.makebetterthings.com/node-js/how-to-use-html-with-express-node-js/
Saturday, 8 April 2017
Friday, 7 April 2017
how to get nth highest salary in mysql
select price from (select price from products order by price desc LIMIT 1) result order by price LIMIT 1
Thursday, 6 April 2017
how to get json data string in php
http://stackoverflow.com/questions/26825235/how-to-get-json-data-with-php
Assuming
$data contains what was returned from the server, you do:
or:
When you leave out the second argument to
json_decode , it returns an object, and you access the part you want as an object property. If you give the second argument true , it returns an associative array, and you access the element using array notation. |
facebok php sdk
https://code.tutsplus.com/tutorials/wrangling-with-the-facebook-graph-api--net-23059
Subscribe to:
Posts (Atom)