Skip to content

Instantly share code, notes, and snippets.

@clubeagn
Forked from jhowbhz/script.js
Created June 13, 2018 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clubeagn/645ddd62795f6576ab9f3914e784485d to your computer and use it in GitHub Desktop.
Save clubeagn/645ddd62795f6576ab9f3914e784485d to your computer and use it in GitHub Desktop.
exampe F7/JSON/PHP
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
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment