This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var test1 = 'test1'; | |
var test2 = 'test2'; | |
app.request.get ('pagina.php', { | |
FIELD1: teste1, | |
FIELD2: test2, | |
}, function (data) { | |
JSON.parse (data) // transforms into JSON array | |
console.log (data); // prints on the console the return | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<title> TESTE AJAX </title> | |
<body> | |
<button>CLIQUE AQUI</button> | |
<div id="teste"> </div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Access-Control-Allow-Origin: *'); // no cabeçalho | |
$array = array ('test1', 'test2', 'test3'); | |
echo json_encode ($ array); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<title> TESTE AJAX </title> | |
<body> | |
<button onclick="nome_da_funcao()">CLIQUE AQUI</button> | |
<div id="teste"> </div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @var db Base de dados para backup e restauracao | |
*/ | |
var db = window.openDatabase("CAMINHO DO BANCO", "1.0", "NOME DO BANCO", 5 * 2048); | |
/** | |
* Mostra o erro de arquivo | |
* @param {obj} error Recebe o objeto de erro | |
* @returns {void} | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$('#tbl_veiculos').DataTable({ | |
processing: true, | |
serverSide: true, | |
ajax: '/api/XXXXXX/XXXXXX-json', | |
columns:[ | |
{data :'XXXXXX', name:'XXXXXX'}, | |
], | |
"columnDefs": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type='application/ld+json'> | |
{ | |
"@context": "https://schema.org", | |
"@type": "Organization", | |
"url": "https://airat.biz/", | |
"sameAs": [ | |
"https://www.facebook.com/AiratBiz", | |
"https://plus.google.com/100793200182246131281", | |
"https://vk.com/AiratBiz", | |
"https://www.youtube.com/user/AiratHalitov", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE text/javascript | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE image/x-icon | |
AddOutputFilterByType DEFLATE image/svg+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Assuming you are connecting GitHub over SSH, you can run below command to confirm this. | |
$git config --get remote.origin.url | |
If you get a result has following format [email protected]:xxx/xxx.github.com.git, then you should do the following. | |
Generate a SSH key(or use existing one). if you had one, you just need to add your key to the ssh-agent (step 2)and to your GitHub account(step 3). | |
below are for those who don't have SSH key. | |
Step 1 Generating public/private rsa key pair. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use the front controller as index file. It serves as a fallback solution when | |
# every other rewrite/redirect fails (e.g. in an aliased environment without | |
# mod_rewrite). Additionally, this reduces the matching process for the | |
# start page (path "/") because otherwise Apache will apply the rewriting rules | |
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl). | |
#DirectoryIndex index.php | |
<IfModule mod_rewrite.c> | |
RewriteEngine On |
OlderNewer