Questions tagged as 'ajax'

0
answers

Error executing API requests using Axios and Vue-resource

I was consuming data from an API using XHR and it was working very well, but there were some changes in the design and there was a need to use Vue. I tried to make the same requests using Axios and soon after the Vue Resource but in both I was n...
asked by 27.12.2017 / 19:58
0
answers

Truncating data when inserting in bank

The system is in a common host with the following config: Apache 2.4.25 PHP 5.4.45 MySQL 5.5.58-cll It is intended to control O.S. and each user has a login with their password. During development and testing everything was OK, howeve...
asked by 15.12.2017 / 12:57
0
answers

Communication between View and Controller through a script

I'm trying to call an Action through the .ajax that runs within a button of a Modal but apparently the url is not processed. My View looks like this: @using (Html.BeginForm()) { <div class="form-horizontal"> <h2>Resfriador</h2...
asked by 14.12.2017 / 18:43
1
answer

Capture a record on a table and then insert it into the bank

I am developing an order form for a workshop. I need the registered service to be linked to an already registered customer. For this I created a search form where the user can search the registered customers and select only one. No form I...
asked by 08.01.2018 / 22:02
1
answer

Update DIV with Ajax Asp.Net C #

I'm setting up a Ticket Tracking Panel, basically there are two things, 4 fields and 1 chart. I would like to update them periodically, I tried with <meta http-equiv="refresh" content="10" /> However, this recharges the entire...
asked by 09.01.2018 / 12:27
2
answers

Select without page refresh

I use a select to access multiple sites example: city-1, city-2, city-3, when I select the city the url is: www.mysite.com/city-1. I have tried to use ajax for the URL to be fixed at: www.mysite.com, but I did not succeed. <?php switch ($_...
asked by 08.01.2018 / 01:57
1
answer

Empty textarea post with jquery ajax and formdata

I have a form that uses Ajax to do the POST in PHP and make the insertion in the database to get the data I use FormData however the textarea inserts empty in the bank. <script type="text/javascript"> function submitForm() { var myFo...
asked by 12.12.2017 / 00:42
0
answers

Consumption webservice with error: unsupported content type

My first question is: Can I call the WebService directly via JQUERY / AJAX or do I need to have something in PHP or some other backend language to perform the integration? If it is possible only with JQUERY / AJAX , it follows the prob...
asked by 11.12.2017 / 13:59
1
answer

How to update a Select Data with Ajax?

I have the following doubt, I have a modal, where I enter a city, so I need to have my select reloaded showing this newly added option, without the page being updated: Select: <select id="idMunicipio" name="idMunicipio" class="form-con...
asked by 18.12.2017 / 01:06
1
answer

Autocomplete with ajax in Entity Framework

I have the following HTML code: <input id="pesquisaEstilo" name="pesquisa" type="text" placeholder="Destrito, Concelho" /> <input type="submit" value="Pesquisar" id="botaoPesquisar"/> I want to autocomplete the search bar using...
asked by 17.12.2017 / 20:19