Posts by Junior Ramoty • 151 points
22 posts
-
-1
votes2
answers89
viewsQ: Consultation Laravel Eloquent 3 belongtomany tables
1 2 3 I have 3 tables, Users, Roles and Permissions Example: User Carlos has 1 Role Admin and 1 Role Admin has 2 Permissions admin and user count(Auth::user() ->roles() ->with('permissions')…
-
0
votes1
answer55
viewsQ: Problem with jquery percentage calculation
Good afternoon , I’m having trouble calculating percentage, but the error does not occur in the mile up, anyone has any idea what may be? var cost_value = $('#cost_value').val().replace('.',…
-
0
votes1
answer49
viewsA: Input error inside Div
The error here, the input was previously inside the table so I used var nth = "#tableUser td:nth-child("+(index+1).toString()+")"; to take the value that was in column 1, then when I put the input…
-
0
votes1
answer49
viewsQ: Input error inside Div
I have a table and I’m making a filter worked, but when I put the input inside the div to align can not filter, even takes 1 letter but does not filter more. <script type="text/javascript">…
-
2
votes1
answer41
viewsQ: Url forwarding by company
I’m creating multi tenacy system, I have access page for companies https://www.teste.com.br/pastasistema/home views, what I would like and the user to type https://www.teste.com.br/empresa1/home…
-
1
votes1
answer87
viewsQ: Save page status without refresh, after expireSession
Here checks if you are logged in public function isLogged() { if (isset($_SESSION['ccUser']) && !empty($_SESSION['ccUser'])) { if ($_SESSION['registro']) { $segundos = time() -…
-
1
votes1
answer164
viewsQ: Overlapping divs
I have a search input, which adds the mechanistic tbm, but the result is getting overlapped <div class="col-lg-4"> <label for="mecanico">Mecânico</label> <div…
-
0
votes3
answers285
viewsQ: Compare and replace Intel array
The problem and the following, I am creating daily OS chart, only that comes from the bank with day in English, I would like to replace each index with the value in Portuguese My code public…
-
1
votes1
answer1615
viewsQ: How to change Chart.js display c,
I am learning to work chartsjs bring date, with value January with 10 clients, the scale is 0.5, 1.0,1.5,2.0 I would like to deichar with 1,2,3,4,... there is no half client…
-
0
votes3
answers385
viewsA: The same variable repeats several times in the while
What are you comparing in this while ?. Depending could use foreach($tblProjeto as $tp){ ?> <a href="Projeto.php?codProjeto=<?=$tp['codigo_PROJETO'];?>" > <h1><i class="fa…
-
0
votes0
answers136
viewsQ: Error with array passing in foreach
function preencherJason() { document.getElementById('json_prod').value = ''; var arrayProduto = []; var table = $('#products_table'); table.find('tr').each(function() { var nodesTd =…
-
2
votes2
answers1446
viewsQ: maskMoney does not work on input within table
Here I call the mask wearing class $(function($){ $(".dinheiro").maskMoney(); }); in form inputs works normal, but in table does not work. function addProd(obj) { $('#add_prod').val(''); var id =…
-
1
votes1
answer812
viewsQ: Pass value for input inside table
The problem is this: I have a input product search, I type it filters and add in the table "items"; in the table "items" have input that filters services with value, and then I give split() take the…
-
0
votes1
answer50
viewsA: Split string into parts with 2 parameters to find
And people who need it function pegar_valor_linha_tabela_editar(elemento) {//elemento da linha //debugger; //pegar os valores da tabela var id =…
-
0
votes1
answer1276
viewsA: Take the column values of the clicked row and pass inputs
Vlw by the help ai, the error was in a loop to create table that displayed the items of the database already registered, I put the code I used to solve. Firedebug saving again. function…
-
0
votes1
answer50
viewsQ: Split string into parts with 2 parameters to find
Here is the code that takes description of the 2 column of the table var descricao = $(elemento).closest('tr').find('td').eq('1').html(); that and the description CALIFORNIA [2,90] [BRE25] [3x80]…
-
0
votes1
answer1276
viewsQ: Take the column values of the clicked row and pass inputs
Here is the function to take the table row value, and pass to inputs, if I take the lines that were loaded from the error database but when, insert a new item into the table, then I take the value…
-
2
votes1
answer135
viewsQ: Subistituir dynamic table row
In the catch line function I pick up the clicked line and send the data to the form and store OBJ from the line and get index tbm var index = $(obj).closest('tr').find('td').eq('0').text(); Here…
-
1
votes1
answer26
viewsA: How to order 1/5 plots field in datatables
for those who need it jQuery.fn.dataTableExt.oSort['num-html-asc'] = function(a,b) { var x = a.replace( /[/]/g, "" ); var y = b.replace( /[/]/g, "" ); x = parseFloat( x ); y = parseFloat( y );…
-
0
votes1
answer26
viewsQ: How to order 1/5 plots field in datatables
$.ajax ({ type: 'POST', dataType: 'json', url: BASE_URL + '/conta_pagar/pesquisa_contas', data: {palavra: palavra}, success: function (json) { var colunaNome…
-
1
votes0
answers937
viewsQ: Success : Function ajax call another javascript function
function paginacao_tabela_clientes_status(idpessoa){ $.ajax ({ type: 'POST', dataType: 'json', url: BASE_URL + '/clients/tabela_clientes_pedido_entregue', data: {idpessoa: idpessoa}, success:…
-
0
votes2
answers67
viewsQ: input is inside the fildset tag, but is cutting the line
input { font-size: 16px; margin-bottom: 20px; border-radius: 5px; border: 1px solid #ccc; position: relative; }…