2
Is there any function or way to get javascript/Angularjs to communicate with linux?
For example:
<!doctype html>
<html ng-app="myApp">
<head>
<link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css">
</head>
<body>
<h2>{{kapp}}</h2>
<div class="busca" id="div1">
<input class="form-control"type="text" placeholder="Digite o nome completo" ng-model="search"/>
<button type="button" class="btn btn-lg btn-info" id="bot" ng-click="buscar(search)" onclick="fecha();">
Search
<i class="glyphicon glyphicon-search"></i>
</button>
</div>
</body>
<script>
angular.module('myApp', []);
angular.module('myApp', []).controller("customersCtrl",function ($scope, $http)
{
$scope.kapp = "Buscado";
$scope.buscar = function (name)
{
$scope.search = name;
}
</script>
</html>
Well, there would be some way when 'name' gets a name and that name is passed to a variable from a Shellscript, python or C file ?
Not without a server-side language, for example
php
...– DontVoteMeDown
And using php, how would you do that?
– Matheus
A server-side language (Ruby or PHP, for example) + REST Services.
– OnoSendai
@Matheus using php I already answered as a reply.
– SneepS NinjA
Doing something similar to @Sneeps' reply.
– DontVoteMeDown