Questions tagged as 'ajax'

3
answers

Slider in jQuery (Nivo Slider) does not work when it is inside a content loaded via Ajax

I'm using the Nivo Slider plugin to create a slider on my page. If I put the slider structure directly on the page, it loads right ... but if it's inside content loaded via ajax, it just does not appear at all. What can it be? The funny thing...
asked by 09.10.2014 / 02:29
1
answer

How to pass a php array as a paramera of $ .ajax data?

How to pass a php array as paramera of $ .ajax data? Ex: <?php $nomes = array('maria','joao','jose'); ?> $.ajax({ url: 'pagina.php', dataType: 'json', method: 'POST', data: {'nomes' : <?php echo json_encode($nomes);...
asked by 08.04.2016 / 18:17
1
answer

Create session on https with http ajax request

I'm developing a website where the client side initially accesses http until they log in. The login is done by the http itself with an ajax request that calls the php script in https and in this script a $ _SESSION with the user data is created....
asked by 19.06.2016 / 16:58
2
answers

Disable a p: inputText through cursor focus in another p: inputText

Hello! I'm having difficulty doing a validation. It is the following ... I have a form made inside the components Primefaces 4.0 that has the fields "Cellular" and "Telephone". My intention is for the form to start with these two enabled fields,...
asked by 07.04.2016 / 03:50
1
answer

Refresh div with PHP return after Ajax request

Opa, I have the following function for a login in ajax function show_login_client_enter(id) { var url = 'store/content/validate_user_client_action.php'; var method = 'POST'; var pa...
asked by 04.02.2016 / 03:38
2
answers

Replace CRON

I made a script PHP which has to always run, usually 1 to 1 seconds or at most 2 to 2 seconds. The problem is that I set up multiple command lines on CRON to run every 1 second, but CRON automatically changes the configuration because I t...
asked by 05.04.2016 / 19:46
1
answer

Upload part of the page in AJAX

I'm making an application. The application has a top, a side menu and content according to the selected menu. In the content the user can add, remove, change and my question is: for example, when adding a new record should I update the conten...
asked by 25.03.2014 / 17:51
1
answer

Assigning value to an input - jQuery [duplicate]

I have two input type="hidden" of which I make an Ajax request to an external file in order to assign values to it. The request is returning the value correctly, everything is right in it, but these values are not being assigned to i...
asked by 13.09.2017 / 21:46
2
answers

Validate all inputs in SUBMIT

I have a function that validates my fields in the focusout event, however, I now need to go through all the fields in submit of form , I know I should use for , but I do not know how. > $("input[type='text'],textarea")...
asked by 20.10.2017 / 13:13
2
answers

Insert with ajax in onclick

I would like to make an insert from onclick with ajax and already bring the result to the text of this button. Exemplifying is a button to enjoy in case each click adds +1; function curti(id,identify){ var base = 'idd='+id; $.post({ url...
asked by 24.06.2016 / 22:19