Posts by Carlos Rocha • 1 point
426 posts
-
0
votes1
answer115
viewsQ: Rounding error
Good afternoon! I have the following js function which returns the new cart values when the product quantity is changed: function add(_quant, _preco, _total, _estoque) { quantidade =…
javascriptasked Carlos Rocha 1 -
0
votes3
answers304
viewsA: SQL hide query parameter in return
Grateful to those who helped. But I thought it made it simpler: SELECT idProdutos, idCategorias, codigo, nome, data, precoUnitario, bloqueado, lancamento, freteGratis, oportunidade, descricao,…
-
0
votes3
answers304
viewsQ: SQL hide query parameter in return
I have the following appointment: SELECT idProdutos, SUM(quantidade) as soma FROM pedidos GROUP BY idProdutos ORDER BY soma DESC That returns me the id and the aggregated sum of the products in the…
-
0
votes3
answers351
viewsQ: Put sub-menu under the right li
.menuAbrir, .menuFechar { display:none; } .menuPrincipal li { display:inline; position: relative; } .menuPrincipal li a{ display:inline-block; vertical-align:middle; text-align:center; width:115px;…
-
0
votes3
answers92
viewsQ: Align vertical giving error!
how do I make the image and link below align to the center vertically? The image and the online link, and this line, aligned vertically to the center (Middle) in relation to the div login I tried…
-
0
votes1
answer935
viewsQ: Div when opening is overlapping another div
I have the following code: <?php if(!isset($_GET["p"])) { echo $phpUtil->erro ("Produto inexistente!"); } else { $imagemAdd = "<img src='../_img/add.png' style='height:40px;' />";…
-
2
votes1
answer257
viewsQ: foreach using css3
So I have a div with 3 imagens <div class="pai"> <img src="1.jpg" /> <img src="2.jpg" /> <img src="3.jpg" /> </div> I would like these three images to run from right to…
-
0
votes1
answer708
viewsQ: How to upload images after scroll when in view-port?
Look at this page: https://www.nubank.com.br/gerando-boletos/ It has the following structure: <p>titulo do post</p> <img src> <p>titulo do post</p> <img src>…
-
0
votes2
answers497
viewsA: Recording data from a SESSION in the BD
The PDO connection is working right? If so, try doing it that way: <?php require_once("conexao.php"); $pdo = Database::conexao(); $stmt = $pdo->prepare('INSERT INTO cadastro_clientes…
-
1
votes0
answers153
viewsQ: Transparent checkout leaves the site?
I downloaded the official library of Pagseguro, Pagsegurolibrary, but they say that with the transparent checkout all the process is done in the virtual store and all communication with Pagseguro is…
phpasked Carlos Rocha 1 -
1
votes0
answers256
viewsQ: Understanding the Automatic Return of Pagseguro
I’m having trouble understanding the automatic return of Pagseguro. I am following the following tutorial: http://blogpagseguro.com.br/2012/05/tutorial-pagseguro-entendendo-o-retorno-automatico/ My…
phpasked Carlos Rocha 1 -
0
votes1
answer906
viewsQ: GOOGLE MATRIX API
I am using the following method to calculate the distance between 2 cities using Google API Matrix: private function calculaDistancia () { $this->destino = str_replace("…
-
0
votes2
answers305
viewsA: .load Jquery letting the form be submitted
Well, it was just a semantic mistake anyway. I would like some guidance. In the case of forms, post sending and tals, which would be the most indicated form to work? Using $.post $.post…
jqueryanswered Carlos Rocha 1 -
0
votes2
answers305
viewsQ: .load Jquery letting the form be submitted
I got the following js $("#contato").on("submit", function () { if($('#descricao').val() == "") { //verifica apena o texto alert("Descrição não está preenchida!");…
jqueryasked Carlos Rocha 1 -
0
votes4
answers239
viewsA: Empty character exiting HTML
Well, I got it with everyone’s help! Next: When you have one JQuery .load or a Ajax .load, these functions wish to receive only the result desired. When we do, for example, ?> and soon after we…
phpanswered Carlos Rocha 1 -
1
votes4
answers239
viewsQ: Empty character exiting HTML
The page is: http://www.hotplateprensas.com.br/_required/Email2.php The code is: <?php require_once "../_controlls/_conexao/Conexao.php"; require_once "../_controlls/_util/PhpUtil.php";…
phpasked Carlos Rocha 1 -
3
votes2
answers613
viewsQ: Ajax Jquery return variable giving error
I have the following script on ajax: $("#contato").on("submit", function () { if($('#descricao').val() == "") { //verifica apena o texto alert("Descrição não está preenchida!");…
-
0
votes0
answers472
viewsQ: Send e-mail function mail() using UOL Host
I have the following e-mail class class EmailEnviarDao { public function __construct() {} public function enviaEmail($email) { $cabecalhos = 'MIME-Version: 1.0' . "\r\n"; $cabecalhos .=…
-
0
votes1
answer169
viewsA: Add Country to Distance Matrix API
I think I got. Just add to the city, your state. $url =…
-
-1
votes1
answer169
viewsQ: Add Country to Distance Matrix API
I’m using a function to return from the google Matrix api, the distance between two cities. The problem is that when cities have names similar to those of North American cities, the calculation of…
-
0
votes2
answers54
viewsA: url with parameters returns wrong value
url must not contain spaces: Solution: $this->cepDestino = str_replace(" ","%20",$this->phpUtil->limpaCaracters($this->cepDestino));
-
0
votes2
answers54
viewsQ: url with parameters returns wrong value
I have the following appointment to api of Google Maps http://maps.googleapis.com/maps/api/distancematrix/xml?origins=Muriae&destinations=Rio de…
-
0
votes0
answers58
viewsQ: Picture gets huge in Carroussel
That is the problem: http://hotplateprensas.com.br/novo/produto.php?p=1 I’m using a plugin JQuery for viewing images of the type carroussel. But when the image is too high it generates this problem.…
-
0
votes0
answers24
viewsQ: Help with system change with less work
I have a product list: CREATE TABLE produtos ( idProduto int(2) unsigned NOT NULL AUTO_INCREMENT, tipo enum('m','p') NOT NULL, modelo varchar(100) NOT NULL DEFAULT '', bandejas enum('1','2') NOT…
-
0
votes2
answers163
viewsA: div’s scroll down when changing screen resolution
Solution: <style> .fotosJaCad { display:inline-block; vertical-align: middle; width: 18%; height: 175px; text-align:center; border: #000 .01px solid; } @media screen and (min-width: 0px) and…
-
0
votes2
answers163
viewsQ: div’s scroll down when changing screen resolution
Hello, I have the following code: <style> .fotosJaCad { display:inline-block; vertical-align: middle; width: 18%; height: 175px; text-align:center; border: #000 .01px solid; } @media screen…
-
2
votes1
answer54
viewsQ: pass from Jquery to CSS3
Some way to do this in CSS3? if(window.innerWidth <= 1000) { var ecra = window.innerWidth; $(".topo").css("height",ecra*0.293); } I tried to @media screen and (min-width: 0px) and…
-
0
votes1
answer768
viewsQ: Catch the height of an image
In my project, I have an image that as the screen goes down 1000px, 860px, 320px, etc the image also changes its height. How to do to catch the height at the time of display? I need to know this…
-
1
votes1
answer54
viewsQ: break automatic line with database data
Hi, I have a ul with li's who are named after products. It turns out that when I change the resolution to mobile, for example 320px, so if the name of the product is big, then it won’t fit inside…
-
1
votes1
answer57
viewsQ: Making None float is not working
I have the following form: <form id="formFrete" action="?" method="post"> <input type="hidden" name="acao" value="calculaFrete" /> <div style="float:left;"> <label…
-
1
votes1
answer75
viewsQ: XML only brings empty value
I have the xml brought down from a cUrl. <DistanceMatrixResponse> <status>OK</status> <origin_address>Muriaé - MG, 36880-000, Brasil</origin_address>…
-
1
votes2
answers530
viewsQ: Recover return from callback
I have the function below that calculates distances using a Google API. I would like to know how to have the return of the function of callback. <script type="text/javascript"…
-
1
votes0
answers62
viewsQ: Paypal Notifications API: Variable Recognition
Using the API of notifications of Paypal through the Simulator IPN found in https://developer.paypal.com/developer/ipnSimulator/, I got the following return which is the simulator standard: My…
phpasked Carlos Rocha 1 -
2
votes2
answers1838
viewsQ: How to force the favicon.ico update?
I have a problem with favicon.ico, he appears wrong. A while ago, I made a website that used a favicon.ico. After that, I’ve already made some 3 sites and the problem occurs in all. Although I put…
-
1
votes2
answers37
viewsQ: Inclusion of method in own class
Imagine a sistema OO which has at least 2 classes: Admins.php Clientes.php In real life, that is, in the system, customers cannot register. In this case, the function of registering the Customer is…
oopasked Carlos Rocha 1 -
2
votes0
answers69
viewsQ: Error of uploading images
I’m uploading an image with an object-oriented paradigm and I’m making a strange mistake: The upload is done successfully, the image is displayed normally on the site. Everything normal. But when I…
phpasked Carlos Rocha 1 -
1
votes1
answer984
viewsA: Delete image from input file before submitting the form
I got. Html <div id="multiple_upload"> <input type="hidden" id="arquivos" name="arquivos" onChange="alert(this.value)" /> <input type="file" multiple id="fotos" name="fotos[]" />…
-
0
votes1
answer984
viewsQ: Delete image from input file before submitting the form
I am using the script below https://jsfiddle.net/tretaa/yrvyf2gn/52/ To make múliplos uploads. It is working correctly. I select (for example) 3 images, then remove 1, I get 2. Anyway, the JQuery…
-
-1
votes1
answer691
viewsQ: Vertical alignment and inline display
good afternoon! I have the page below and as much as I try I can’t get the menu to stay online with the logo. Where am I going wrong? Another problem is that the logo and menu have height of 88px…
-
1
votes0
answers136
viewsQ: How to resolve stylization error in Select Option options that appears error in Firefox
In Firefox version 48.0, this giving error in styling the options of Select Option. Follows the code: <div class="buscaCodigo"> <div class="form"> <br /> <br />…
-
0
votes1
answer1046
viewsQ: css3 effect when div appears
at the link below, http://ub.universidadedabiblia.com.br/curso-bachelor’s degree in theology/? ref=U2479268R&hsrc=R0n1cnnv As the screen rolls, it is observed that the div’s are receiving…
-
3
votes2
answers112
viewsQ: window.innerWidth does not work on Windows Phone
I got a problem: On the page http://www.magicforbaby.com.br/, has a banner where I can’t set its size (from div). But as it takes all 100% of the screen, I took window.innerWidth from the browser…
-
0
votes2
answers116
viewsQ: css shows error in chorme
On that page, http://www.magicforbaby.com.br/contato.php?form, form fields are stylized correctly. Locally with Texts inputs everything is as it should be, but on the web is out and css are…
-
1
votes1
answer59
viewsQ: Menu Jquery does not open!
This is the page: http://www.magicforbaby.com.br/sobre.php Problem: When I’m at a resolution less than 800px (yes, I’m making use of media queries), i make the menu retracts in a default figure,…
-
0
votes1
answer160
viewsQ: Div overlapping even after clear both
This is the page: http://magicforbaby.com.br/ There’s a banner you’re covering up div's below it. I already put a div clear both below it but it didn’t work. as div's class="base" and class="final"…
-
0
votes0
answers97
viewsQ: Jquery Carousel disturbing the display: inline-block
This is the page: http://www.magicforbaby.com.br/loja/produto.php?p=1 The code is this: echo "<div class='fotosProduto'>"; require_once "_required/carousel.php"; echo "</div>"; echo '…
-
0
votes1
answer383
viewsQ: Return php to Jquery
I need a JS variable that picks up the result in a . load Jquery from a php file. Jquery $.ajax({ type: "POST", url: "_required/sessaoCarrinho.php", data: {idProduto:idCampo, novaQuantidade:…
-
-1
votes2
answers793
viewsA: Receive error in Curl request
Well, I solved it like this. But I think there must be a more correct way to verify it. If there is, please help me. Because using the Post Office webservice is taking up to 30 seconds to drop the…
phpanswered Carlos Rocha 1 -
-2
votes2
answers793
viewsQ: Receive error in Curl request
I am trying to get the error in a return from Curl ini_set("display_errors",true); ini_set("display_startup_erros",1); error_reporting(E_ALL && E_NOTICE); error_reporting( E_ALL | E_STRICT…
phpasked Carlos Rocha 1 -
0
votes2
answers112
viewsA: Jquery append() and html() problems
I got. Thank you! <?php if(empty($_SESSION["carrinho"])) { echo '<script>$(".carrinho").html("CARRINHO VAZIO")</script>'; } else { $semiTotal = 0.00; foreach ($_SESSION["carrinho"] as…