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
0
votes
5 answers

jquery onchange form submit lost variables

I have a problem when I use select on change - my variables are lost... In header is: function reassignPrescreen(prescreen, closer) { var prescreen = $('input[name=prescreen]'); var closer = $('input[name=closer]'); var data = 'prescreenid=' +…
Peter
  • 1,264
  • 5
  • 20
  • 41
0
votes
2 answers

Jquery Form validation not working along with Ajax Submit

I am facing an issue. I have written code for validating my input fields, tested it and it was working fine. Then i implemented form submit using Jquery Ajax post. Now my problem is that the validate function which i implemented earlier is no longer…
Codemator
  • 513
  • 1
  • 10
  • 19
0
votes
2 answers

Value only gets set when using alert()

So I have the code below. Holder1/Holder2 are just there to see if setting the values to a variable works jQuery.each(substr, function() { if ($('div#'+this+' div.widgetcontent iframe').attr("src")!=undefined) { //alert('Widget iFrame:…
pee2pee
  • 3,619
  • 7
  • 52
  • 133
0
votes
3 answers

pass extra paprameter with serialized form in jquery

In the following example am submitting a serialized form using post method. Its working fine now. But I want to pass some more extra parameter to the submitted page. How to pass that value to the form. I dont like the way to keep that value in a…
Arun SS
  • 1,791
  • 8
  • 29
  • 48
0
votes
2 answers

MVC modal popup submit

This is kind of a unique issue, and I'm still fairly new to MVC, so I'll do the best I can to explain it. I have a page with a third party grid, where each row is a "Company" object. My model for the view is a CompanyManager object, with the…
JoeSharp
  • 405
  • 1
  • 7
  • 16
0
votes
2 answers

Jquery post function not working with two forms and two post requests

I was trying to add a second form to a javascript/jquery script that I wrote, however, when i implemented and began testing it, when I would try to send the firm form via a jquery post request, it would instead send a get request. I know that this…
kinson
  • 23
  • 1
  • 3
0
votes
1 answer

JQuery $.post Not working on the second click

Thanks for checking this out: What im doing is reading multiple values like name and class to determine the being clicked, then sending it as a paremeter to a PHP on my server so i can switch its class and name value. This works great and switches…
RobertoNovelo
  • 3,347
  • 3
  • 21
  • 32
0
votes
4 answers

jquery $.post explain

I wrote the following code to post data with jQuery, It's working fine, but without return false;, the code didn't work, I found this return statement after 1 full day of searching... Could somebody please tell me, what is the use of return false;…
Karthik Sekar
  • 180
  • 3
  • 12
0
votes
1 answer

JQuery post method not executing

I've never written Ajax before and I am currently trying to code up an infinite scrolling page. When the user scrolls down to the bottom of the page, more items are supposed to load, but right now they aren't loading. Here is my Javascript to detect…
jaimerump
  • 882
  • 4
  • 17
  • 35
0
votes
1 answer

jQuery post success data not in the DOM

My problem is the following, the jQuery Post success method returns some data , that data I'm prepending to a div but it appears that the data what I'm prepending is not in the DOM. jQuery Post code: $('#form').submit(function() { var text =…
nmsdvid
  • 2,832
  • 2
  • 21
  • 21
0
votes
3 answers

how to send value(id) of clicked html tag to asp.net?

I have Img tag on form and I want to send the id of this to aspx.cs . I used post method and retriving this id using Request.Form["id"] but i'm not getting id on aspx.cs file . code: $("img").click(function () { var id = $(this).attr("id");//…
sanjay
  • 1
  • 1
-1
votes
2 answers

Jquery returns old value after append

I am submiting a form which adds a new item to a table as well as updates a total value. The form is in a jquery dialog and below is the buttons option specified. buttons: { Save: function() { …
Faiyet
  • 5,341
  • 14
  • 51
  • 66
-1
votes
2 answers

TypeError: 'stepUp' called on an object that does not implement interface HTMLInputElement in jquery

I am calling the php file using jquery $.post method.At the time of the retriving the data I am getting an error. I did search on google,found 4 to 5 solutions but those are not working. Please help me. this is my code, Jquery …
Manju
  • 747
  • 4
  • 10
  • 21
-1
votes
1 answer

jquery post content of ajax form

I have an ajax form as following: @using (Ajax.BeginForm("Action", "Ctrler", null, new AjaxOptions { UpdateTargetId = "divSendML" }, new { id = "frmSendML" })) {
@Html.EditorFor(x => x.SomeProperties) ...
Jin Ho
  • 3,565
  • 5
  • 23
  • 25
-2
votes
3 answers

jQuery File Upload - how to send a $_POST[""] variable to UploadHandler.php

I am using "jquery file upload" script. When a photo is uploaded, this script works with "UploadHandler.php". My question is, how can I send a post/get variable to UploadHandler.php? Here is my index.php code: