A jQuery wrapper for an AJAX call using the HTTP POST method to send variables asynchronously from the current page without reloading or leaving the current page. Data can then be retrieved from the request and used on the current page.
Questions tagged [.post]
273 questions
3
votes
3 answers
jquery.post doesn't work
HTML element:
JavaScript function:
function doc (){
$.post("php/file.php", { name: "John", time: "2pm" },).done( function(data) {
alert("Data Loaded: " + data);
…


user2090823
- 31
- 1
- 6
3
votes
1 answer
ill-formatted text outputted from the url in $.post
These are my calling parameters
$.post('checklogin_is.php', data, handleAjaxResponse, 'text');
The callback function is:
function handleAjaxResponse(data) {
if($.trim(data)=='yes')
{
//some more code
}
else
{
…

Luis_DV
- 73
- 5
3
votes
2 answers
jQuery $.post causes browser stack overflow
I have the following jQuery code:
var id_atual
var temp_id
var tempo_flash = 50
var $slide_atual = $('#slider .atual')
var $slide_prox = $('#slider .ocultar')
setInterval(function(){
id_atual = $slide_atual.attr('alt')
…

Caio Felipe Giasson
- 171
- 1
- 7
2
votes
2 answers
Writing JSON data to a text file, data sent via .post jQuery to PHP file
I want to write JSON data to a text file using jQuery and PHP. I send the data from JavaScript to a PHP file using
function WriteToFile(puzzle)
{
$.post("saveFile.php",{ 'puzzle': puzzle },
function(data){
alert(data);
…

mfadel
- 887
- 12
- 32
2
votes
1 answer
Why isn't my callback function for this Jquery .post working?
Here is the code for the jquery: