Questions tagged as 'ajax'

3
answers

How to leave empty textbox after an Ajax request via Post?

I have a registration application in .Net MVC and I'm using Ajax to send the contents of Forms to my Action that registers, when I save the value of the fields, in my view the values are still visible in the fields not leaving blank , as would t...
asked by 02.02.2015 / 15:03
2
answers

Not being able to call the same variable out of function

I'm not able to call my variable pt1 out of function(data) and within function getImageItem . Being function(data) is within function getImageItem . function getImageItem() { var item = ""; jQuery.ajax(...
asked by 07.01.2016 / 16:41
3
answers

Send file and text via jquery asp.net mvc

Personal I was able to send the file through this code: var jqXHRData = null; $(function () { $('.progress').progress({ percent: 0 }); $("#divUpload").on('click', function () {...
asked by 28.06.2016 / 01:14
2
answers

Script js does not interrupt submit form

Personally I'm having a problem with an algorithm in jquery, that of uploading files with ajax without refreshing the page. I do not know why when I put return false; at the beginning of the algorithm the submit is canceled but consequ...
asked by 03.01.2017 / 20:36
2
answers

Pulling PHP information via AJAX with jQuery in json format

I have a jQuery code that creates a calendar that lets you leave reminders on the date. The code is as follows: var calendar = $('#calendar').fullCalendar({ slotDuration: '00:15:00', /* If we want to split day time each 15minutes */...
asked by 23.06.2014 / 02:59
2
answers

Update from change in select

I have a list with multiple selects and I need to change the select option to be updated in the database. I can do this through ajax + php. My question actually is how to trigger the event from the option change. Could someone give me a light? T...
asked by 27.08.2015 / 17:19
4
answers

How to execute a PHP function in the background?

I'm using the cPanel API to add dynamically parked domains. So far so good, I send the required data via jQuery.post() only this process takes a while to complete, about 1 minute. Are there any alternatives for the process to continue...
asked by 12.08.2014 / 06:06
5
answers

localhost does not have access to the requested page

I'm trying to access a URL in AJAX but is giving the following error:    XMLHttpRequest can not load link . At the   'Access-Control-Allow-Origin' header is present on the requested   resource. Origin ' link ' is therefore not...
asked by 15.12.2015 / 12:18
1
answer

Ajax wait for request to end

I'm using the script below to feed some fields into a form. When you do a search for the badge, it takes a few seconds to find the value, but if the person gives an "enter," he passes the "Searching ..." values to all fields in the database...
asked by 25.06.2015 / 22:16
2
answers

How to disable field in form using JQuery

I have a registration form where the customer types the zip code by Request using Ajax to get the address, the neighborhood, the city and the state. But how do I disable these fields after they have been populated with the Ajax result? I need to...
asked by 22.07.2015 / 20:00