Questions tagged as 'ajax'

2
answers

How to clean the inputs after performing an ajax request?

I have a function in AJAX that while loading information from the database to feed the inputs is written "Loading ...". If it does not find any information it continues with this loading in inputs until I refresh the page or do ano...
asked by 07.11.2014 / 14:23
1
answer

Execute javascript function on AJAX calls to a specific page

I have a site in Laravel where the content is loaded dynamically with AJAX, that is, in each call Laravel returns only the view of the part that I need, on a certain page I need to initialize a jQuery plugin that I only use on this page . If I i...
asked by 12.11.2014 / 01:38
1
answer

How to remove table row by passing its id to an object?

I would like to click the remove table row button, execute an ajax function that would pass the line id to the java method. The deletion on the page works, but I can not get the id to exclude the right item in the arrayList in java. $("#associ...
asked by 24.10.2014 / 14:57
1
answer

Ways to create combobox using AJAX to fill

I currently have a regular HTML combobox: <select name="nomeCombox1" id="nomeCombox1" class="select"> <option value="0" selected="selected">Selecione box1</option> <?php $res = odbc_exec($conexao, "Select DIST...
asked by 28.10.2014 / 14:51
1
answer

List multiple ul within a li using AJAX

How can I list multiple ul within a li , dynamically, with AJAX? Something like ul>li>ul>li>ul>li The question arose because I'm making a linear network of an MMN system and I can not dynamically load...
asked by 30.09.2014 / 16:41
1
answer

Error with jQuery.load () only in Safari (OSX)

I have a problem using jquery.load () p to load part of another document that only occurs in Safari on the Mac (in the latest versions: Safari 7.1 and OSx 10.9.5). In all other browsers (including IE) they work perfectly. The error in the Saf...
asked by 10.10.2014 / 19:13
1
answer

Partial does not render with 'enter' using Ajax

I have an ajax that fires when the page loads: /assets/javascript/itens.js : if ($('#content-recommendation').length) { xhr = $.ajax({ url:'/get_recommendations/' + gon.item_id + '.js', type:"get" }); } views/items...
asked by 01.09.2014 / 03:39
2
answers

PHP / Ajax - Ajax return does not bring when if ==

I have the page that returns an Ajax request. By executing it by passing the parameters: grupoCategoria=1&subCat=302 in the expression: if($dados_Subcategorias[codigo_subcategoria] == $_GET[subCat]) is done option as...
asked by 20.01.2015 / 23:00
1
answer

Update headers with AJAX

I have an AJAX form that only shows a captcha for the user when the form is submitted more than 2 times. I saved these attempts in $_SESSION with PHP, however as the form is sent via AJAX the captcha will only appear when the user refr...
asked by 30.08.2014 / 04:02
1
answer

How to add an array to a value attribute?

Hello! I'm having trouble using a multiple select field with a choseen-select plugin in a form link <form id="cadastro" action="process_teste.php" method="post"> <select id="form-edit-selecionar" name="fornecedor[]" data-placeholder...
asked by 12.09.2014 / 15:01