Posts by Rafael Augusto • 4,027 points
242 posts
-
0
votes3
answers1847
viewsA: Calling PHP file in HMTL form
Desejo chamar um arquivo .PHP, porém não consigo. Possuo esse script: ======== <html> <header> <title>Home Page</title> </header> <body> <form method="post"…
-
0
votes2
answers452
viewsA: Body NULL Nodejs
I was able to fix it, the mistake was actually from POSTMAN. just setting the way to pass parameters, he was sending GET, even if I switched to POST
-
2
votes2
answers1069
viewsA: Send email once a day
For this Voce must use CRON. What are the Cron Jobs? Cron Jobs are like Windows Scheduled Terefas: they are tasks automatically executed from X to X times... Making an analogy to real life is when…
-
6
votes1
answer425
viewsA: What are the options for mobile app development?
First ask yourself, what do I know! From there we go to some options Native Developing apps natively, technically it’s a great practice, but with a time-consuming learning curve. IOS - Using Swift…
-
-1
votes4
answers5462
viewsA: how to insert picture into database
To store the photo, who does this is the language of Backend, ex: PHP. To send... http = require("socket.http") ltn12 = require("ltn12") http.request{ url = "SEU-SERVIDOR/ARQUIVO.PHP", method =…
-
0
votes1
answer147
viewsA: How to find the value of a <select> pulled from the database
It is possible yes. you can do so $(function(){ // Pais function pais(){ $.ajax({ type: 'GET', url: 'funcoes.php', data: { acao: 'pais' }, dataType: 'json', success: function(data){…
-
0
votes2
answers452
viewsQ: Body NULL Nodejs
I’m starting with nodejs, but whenever I try to send (email and password) to the API via POST, the entered values are returned as NULL. router.post("/users", function(req, res){…
-
3
votes1
answer573
viewsQ: Differences between authentication types
I was doing some research on authentication, because I want to improve this part of my system, I found some cases like Basic, oAuth1 and Oauth2. What is the difference between them? What are they…
-
0
votes2
answers338
viewsA: HTML CSS rollover effect
I think Voce wants a hover effect, right? If so, try #menu ul li:hover{ border: 1px solid black; }
-
0
votes2
answers89
viewsA: CSS and HTML display
#menufundo ul li{ display: inline; } <div id="logo"> </div> <!--div final do logo--> <div id="topo"></div> <!--div final topo--> <div id="menufundo"><nav…
-
-2
votes1
answer87
viewsA: Tip to assemble menu
/*global $ */ $(document).ready(function() { "use strict"; $('.menu > ul > li:has( > ul)').addClass('menu-dropdown-icon'); //Checks if li has sub (ul) and adds class for toggle icon - just…
-
-1
votes3
answers1191
viewsA: Show BD record without refresh
$.ajax({ type: 'POST', URL: 'urlDoSeuPHP', data: { // valores a ser passado }, success: function(data){ // Aqui voce trata o retorno } }); <script…
-
1
votes2
answers1903
viewsA: Add values with jquery, string to number
function formatReal(int){ var tmp = int+''; tmp = tmp.replace(/([0-9]{2})$/g, ",$1"); if( tmp.length > 6 ) tmp = tmp.replace(/([0-9]{3}),([0-9]{2}$)/g, ".$1,$2"); return tmp; } let a =…
-
0
votes2
answers1184
viewsA: How to update select with jQuery
$('select option[value="2"]').attr({ selected : "selected"}); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <select> <option value="1"…
-
2
votes2
answers1012
viewsA: Arrange amount of Divs/columns per row
use media query .box{ width: 25%; height: 150px; background: black; float: left; } @media(max-width: 600px){ .box{ width: 50%; } } <div class="boxs"> <div class="box"></div>…
-
1
votes1
answer309
viewsA: Sub-Tables in Bootstrap
I don’t know if you want a treetable, but it will follow the same context. $('ul li span').on('click', function(){ $('.show').slideToggle(); }); .show{ display: none; } <script…
-
5
votes4
answers14426
viewsA: What is the difference between "margin: 0 auto;" and "margin: auto;"?
margin: 0 auto; Defines the margins esquerda and direita of the element and the margins auto above and below 0. margin: auto; Sets all margins to auto.…
-
1
votes1
answer245
viewsA: How do I save the result of this GET query in a variable?
You are saving as an object, so when giving an Alert appears object object, if Voce gives a console.log(return ajax) will see the whole object and how to access it. Follow an example: var resposta;…
-
-1
votes4
answers1299
viewsA: Disable the forms autocomplete
The autocomplete="off" still works, but can also try with jQuery. $( document ).on( 'focus', ':input', function(){ $( this ).attr( 'autocomplete', 'off' ); });…
-
1
votes1
answer643
viewsA: Load Json Search in JSP
Follow the example working... $(document).ready(function () { $.getJSON('https://gist.githubusercontent.com/ografael/2037135/raw/5d31e7baaddd0d599b64c3ec04827fc244333447/estados_cidades.json',…
-
1
votes1
answer719
viewsA: Carousel that passes one image at a time and with thumbnails underneath
jQuery(document).ready(function($) { $('#myCarousel').carousel({ interval: 5000 }); $('#carousel-text').html($('#slide-content-0').html()); //Handles the carousel thumbnails…
-
0
votes1
answer24
viewsA: Display data from a 2d array in Reactnative
let result = function() { let hist = {}; return arr.reduce(function(previous, current) { if (current in hist) { previous[hist[current]][2]++; } else { previous[hist[current] = previous.length] =…
-
1
votes1
answer306
viewsA: How to export a Powerpoint file to HTML?
File > Save As Web Page. Then it will save on WEB page. from a look, already have a question like this in Stackoverflow.…
-
0
votes2
answers92
viewsA: PHP refresh SQL Data without refreshing the page
You can do this using jQuery. $.ajax({ type: 'POST', url: 'CAMINHO DO SEU ARQUIVO PHP', success: function(data){ // Retorno com data } })
phpanswered Rafael Augusto 4,027 -
0
votes3
answers373
viewsA: Mount html structure with result of ajax array?
Oops, having the json makes it easier :D come on insira o código aq let val =…
-
2
votes1
answer968
viewsA: How to make a "Read More" button in Javascript
$(document).ready(function() { var showChar = 100; var ellipsestext = "..."; var moretext = "Show more >"; var lesstext = "Show less"; $('.more').each(function() { var content = $(this).html();…
-
0
votes2
answers567
viewsA: Query SQL Moodle
You can use JOIN to get the reference tables you need, it would be nice to take a look just to learn. https://www.w3schools.com/sql/sql_join.asp…
-
4
votes1
answer177
viewsA: Animation during ajax request
Before Success add a beforeSend, like this: $("#formcontato").submit(function(event){ event.preventDefault(); if (validar()){ $.ajax({ url: "https://formspree.io/[email protected]", method:…
-
-1
votes2
answers747
viewsA: How to center menu
So. look that I just centered formatting the menu1 class #menu{width: 100%; height: 55px; text-align: center} .menu1{ margin: 0 auto; width: 600px; } .menu…
-
0
votes1
answer42
viewsA: View products 4 by 4 after button click see more
<?php $post = $pdo->query("SELECT * FROM postagens")->fetchAll(); if(!$post){ print_r($pdo->errorInfo()); } foreach ($post as $posts){ ?> JS $.ajax({ url:'postagens.php', //Página PHP…
-
3
votes2
answers13324
viewsA: Change content according to screen size
Using the media query you can set the screen size control and apply styles as such. Ex: a h1 my I use 5em large screens, but will be too big in mobile, so just use the media query to decrease its…
-
1
votes2
answers42
viewsA: Use monitoring of search tool
The best way is to use $_SERVER['HTTP_REFERER']; and store in the Database, ai Voce can use PDO normally. ex: $sql = $pdo->prepare("INSERT INTO tabela SET val = valor"); $sql->execute();…
-
0
votes3
answers2084
viewsA: How do I Reload only in the modal window?
If it is form fields, Voce can simply reset $('form').reset(); You can use it as well... $('form').each(function(){ $("#select").val($("#select option:first").val()); });…
-
1
votes1
answer616
viewsA: CSS does not work on IOS
You’d have to test from an OSX to see, but if the CSS gets messed up, it’s probably the default, you can reset the OSX CSS default values -webkit-appearance: none; see if it works…
-
3
votes1
answer3452
viewsA: Align text at the bottom within a div
Use the flex: 1; align-self: flex-end; in the contents of your div
-
2
votes1
answer47
viewsA: Is it possible to run an external page on the client and get the JSON result using PHP?
You can use Ajax for this. Ex: $.ajax({ type: 'GET', url: 'URL DE RETORNO JSON', dataType: 'json', success: function(data){ $('body').append(data.titulo); } }) in case it is only modify as the…
-
1
votes1
answer34
viewsA: Google Charts with code on body to request
<?php // Create some random text-encoded data for a line chart. header('content-type: image/png'); $url = 'https://chart.googleapis.com/chart'; $chd = 't:'; for ($i = 0; $i < 150; ++$i) {…
-
-2
votes4
answers7619
viewsA: Remove Focus/Outline from input (CSS)
Just do it like this in CSS All of this becomes HTML, so it will work, if you prefer, Voce can also add a classname straight from Formcontrol handleFocus: function(event) { event.target.select(); },…
-
1
votes2
answers3123
viewsA: Inserting a page from one site into another
You can use iframe, or jQuery with Ajax to call this page. $.ajax({ url: 'SUA URL' success: function(data){//} });
-
0
votes1
answer44
viewsA: Problems deleting mysql database
Change the GET to $_GET['deleta'], this way you’ll be picking up the value as you go. href="href=Pedidos_delete.php?deleta=<?php echo $rscat['cliente_id'];?>" Also, note the code above, I…
-
1
votes1
answer538
viewsQ: Browse Objects from Objects
How to Browse JS Objects? Like, I got a Json { children":[ {} ] } the question is, that sometimes there are objects inside objects and sometimes not, inside that Children, I can have another…
-
1
votes1
answer170
viewsQ: Share document (PDF, JPG, etc.)
Does anyone know how to share a document using Ordova? a document I have on my phone (whether temporary or not). I would like to send (other than the link) and the document itself.