Questions tagged [jquery-post]

The jQuery command $.post is used to "post" PHP 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.

196 questions
3
votes
2 answers

Jquery response from post

Problem I have.... I have listener script in php that does this: if ($count != 1) {echo 'no';} else { echo "yes";} So it echoes "yes" or "no" depending if task was success or not and on my page I have this: jConfirm('Are you sure you want to…
Peter
  • 1,264
  • 5
  • 20
  • 41
3
votes
2 answers

Jquery Ajax Request Not Being Sent In IE

I have an ajax request working in FF, Chrome, Opera and Safari. I tested it in IE and it does the first of two request. It gets the IP from a php script, but then when it goes to post to my java servlet it doesn't send out the request; I tested with…
CubanAzcuy
  • 125
  • 1
  • 13
3
votes
1 answer

No 'MediaTypeFormatter' is available to read an object of type 'String'

I'm using the ASP.NET Web API. I have an action in my controller which works fine if there's no parameter. If there is a parameter, like: public string UploadFile(string actionType) then my action isn't called and I get the following message, …
Rivka
  • 2,172
  • 10
  • 45
  • 74
2
votes
2 answers

Deserializing json data from jquery post method directly to string array

Is there a way to deserialize an array sent by jquery post method to directly c# string array(string[])? I tried posting data like this $.post(url, { 'selectedTeams[]'=['Team1','Team2'] }, function(response)…
Pawan Nogariya
  • 8,330
  • 12
  • 52
  • 105
2
votes
1 answer

jQuery .add() and empty()

Is this helpful ?
// jQuery Script $('.feedback a').live('click', function() { var reference…
MrCooL
  • 926
  • 3
  • 15
  • 30
2
votes
6 answers

How to serialize multiple checkbox values by jQuery?

I modified the simple example of jQuery.post as $("#searchForm").submit(function(event) { event.preventDefault(); var $form = $( this ), term = $( "input[name^=tick]:checked" ).serialize(), url = $form.attr( 'action' ); …
Googlebot
  • 15,159
  • 44
  • 133
  • 229
2
votes
3 answers

jQuery Post With Data Returned (json, xml etc) with Google App Engine (Python)

I've done jQuery post successfully. However, in order to get the data returned from server side. Can anyone gives example how this can be done in Google App Engine (Python) using webapp framework? If possible, I need example: How we can send json…
MrCooL
  • 926
  • 3
  • 15
  • 30
2
votes
5 answers

jQuery - check for POST in the URL

Is there any way to check with jQuery for POST within the URL similar to the PHP way? PHP version: if(!empty($_GET)) { // do stuff } Sorry. I mean GET not POST. I'm looking to fetch the URL on the page load $(document).ready( function() { // here…
Iladarsda
  • 10,640
  • 39
  • 106
  • 170
2
votes
1 answer

jQuery slideDown and SlideUp within a table doesn't look right

I am having a minor problem with jQuery slideUp and slideDown when I use it in a table. I have html like this (also mainly generated by jQuery but it's not important):
Przemek
  • 6,300
  • 12
  • 44
  • 61
2
votes
3 answers

WordPress Custom Query for Most Commented Posts in the Past 7 Days

I'm trying to do a query on wpdb to get the posts commented on most in the past week... Any ideas what I'm doing wrong? $querystr = "SELECT comment_count, ID, post_title FROM $wpdb->posts wposts, $wpdb->comments wcomments WHERE…
rpophessagr
  • 905
  • 3
  • 10
  • 17
2
votes
1 answer

django csrf fails at production server

I was working on my development server without problems, when I tried it in my production server, in a real name, not localhost nor ip, I got: Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: CSRF…
Uriel Bertoche
  • 883
  • 2
  • 13
  • 23
2
votes
3 answers

Jquery post > success not trigger

I had a problem with jquery's post api. $(".MGdi").click(function () { id=$(this).attr("rel") $.post( 'Mdeger.asp?cmd=MG', { id: id, drm: $(this).html()} , function( data ) { var $response=$(data); var…
Yetkin EREN
  • 33
  • 1
  • 5
2
votes
1 answer

Can you use jQuery POST in a Chrome extension?

I'm trying to get my Chrome extension working with the Google Calendar API. However, the way Google has set up the extension sandbox makes anything almost impossible. I can't add the Calendar API using JavaScript because I've tried 200 different…
2
votes
1 answer

not sure why this jquery post isn't working

I have the following jquery: var xj=[{"name":"person","id":1},{"name":"jack", "id":2}]; $.post('/hex-jt/locations',xj , function(data){ console.log("this posted"); },'json'); which seems like it should be ok. But it is passed like this to…
timpone
  • 19,235
  • 36
  • 121
  • 211
2
votes
2 answers

how to pass value to a js file

I know this question are asked hundreds of times :( but I just want to learn more :). My question is simple, can I pass a value to a js file like this, if not, how ? Yes,…
diligent
  • 2,282
  • 8
  • 49
  • 64
1
2
3
13 14