Questions tagged as 'ajax'

3
answers

How to receive a pdf file via ajax?

I am using this method to return a PDF file. It works normal if I call this action directly via URL: public ActionResult GerarProva(int idEpo, int numero, bool existeProvaGerada) { try { var relatorioBll = n...
asked by 18.08.2015 / 18:51
1
answer

Ajax Address Search with PHP

I have a form with the list of clients. When selecting the client, I want it to automatically fill in the address, number, neighborhood and city fields. I have Ajax, but I do not know how to work out the return of it. var id = $('#cliente')...
asked by 09.06.2015 / 19:22
1
answer

Value attribute of options in select are not set correctly

I need to loop through a select element on a HTML page by putting the option elements inside it. The problem is that in the attribute value of these option should receive the identifiers coming from the databas...
asked by 02.02.2016 / 18:41
1
answer

Item class in list always initializes active

I used it as a reference for troubleshooting the problem: angled ng-repeat skip an item if it matches expression . Next, we know that Bootstrap has the class active to mark with a different color from the elements that are not active...
asked by 28.01.2016 / 13:06
1
answer

Deezer API - JSON request error with $ .getJSON

When I try to perform a simple search in the Deezer API (Public Search API without Authentication Key) I get the following error message as a return: XMLHttpRequest cannot load http://api.deezer.com/search?q=Bang. No 'Access-Control-Allow-Or...
asked by 20.11.2015 / 06:19
1
answer

How to use Html.BeginForm with JavaScript / Ajax

I have a View to generate Report on my system and I'm using a BeginForm. The idea is when I submit the submit to my GridReport which is another View, load inside one that I have inside the ViewReport. I want to do it with Ajax, but I can not....
asked by 22.07.2015 / 13:56
2
answers

Read an XML in another domain

Is it possible to read an xml in another domain? ex: http://mfmradio.fr/winradio/prog10.xml?player201507291645 I made the code: <script type="text/javascript"> var i; var timer,timeout2; $(document).ready(fun...
asked by 29.07.2015 / 17:00
2
answers

After ajax action, data is not saved in the mysql database

I am capturing latitude and longitude through the Cordova plugin, and after that I store it in two variables and then, through an ajax request, I transfer these values to a PHP script where I am saving the data to a table called a map. The probl...
asked by 04.11.2015 / 23:52
1
answer

Charging bar with pure JavaScript

Sometimes I see load bars with percentage in sites that I believe, they override the default behavior of the page when loading (white screen until content is ready). There are some jQuery plugins that do this, but I want to understand exactly ho...
asked by 19.02.2015 / 15:04
1
answer

Ajax returns error after modifying htaccess

I've modified the .htaccess with a rule for the url to be passed as a GET parameter and I treat everything in index.php : Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAM...
asked by 27.02.2014 / 23:27