Questions tagged [.post]

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.

Docs

273 questions
2
votes
1 answer

CodeIgniter JQuery $.post

I'm trying to check whether the name being typed in by the user already exists in the database or not, and am using AJAX to do so. However it's never returning true if the name actually exists in the database (I know which ones are in the DB). I…
a7omiton
  • 1,597
  • 4
  • 34
  • 61
2
votes
2 answers

$.post works in Chrome but not Firefox

I have a page with two forms on, the first form is where users enter details such as name, address etc. (no submit button.) The second form submits the purchase details to paypal. I am currently using the paypal form submit button with an onClick…
Redscouse
  • 35
  • 6
2
votes
1 answer

jQuery .find() not working on $.post() data

I made a simple example showing the problem: the form below submits to another page using jQuery .post(). Form $('form').submit(function(){ $.post( $(this).attr('action'), $(this).serialize(), function(data) { …
2
votes
1 answer

appending with .each and getting values on next looping jquery

Please refer to the following code: var index=0; var load=0; $("td.load_ads").each(function(){ var loading=$(this); $.post('/self_coded_helpers/jpost_get_ads.php',{index:index,type:'fetch_id'},function(data){ …
Lawrence
  • 717
  • 1
  • 12
  • 25
2
votes
2 answers

jQuery .post Post Elements

Here is my code;
Chris Olson
  • 1,021
  • 4
  • 12
  • 19
2
votes
1 answer

How can I assign the return value of the $.post to a variable

my code is data1 = ""; $('#send').click(function(){ var post = $(this).val(); $.post('post.php',{post:post},function(data){ data1 = data; }); $(this).val(data1); }); it seems that all process of the function .click is executed…
1
vote
2 answers

jQuery .each() and jQuery .post()

I've been trying for about a day now to get this method to work. I'm trying to use the jQuery .each() function to perform an action for each element in a given array. The array comes from a .post() request $(document).ready(function()…
Frank
  • 1,844
  • 8
  • 29
  • 44
1
vote
3 answers

jQuery $.post returned data

I'm having some issues on how to use the data returned by jQuery's $.post function. I'm trying to test if a picture exists on my server or not. Here is the javascript : $.post("ajax_test_file.php", {filename: filetocheck}, function(data){ …
1
vote
3 answers

making AJAX calls from javascript to php using jquery

Works: function jsUpvote(photo_id, username) { //var getURL = "http://www.uglyfacez.com/gallery/upvote.php?photo_id=" + photo_id + "&username=" + username; …
Russell Strauss
  • 1,160
  • 3
  • 14
  • 30
1
vote
2 answers

jQuery $.post concern

As you all know, the $.post function for jQuery is quite awesome, but the problem I have with that is the person who views the source of the page can view where the data is going, thus moving towards that page to snoop around, or, God forbid find…
Majo0od
  • 2,278
  • 10
  • 33
  • 58
1
vote
0 answers

$.post data and receiving data

When $posting with a button click the data is not sent the first time. e.g no results are shown. if however I use the $post again the data is sent but it is the previous data. So it is always one step behind with data that is being received and…
1
vote
2 answers

$jquery.post() PHP and Mysql

So I half got jQuery's ajax ($.post) to work. But, for some reason, I haven't been successful with finding the right online article to explain to me how PHP retrieves the ajax data that is sent. I've found some stuff on json_decode, but upon me…
Majo0od
  • 2,278
  • 10
  • 33
  • 58
1
vote
2 answers

Delete button not sending data through Ajax

I have multiple delete buttons on a custom admin page in the backend of my wordpress account which effect a public webpage. In my html file I've got: with my…
Eve Pitt
  • 23
  • 4
1
vote
2 answers

Need to return recaptcha response while using AJAX, jQuery .submit on button, and keep serialized data intact

I've looked everywhere and have tried 10 different similar issues but neither works exactly how I need it to. I have a simple form with validation using validationEngine (and this works fine, it validates the required fields and the captcha field…
Eli Robinson
  • 13
  • 1
  • 3
1
vote
4 answers

send $.post() one at a time ("adding a pause" but really: toggling a 'transmit' flag)

in jQuery, I iterate over an xml list of areas and do a POST request to get detailed information about each area. Because sending thousands of requests at once is debilitating for the client and server, I would like to set a flag so that I wait for…
sova
  • 5,468
  • 10
  • 40
  • 48
1 2
3
18 19