Questions tagged as 'ajax'

4
answers

Access JSON with multiple objects in JS

I have the following JSON [ { "id": 1, "nome": "Matheus Almeida Siccenna", "cpf": null, "matricula": { "id": 555, "empresa": 1, "unidade": 0, "descricaoUnidade": null, "curso": 1, "descric...
asked by 15.12.2015 / 18:27
1
answer

Put header in ajax get method

Good afternoon, I have the following piece of code: function getData(){ var url = "http://teste.com"; var data = ""; $.get(url, function(response){ serverResponse = response; for(i in response.content){...
asked by 15.12.2015 / 17:18
1
answer

Summarize dynamic PHP texts with jquery

I've been able to do the View More function, with a StackOverflow code here, but the texts come from the dynamic database, so how do I get this code to get every text? Code in php: < div class="box-body" id="texto"> <?php...
asked by 05.11.2016 / 23:20
1
answer

Modal bootstrap MVC 5

I'm trying to use the modal of Bootstrap , but I can not make the window open in modal form with the page style, instead it opens as a page with no style and using the whole frame of the browser. Following page code: @model MyApplic...
asked by 23.07.2015 / 21:00
1
answer

What is the difference between long polling and normal ajax?

I'm trying to understand more about long polling to "manipulate" a site in real time, I've seen some videos and I'm thinking so far: Let's say I have an old date that is in the sql and I echo it. How will long polling know if the old dat...
asked by 15.05.2015 / 07:48
1
answer

POST via Ajax with Django

Based on link I'm trying to do a POST via Ajax using Django. Dai I created a project in GitHub link #urls.py url(r'^customer/add$', 'core.views.customer_add', name='customer_add'), url(r'^customer/save$', 'core.views.customer_sa...
asked by 22.11.2015 / 02:43
1
answer

Recover Mysql data and save to a vector

Reformulating the question .. I have a MySQL database, inside it contains a table named map, inside the map table I have the fields idmapa (auto_increment), lat (which stores the latitude of a map position), lng ( which stores the length of a ma...
asked by 25.11.2015 / 02:02
1
answer

Problem with Spring MVC + javascript

I'm having an issue with Spring MVC and jQuery. I have a jsp with a 'form' and I needed to do a test where when I click on a button, jquery clears the texts of some "input type = 'Text'". I even managed to test, but every time I click the...
asked by 30.03.2015 / 16:15
1
answer

How to do an autocomplete with ajax?

I'm trying to implement an autocomplete with ajax, where I search the database and show the options in the input, but I can not identify where I am wrong. Follow the code: <div class="row troca"> <div class="s...
asked by 13.04.2015 / 20:06
3
answers

How do I request post via AJAX?

I can not access my action through the ajax request: <legend>Procedimento:</legend> @Html.HiddenFor(p => p.CodigoProcedimento, new { id = "codProcedimento", name = "codProcedimento" }) @Html.HiddenFor(p => p.CodigoPe...
asked by 29.01.2015 / 15:01