Questions tagged as 'ajax'

2
answers

Limit users in a PHP application

Hello, Developed a system in php controlled by Sessions .. I checked that you can limit the maximum number of online users on the system via apache (httpd.conf). Is there any function (ajax, javascript, php) that I can limit to 05 concu...
asked by 09.12.2017 / 13:49
1
answer

What to put in the variable $ .post ajax

Hi, I'm not very good at javascript, ajax, jquery and json I'm still learning and remembering that I already researched a lot, but could not do what I want. It is the following my project is in MVC with friendly url. On the page has a text box t...
asked by 25.11.2018 / 16:58
0
answers

How to read a JSON file to render HTML list

I have a difficulty in an application that le json file and renders it in HTML, I am not able to access the object correctly, the variable products is as undefined. can anybody help me? if you have any other way to resolve I'm also open html...
asked by 14.11.2018 / 03:26
2
answers

Extend a specific jQuery method in ASP.NET MVC jquery.unobtrusive-ajax.js

I'm using the extensions methods @Ajax.BeginForm() to save the data via AJAX. To prevent more than one click on the submit button, which could cause a double insert in my database, I decided to include a small snippet of code inside the...
asked by 10.03.2014 / 20:19
2
answers

Remove Select2 parameters

I have a problem using the Select2 plugin, I need to make an AJAX request, but I need the final URL to be as follows: api/user/findbyname/name And the way it's coming is this: api/user/findbyname/?q=name&_=1395243972884 My code is...
asked by 19.03.2014 / 16:52
1
answer

How do I make my form work with reCAPTCHA?

I'm saving the data for Ajax, but my reCaptcha is not working properly, the form is sent even without pressing inside Captcha. My Controller [HttpPost] [CaptchaValidator(PrivateKey= "secretKey", ErrorMessage="Captcha Invalido", Req...
asked by 18.09.2018 / 01:05
2
answers

Cache on Web Systems [duplicate]

I have a web system using Ajax which is constantly updated. I need to implement a way to update the user cache of .js and .css files when these files are modified. I tried to solve it in two ways. The first is the use of url with variable t...
asked by 21.02.2017 / 15:49
2
answers

get mysql data using javascript and ajax

I'm developing a web app (if interested, follow link) and it was going alright , until I get to the part below: TheNCMfieldisainputtagwithadisabledattribute.TheinformationinsideitcomesfromanautocompletethatIused,usingAJAX,adatabasesearch.ph...
asked by 14.01.2017 / 23:02
1
answer

Ajax request does not work - success does not work

I've done the following function: $("#CategoryList").change(function () { $("#SubCategoryDropDown").empty(); $.ajax({ dataType: "json", url: '@Url.Action("GetSubCategory", "ProjectSubCategories")', type: 'POST', data: { id: $(...
asked by 19.08.2017 / 23:07
1
answer

Update the database via input using ajax / php

I need to perform an update on a table in the database, reading the data entered in the input, by clicking the button. This is what I have so far: HTML: <td>ADSL</td> <td class="superdanger"> <input type="number" id="...
asked by 16.11.2016 / 14:57