Questions tagged as 'ajax'

1
answer

Sending AJAX and PHP Array

I'm trying to reorder a list of items, which when clicking a button releases the reordering and when I click again it saves, but if I do more than one reordering it only accepts the first one. Example: Item 1 = 1st Position Item 2 = 2nd...
asked by 30.08.2016 / 16:35
1
answer

When using fnReloadAjax does not stay on the current page

I'm using the fnReloadAjax for when the user does some action on the table that is mounted using datatables already reloads the data again, it just does not stay on the current page. It keeps filtering, sorting, number of records per page...
asked by 29.08.2016 / 21:34
2
answers

Not being able to call the same variable out of function

I'm not able to call my variable pt1 out of function(data) and within function getImageItem . Being function(data) is within function getImageItem . function getImageItem() { var item = ""; jQuery.ajax(...
asked by 07.01.2016 / 16:41
1
answer

Hide buttons and Enable Other with ajax

I have a page and it shows a modal with 2 buttons, one of confirmation and another of canceling, according to the code Below: Within this modal I have a DIV <div class="resp"></div> This div I get a response from a page in...
asked by 23.08.2016 / 04:07
2
answers

Post Ajax for PHP Class

I have the following code that saves the reordering of a list. INDEX.PHP <?php require_once ("Class.Drag.php"); $auth_task = new Drag(); $list_order = strip_tags($_POST['list_order']); $res=$auth_task->update($lis...
asked by 23.08.2016 / 15:34
0
answers

Validate password with confirm password

I am trying to validate my most accurate password that is identical to the confirm password field, I am validating in php and using ajax to show error if the input value is incorrect. Have I tried comparing using === more so far nothing, any sug...
asked by 29.07.2016 / 02:38
1
answer

Load variables in external php

I have a page that needs to open several modalities, so as not to compromise on loading the page I decided to call the modal only when the user requested it. I did the following AJAX function: function loadModal(modalPage, modalBox){ $.ajax({...
asked by 29.07.2016 / 01:06
2
answers

custom filter in datatable

Good morning! There is a certain time, that I have to make an advanced filter on the server side. I thought of two possibilities in sending the parameters in fnserverdata, which did not work very well, so I decided to send the parameter via A...
asked by 05.08.2016 / 15:11
2
answers

Not being able to call the same variable out of function

I'm not able to call my variable pt1 out of function(data) and within function getImageItem . Being function(data) is within function getImageItem . function getImageItem() { var item = ""; jQuery.ajax(...
asked by 07.01.2016 / 16:41
1
answer

Ajax Request and JS File Registration - Wordpress

Good morning, I am setting up an ajax request to send to the source functions.php, I read in the wordpress documentation that the js file that handles the request and other things needs to be done. But when I send the request to the functions...
asked by 17.08.2016 / 14:09