Questions tagged as 'ajax'

2
answers

User Registration in Laravel

I'm starting with laravel about 2 weeks ago and it's automatically raining with doubts. I have a Registration form with the following button below: <button type="button" class="btn btn-primary" id="cadastrar-usuario"> <i class...
asked by 26.08.2016 / 16:49
1
answer

Ajax - Protect WebServices

I'm building an ASP.NET MVC application and I make lots of calls to actions and webservices via ajax (jquery or angularjs). How could I hide these calls, or make sure they are only made by my application? For example: $('#btnNext').clic...
asked by 22.01.2016 / 13:59
2
answers

Update a specific DIV without refreshing the page

How to update a DIV without giving refresh on the whole page? Previously in rails 2.3.10, the 'remote_function' was used to update an existing div. Now in rails 4.2, since you no longer have the remote_function, how can I do that? Ex: W...
asked by 17.02.2016 / 16:43
1
answer

how to access json?

I think the simplest thing is to access a key and a value in json, but for weeks I'm not able to do that ... it returns json right through ajax but when I try to access it does not. Note: I am a layman and I am learning. follow code: functi...
asked by 31.08.2016 / 07:38
2
answers

Validating input file with ajax request

$(document).ready(function() { $('.formulario').submit(function() { $.ajax({ url: 'enviar.php', type: 'POST', data: $('.formulario').serialize(), success: function(valor) { $('.resp').ht...
asked by 21.06.2016 / 19:04
2
answers

JSON function Returns no value [closed]

I have a problem, I would like to populate my DropDownlistFor with the result of another DropDownListFor, so I'm using Ajax and Json, same concept they make when they want the result from State to City. Model: public class SegmentMOD...
asked by 17.12.2015 / 14:29
2
answers

Including external .js files

Well, I have a .js file in mydomain.com/file.js (example). This file contains functions that send requests via Ajax to another file, data.php (search and return in json), which is in the same folder as the hosting of the .js file. The idea is to...
asked by 04.03.2016 / 02:15
3
answers

Receive Json array and insert into a loop with HTML

Good evening, I'm using phonegap to make an application and then the following problem occurred: I have this HTML code: <div class="content"> <article class="underline"> <a href="incidente.html"><img id="inc...
asked by 09.11.2015 / 04:14
2
answers

I can not print the values of my Array.

I am not able to print the values added to my Array in the Console. The Console response is empty as if it had not added the values to the Array. Below is the code and XML Document. Code Block: $(document).ready(function(){...
asked by 20.11.2015 / 15:30
1
answer

How to return POST in the same div on which it runs AJAX

Actually there are 2 problems: 1st I have a DIV CONTENT where I open via AJAX the content in it, the same is happening type, if I click 2 times on the same link it instead of reloading the page it is simply adding the content again getting 2 con...
asked by 04.02.2016 / 23:35