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
1
vote
2 answers

Not able to find file using jQuery.post

I've used jQuery.post in several jQuery scripts now, and it all works fine. But after upgrading to WordPress 3.0, it stoped working. I'm working on a plugin where I hve the following jQuery code: //Delete event and remove from UI jQuery("#eventList…
Steven
  • 19,224
  • 47
  • 152
  • 257
1
vote
5 answers

jQuery posts data to wrong relative URL

I have an ASP.Net MVC application. I am trying to post data to an action, and then just render the output. I have a page where you can view a product, so www.mysite.com/product/details/1 shows the product. On this page, I render a partial view…
scottm
  • 27,829
  • 22
  • 107
  • 159
1
vote
1 answer

Why Is My catch Block Not Catching "Cross origin requests are only supported for protocol schemes: http..."

I have a JavaScript script that is using the jquery post command to log into a server and obtain a token. I've wrapped my code in a try block with a catch block that looks like this: catch (error) { alert(error.message); } My code runs fine, but…
1
vote
2 answers

jQuery, PHP, AJAX, "tu" variable beeing posted for no reason, shows in var_dump()

A jQuery AJAX request .post()s data to page.php, which creates $res and var_dump()s it. $res: $res = array(); foreach ($_REQUEST as $key => $value) { if($key){ $res[$key] = $value; } } var_dump($res): array(4) { ["text1"]=> …
Mattis
  • 5,026
  • 3
  • 34
  • 51
1
vote
2 answers

jQuery - Add to Favourites

I have a loads of reports. Each report as it's own page. When the user is on a page, I want them to be able to add a report to their favourites. I don't mean browser favourites, I mean their favourite reports when they log into the system Googling…
pee2pee
  • 3,619
  • 7
  • 52
  • 133
1
vote
2 answers

jquery ajax form submit is not working

this is my html form
Download
And here…
Yasitha
  • 901
  • 2
  • 17
  • 42
1
vote
1 answer

JavaScript Array to Post or Display

I'm using http://www.highcharts.com/plugin-registry/single/17/Annotations and they suggested in order for me to save anything, to use var items = chart.annotations.allItems, annotationsArr = [], iLen = items.length - 1; for( ; iLen >= 0;…
pee2pee
  • 3,619
  • 7
  • 52
  • 133
1
vote
1 answer

Bootstrap Pop Over not working after jQuery Post

I am currently paginating results on my page by using jQuery post. In the results I am limiting the length of "details" and if the length is over 49 say, it will display a span which, when clicked, will display a pop over with all of the details…
Shamrockonov
  • 489
  • 2
  • 7
  • 19
1
vote
2 answers

What is the best way to load new javascript file after jQuery post?

In my app I use Ajax navigation with jQuery post. Scenario: Lets suppose a user types the url and loads the index page. Now he wants to go to his profile page(suppose he is already logged in previously). Clicking at "My profile" link, a jQuery post…
Manolis
  • 19
  • 1
  • 1
  • 2
1
vote
1 answer

Load AJAX content for specific element (Pass DOM Element to AJAX callback function)

I have some elements in my document which contains an Image IDs, and I want to replace those IDs with the Images: $(".image_id_field").each(function() { img_id = $(this).html(); $.post("ajax/get_image.php", { id: img_id }, function( response)…
user1383029
  • 1,685
  • 2
  • 19
  • 37
1
vote
0 answers

jQuery Post: Adding Form fields after a Post with Ajax call to an existing HTML FORM

I have a web page using jQuery and ColdFusion that is divided into 4 sections. Each section is it's own logic, on the initial load of the page, all are loaded into the main page, and all the form sections fall under one main FORM ID, with on master…
Doug
  • 11
  • 1
1
vote
2 answers

displaying jquery post data in a div

Hi Im trying to learn how to do a post request using the simple example below. While I can easily post the data to result.php and get the results back via an alert message I'd like to return the results in a div on the current page instead. The…
matt tuman
  • 83
  • 1
  • 5
  • 14
1
vote
2 answers

Getting DIV ID on AJAX loaded content

I have div with unique id and I'm trying to get that div id with jQuery
Quantity
Everything works good, but after loading div with ajax - I just can't get id from loaded…
Vaidas
  • 968
  • 9
  • 22
1
vote
1 answer

Read POST Parameters in Asp.net from Sencha Touch 2

I am trying to read the POST Parameters of Sencha Touch 2 in Aspx Page. And the Aspx is Called by the following way from Sencha Touch Framework(By Mobile Application Team). Ext.Ajax.request({ …
Thiri
  • 211
  • 1
  • 3
  • 11
1
vote
3 answers

jQuery appendTo does not work under $.post

// plays a card into table. // this code works. rendered card is appending into the table. var playCard = function(card){ var renderedCard = renderCard(card); $('#'+renderedCard.id).appendTo('#flop'); // but this one does not…
alioguzhan
  • 7,657
  • 10
  • 46
  • 67