Posts by Carlos Rocha • 1 point
426 posts
-
0
votes1
answer35
viewsQ: echo within $.ajax
HTML: <ul class='border ulHRelatorios'> <li style='text-align: left; width:79.05%'>Houve SUPERVISÃO?</li> <li class='centralizado' style='width:10%; border-left: .1px solid…
-
-2
votes2
answers189
viewsQ: Add array at the end of another array in a foreach
$celulas = array ( 0 => array ("idCelula" => 17,"nomeCelula" => "Célula 1" ), 1 => array ("idCelula" => 18,"nomeCelula" => "Célula 2" ) ); foreach ( $celulas as $celula ) {…
-
-1
votes1
answer114
viewsQ: SQL MIXING EVERYTHING
I have the following query above as per the image. Why is she mixing the fields? SELECT celulasreunioes.idCelula, celulas.nome, celulas.idRede, redes.nome, celulas.idRegiao, regioes.nome,…
-
-2
votes1
answer147
viewsQ: function to convert object into array does not loop into foreach
I made the function down to pass by one Object of PHP class for a array, also PHP. /* Converte um objeto em array() */ public function ObjToArray ($_obj) { $array = null; print_r( $_obj );…
-
1
votes0
answers24
viewsQ: Convert whole object to array without using (array) object
I’m trying to convert an object PHP in array using the function: ( array ) $objeto; Convert converts, but the exit print_r () handover: "\u0000CelulasReunioes\u0000idCelula":"17", Is there any other…
phpasked Carlos Rocha 1 -
0
votes1
answer475
viewsQ: receive json_encode ( (array) $objj) in jquery
I got the following return of PHP for JSON through AJAX: [ "ok", [ [ { "\u0000CelulasReunioes\u0000idCelula":"17", "\u0000CelulasReunioes\u0000data":"2019-01-30",…
-
-2
votes4
answers64
viewsQ: jQuery does not return value
I have the following code below: function checkRadioPeriodo() { if ( $("[name='periodo']").val() == undefined ) { alert("Escolha um período!"); return false; } } $("#botao").on ("click", function ()…
jqueryasked Carlos Rocha 1 -
1
votes0
answers32
viewsQ: jquery.maskMoney and jquery.Mask inserted in the same file: conflict
have 2 fields in the form: <input type="text" name="telefone" id="telefone" required maxlength="14" /> and <input type="text" id="valor" name="valor" required class="real" /> The first…
-
1
votes0
answers465
viewsQ: Block typing in date field
Has as Block typing field date and keep up to popup who carries the calendar? The problem is this: <input type='date' id='data' name='data' max="<?php echo date('Y-m-d'); ?>" required />…
-
1
votes1
answer110
viewsQ: onKeyUp on input Date
I need to make a onKeyUp in input Date so that the user cannot choose a date later than the field cut-off date. Type: <input type='date' id='data' name='data' max="<?php echo date('Y-m-d');…
html5asked Carlos Rocha 1 -
2
votes2
answers59
viewsQ: nonexistent origin registration. How to bypass? Foreign Key
I have a field in a table of celulas who asks for the number of celula that gave it origin. Example: We have the table celulas: idCelula, nome, etc ... origem That one origin ago reference at the…
-
0
votes1
answer52
viewsA: Onclick does not work after div receive content from another div
Well, I solved: I traded: if ( result >= 3 ) $( "#conta" ).html( "<h1>Essa Regiao já possui " + result + " Áreas!</h1>" ); else $( "#conta" ).html( $( "#escolhaArea" ).html() ); For:…
jqueryanswered Carlos Rocha 1 -
0
votes1
answer52
viewsQ: Onclick does not work after div receive content from another div
<script> $( document ).ready( function ( e ) { $( "#idRegiao" ).on( "change", function () { if ( $( "#idRegiao" ).val() != "" ) { $.ajax( { url: "_scripts/_php/_contagens/contaAreas.php",…
jqueryasked Carlos Rocha 1 -
0
votes0
answers29
viewsQ: on Change does not starta after Trigger();
I have the following code: <script type="text/javascript" src="_scripts/_js/jquery-2.1.4.min.js"></script> <input type='hidden' id='idSetor' name='idSetor' value=1/> <script>…
jqueryasked Carlos Rocha 1 -
1
votes1
answer28
viewsQ: button in a div with display: None does not receive jQuery event when it is embedded in another div
I have 2 div's One getting the contents of the other: $( "#conta" ).html( $( "#escolhaMembro" ).html() to #escolhaMembro is with display: none. When the contents of #escolhaMembro appears in the…
jqueryasked Carlos Rocha 1 -
1
votes1
answer141
viewsQ: Fire jQuery using the Hidden input
FORM echo "<input type='hidden' name='idRede' value=" . $idRede . " /> "; echo ' <label class="labelPequeno" for="idRegiao">Região</label> : <select name="idRegiao"…
-
4
votes2
answers54
viewsQ: Compensating for Select Option loss
I have a style I use for the fields of form: .inputTextMedio { border: 1px solid rgb(0,0,0); border-radius: 10px; width: 250px; height: 30px; padding: 3px; display: inline-block; } The problem is…
-
0
votes0
answers59
viewsQ: position [in any situation] the footer at the bottom of the page
I got the following HTML: <body> <div class="todo"> <button class='button'>Login</button> <div class="topo"> <h1 class="h1Centralizado"> <?php echo…
-
0
votes0
answers39
viewsQ: Do with CSS background in degrade on the whole screen
I got the following css: @charset "utf-8"; /* CSS Document */ @import url('http://fonts.googleapis.com/css?family=Open+Sans'); * { font-family: 'Open Sans'; font-size: 1em; margin: 0; padding: 0;…
-
0
votes1
answer26
viewsQ: clear posthumous fields
jQuery: // JavaScript Document $(document).ready(function (e) { $("#idPastor").on("change", function () { $.ajax({ url: "_scripts/_php/_validacoes/buscarDadosRedes.php", type: "POST", dataType:…
jqueryasked Carlos Rocha 1 -
0
votes2
answers28
viewsQ: jQuery rereading in Select
jQuery $("#idRede").on("change", function () { $.ajax({ url: "_scripts/_php/_validacoes/buscarDadosRegioes.php", type: "POST", dataType: "json", data: { idRede: $("#idRede").val() }, beforeSend:…
phpasked Carlos Rocha 1 -
1
votes0
answers43
viewsQ: Generate automation of a function
I have 5 tables: pastores, redes, regioes, areas, setores, celulas In that order, All five have these 2 fields in common, one of identification and the other that is the name. idPastores, idRedes,…
-
0
votes1
answer32
viewsQ: populating div with $.ajax, Error
I got the following HTML: <label class="labelPequeno" for="idPastor">Pastor</label> : <select name="idPastor" id="idPastor" class="inputTextMedio required"> <option value=""…
jqueryasked Carlos Rocha 1 -
-1
votes2
answers53
viewsA: display block is not working on jQuery
I forgot that css is not attribute and yes style. In case, it has to be .css() and not .actribute() or .prop()…
-
0
votes2
answers53
viewsQ: display block is not working on jQuery
I got the following jQuery script: $.ajax({ url: "_scripts/_php/_validacoes/cadastrarCelulaMembro.php", type: "POST", dataType: "json", data: { idPastor : $("#idPastor").val(), idRede :…
-
6
votes2
answers144
viewsQ: When using method in a string, it is not including parentheses "()"
I have the following method in a class: public function cadastrar( $pastor ) { print $pastor->getIdMembro(); // IMPRIME 6 $string = "INSERT INTO pastores ( idMembro ) VALUES (…
phpasked Carlos Rocha 1 -
0
votes2
answers26
viewsQ: Enum date trucate
I have the following query: INSERT INTO celulas ( diaReunioes ) VALUES ( 'Terça' ) You’re making the following mistake: Data Truncate for column 'diaReunioes' at row 1 This field in the table is:…
-
1
votes0
answers29
viewsQ: Failed to hide array generation
I have the following method of login in a Class php: public function loginMembro( $_usuario, $_senha ) { $membro = null; $string = "SELECT idMembro, nome, apelido, bloqueado, usuario, senha FROM…
phpasked Carlos Rocha 1 -
0
votes1
answer66
viewsA: HTML block inside Javascript Variable
Thank you html = "<label class='labelPequeno'>Nome</label> : " + result[1]['nome'] + " <br/>"; html += "<label class='labelPequeno'>Apelido</label> : " +…
javascriptanswered Carlos Rocha 1 -
-1
votes1
answer66
viewsQ: HTML block inside Javascript Variable
I have the following JS code: success: function (result) { if (result[0] == "Erro") { $(".dadosAdmin").html( result[1] ); } else { dadosAdmin = " <label class='labelPequeno'>Nome</label>…
javascriptasked Carlos Rocha 1 -
-2
votes1
answer72
viewsQ: Count counting it wrong?
I have the following call to a function: $exitente = $membrosDao->pesquisaMembrosNasFuncoes( $_POST[ "idMembro" ] ); That for the requests below print "<pre>"; print…
-
4
votes2
answers173
viewsQ: sql record in tables and return the table name
Well, here’s the thing query Mysql; SELECT idMembro FROM membros WHERE idMembro IN ( SELECT idMembro FROM pastores union SELECT idLider FROM redes union SELECT idLider FROM regioes union SELECT…
-
0
votes2
answers49
viewsQ: How to simplify this Consultation?
Have the following Question below and I would like to know if there is a way to simplify the WHERE clause SELECT idMembro, dataCadastro, nome, apelido, dataNascimento, telefone, celular, bairro,…
-
1
votes2
answers152
viewsQ: receiving null or void field
I have a class object that appears like this on print_r(); Membros Object ( [idMembro:Membros:private] => [dataCadastro:Membros:private] => 2019-01-10 [nome:Membros:private] => Cleonice P…
-
1
votes0
answers68
viewsQ: Send empty date to ajax
I have in my form the following field: <input type="date" class="inputTextMedio" name="dataBatismo" id="dataBatismo"/> If chosen a date, it correctly sends the data to the ajax and write to…
-
-1
votes1
answer1469
viewsQ: stop a foreach Java
I have a script that reads each field of the form: // JavaScript Document $(document).ready(function (e) { $("#cadastrar").on("click", function () { $(".required").each(function (i) { if…
jqueryasked Carlos Rocha 1 -
0
votes2
answers634
viewsQ: How can I check if the browser supports HTML 5?
How to check whether the browser supports HTML 5? For example, I would like to set a form field as required. I can use the parameter required: <input type="text" required> But I saw that…
-
0
votes1
answer185
viewsQ: PHP 7 typed and difference between argument numbers and parameters
Reading in: https://secure.php.net/manual/en/mi found out the following example: function arraysSum(array ...$arrays): array { return array_map(function(array $array): int { return…
-
0
votes1
answer34
viewsQ: Is PHP-specific string array possible?
Well, I have the code below that should work but gives error: function teste( string... $_array ) : array { //FINS DE TESTE return $_array; } print_r ( teste ( ["teste","2"] ) ); If I just do…
-
-1
votes1
answer38
viewsQ: simplify a great IF!
I have the following condition to test: if (isset($_GET["cadastrarMembro"]) && ( $_SESSION["acesso"]["idAcesso"] == 3 $_SESSION["acesso"]["idAcesso"] == 5 $_SESSION["acesso"]["idAcesso"] ==…
-
-3
votes1
answer135
viewsQ: Conditional in Mysql clause
I have a select normal SELECT campos FROM tabela_Z WHERE condicoes I’d like that one query add a field that is another query. SELECT campo1, campo2, campo3, (SE houver o id X na TABELA _, = true,…
-
5
votes1
answer98
viewsQ: Mount CSS from Image
I have the image below that shows a form HTML. I wanted to make that effect in the form but I couldn’t. Can someone help me? Follow my lead. body { font-family: 'Roboto', sans-serif;…
-
1
votes0
answers85
viewsQ: Media|Player in the notification area
Well, I’m making one app that has a plugin MediaPlayer to play web radio. I would like to add, when the player was clicked, a prediction of it in the notification area (I think that’s the name) also…
-
1
votes1
answer1060
viewsQ: Using Seekbar in a simple way
I am, for study purposes, developing a player in the Android Studio. The player is ready. Now I wish to control it. Researching, I discovered the component SeekBar. But I’m not finding a way to tell…
-
0
votes1
answer35
viewsA: Implementation of "Loading..." message in Webplayer
I did. But unfortunately using Asynctask. package carcleo.com.player; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.AsyncTask; import…
androidanswered Carlos Rocha 1 -
1
votes1
answer35
viewsQ: Implementation of "Loading..." message in Webplayer
Well, I made the code more readable... The same is true of a web radio player. It has functionality however I would like to add a message waiting / wait, when the video/music takes long to load.…
androidasked Carlos Rocha 1 -
1
votes0
answers35
viewsQ: player.setDataSource(URL); giving error
I have the code below that opens a URL of Streaming of a web radio and plays/pauses her. Got and bugs in this código I don’t think so and I ask for your help. package carcleo.com.player; import…
-
0
votes0
answers34
viewsQ: Radio Player Android Parando
So I have the following Activity below. In it, I have a radio player. However, when I minimize the App to see something else, such as using the calculator, the player stops playing. I’m using the…
-
0
votes1
answer559
viewsQ: Retrofit = Manipulating the Sponse
Well, I’m asking for more help from friends so really, I’m not getting the dynamics. Following tutorials and explanations here from the forum I am TRYING to use the Retrofit but it’s not working. I…
-
1
votes1
answer199
viewsQ: problems with Strictmode.Threadpolicy
Hello, I have the link below http://www.hotplateprensas.com.br/ws/clientest.php that delivers me a string json of the kind { "clientes":[ { "idClientesT":"1", "tipo":"s", "nome":"Carlos"}, {…