Posts by Paulo Ramos • 466 points
22 posts
-
0
votes1
answer28
viewsA: Validation Result JSON URL
For example, you can access individual object items as follows: $url = "https://10.0.10.22/runin/clones/". $_POST["NUNOTA"] ."/aprovada/"; $resultado = json_decode(file_get_contents($url)); if…
-
1
votes1
answer24
viewsA: Ajax problem when trying to use data in later functions
Declare variables as global, before the function $(document).ready. var braco = []; var cabeca = []; $(document).ready(function () { ... });
-
0
votes2
answers3642
viewsA: Change color of the icon after clicking or Hover input
Try .icone:before { color:red; } or .icone-user:before { color:red; } Anyway, just by inspecting the code, I can give a more concrete answer.…
-
0
votes1
answer43
viewsA: Javascript which Api is this?
This template uses the opensource library fullPage.JS (https://alvarotrigo.com/fullPage/) through which the transition of screens, menus, etc., is managed, with some additional customization in CSS…
-
1
votes1
answer432
viewsA: How to implement a bootstrap menu in an Angular project?
Normally, jQuery should also be included before using Collapse.js or use Bootstrap UI if you do not want to include jQuery in the angular design.…
-
1
votes1
answer31
viewsA: Ajax event does not run with modal
http://api.jquery.com/on/ If when declaring events through the jQuery . on() function, there are no elements in html yet, these events will not be triggered. In such a case, it should defer its…
-
0
votes1
answer34
viewsA: function suitable for accessing array values
Create a global variable outside the function: var resultado = window.lerTabelaListas; console.log(resultado); // A sua função window.lerTabelaListas=function() { lista=new Array();…
-
0
votes2
answers115
viewsA: Navbar-Brand display on smartphones
Put all the navbar code inside a container: <!-- NAVBAR --> <!-- Toggle button for smartphones --> <div class="container"> <nav class="navbar navbar-fixed-top"> <button…
-
2
votes1
answer1360
viewsA: Validate geographical coordinates
Google uses the standard coordinate system WGS84. To validate you can consider these approximate values: Latitude: max/min +90 to -90 Longitude: max/min +180 to -180
-
0
votes4
answers152
viewsA: Using Mysql how to create a Select that searches "together" words
Utilize % to replace characters in the search. SELECT pessoa FROM tabela WHERE pessoa like '%jose%da%silva%' In the following scenario, the user wrote jose da silva in the search box. The function…
-
1
votes2
answers238
viewsA: navbar semantic-ui transition
In the CSS, you must add the attribute color in class .main.menu.fixed, for example: .main.menu.fixed { background-color: #FFFFFF; color: #333333; border: 1px solid #DDD; box-shadow: 0px 3px 5px…
-
0
votes1
answer45
viewsA: Javascript errors
When using Boostrap.js and jQuery the loading order of the scripts should be as follows: jquery bootstrap.js other Libraries.js if available your code js…
-
0
votes1
answer307
viewsA: Navigation bar with more than one Dropbox in bootstrap
On all pages containing this menu, bootstrap.css, jquery.js and bootstrap.js files or their minimal versions (.min.css or .min.js must be loaded.) <link rel="stylesheet" href="bootstrap.min.css"…
-
4
votes2
answers90
viewsA: PHP print names in upper case
You are trying to convert the $student name array, but you must convert every $key within the loop <?php $nome_alunos = array('andre' => 1 , 'paulo' =>5, 'fabio' => 2);…
phpanswered Paulo Ramos 466 -
3
votes1
answer53
viewsA: Get HTML5 formatted date
Using the library Moment.js (https://momentjs.com/); var dataInicio = "Thu Oct 01 2015, 00:00:00 GMT-0300"; var dataInicioFormatada = moment(dataInicio).format('DD-MM-YYYY');…
-
1
votes3
answers324
viewsA: How can I take each selected checkbox and put it inside an input?
$('#bt-ok').click(function() { $("#text").val(''); $("input:checkbox:checked").each(function(){ //cbx_selecionados.push($(this).val()); $("#text").val($("#text").val() + $(this).attr('name') + ',…
javascriptanswered Paulo Ramos 466 -
0
votes1
answer150
viewsA: Replace image (logo in the top left corner of the page) with a second logo (edited) Scroll page (Scroll)
You can explore other ways, but using jQuery functions .scroll(), .removeClass() and .addClass(), can solve the problem: <script> $(document).ready(function(){ $(window).scroll(function() {…
-
3
votes3
answers1222
viewsA: Bootstrap grid not working!
You can add the class col-lg-* for screens of a width exceeding 1200px. If it is XS that does not work, the problem may be related to the size of the images. If the image width is greater than the…
-
1
votes2
answers4389
viewsA: Force a DIV element into the bottom
The container must have relative positioning and the element to fix absolute positioning: CSS: .container { width: 100%; height: 300px; position: relative; background: #ccc } .elemento { width: 30%;…
-
1
votes5
answers1024
viewsA: How to get last position of an ID in the array
in JS, the last element of any array can be obtained like this: ultimoElemento = qualquerArray[qualquerArray.length-1];
-
2
votes1
answer861
viewsA: How to capture textarea specific line in JS?
What you want has several steps: Fetch text entered in textarea, and turn it into a array, where each entry will correspond to a line of text in the textarea'. Search the contents of the array to…
-
2
votes4
answers64
viewsA: What practice is recommended to check if jQuery’s Ajax function is present and is recognized by the browser, does anyone know?
Utilize jQuery.support.ajax or $.support.ajax if (!$.support.ajax) { alert("Status xhr: não suporta Ajax"); }