Questions tagged as 'ajax'

1
answer

where to mount the table in an MVC PHP project with ajax?

Within the model I have a series of discussions to show the final result. //CONTROLLER public function index(){ $this->view->render("views/index.php"); } public function read(){ $data = array(); $data['id'] = $_POST['id'...
asked by 04.03.2016 / 01:24
0
answers

Error 500 or 502 in the Ajax call to a PHP file

I have the following problem, I have a report screen that makes an Ajax call that returns all items to me. However when the report has few records it returns everything correctly, Ajax makes the request receives the information and plays on the...
asked by 01.02.2016 / 14:30
1
answer

Ajax URL changes if the pages come by variables by URL?

Good people, I have an index.php that calls my other pages as requested Ex: index.php: <a href="home.php">Home</a> if( isset($_GET['pagina']) ){ include_once 'paginas/'.$_GET['pagina']; } It was just one example...
asked by 31.01.2016 / 08:10
1
answer

Change option of select according to the option selected in another select

The problem: In a page I have two select, one that selects the team and another the team members, the first (of the team) I fill the option with php (by query in the database), so he will list all the teams I have registered in the databa...
asked by 22.02.2016 / 05:10
1
answer

Passing PHP variable in AJAX

I have a script.js file that needs to capture a variable in php, how do I? See what I have: function atualizaFotos() { $.ajax({ url: "imovel-fotos-id.php?cliente=&cod=" }).done(function (resposta) { $("#fotos"...
asked by 22.02.2016 / 13:02
0
answers

Retrieving json through a url using ajax

I have this method that looks for the data that is in a txt file and populates a table: $(document).ready(function () { $('#example').DataTable({ "ajax": "objects.txt", "columns": [ { "data": "name" },...
asked by 11.02.2016 / 21:31
0
answers

Route post ajax Laravel

Galera I have a search field for ajax in laravel that works normally local but on the server it is returning error. When the search route (post -> link ) is triggered by the keyup event of error 301 Moved Permanently and then again (mysteriousl...
asked by 12.02.2016 / 16:38
0
answers

How to return variable ajax php

I'm developing a form via ajax / php, when I click on the desired item the form sends the data to the ajax and displays it in the div, however I need to return a value but I can not. JS: //script do form $("#copPasta").focus(function(){ var...
asked by 20.01.2016 / 18:34
1
answer

syntaxError: Unespected end of input OK

I upgraded opencart from version 1.5.x to version 2.0.1.1, everything went well except that I can not edit customer orders or change the status of the order and notify Follow the prints of what's happening to me I have tried several so...
asked by 24.02.2016 / 18:36
0
answers

Send an array from a select to a URL using ajax

I have a problem that I'm having a hard time resolving even though it looks easy, and it would look like this: I have this select array: <select id="cidade" onchange="fLoadBairro();" class="search-box__combo" multiple name="cidade[]">...
asked by 02.03.2016 / 10:57