Posts by Hugo Borges • 5,294 points
332 posts
-
1
votes1
answer73
viewsQ: remote request with php jQuery-autocomplete
I’m trying to requisition remote file PHP with the plugin jQuery-autocomplete, but it’s not working. The plugin in question and this one: jQuery-autocomplete. I want to use it because it is very…
-
2
votes1
answer521
viewsQ: work with value in google maps
Well I’m taking a look at how google charts work. And I’m not finding the way to work with rods in R$. I need the chart to display the formatted values. Does anyone know how to do this? <html>…
-
1
votes1
answer842
viewsQ: Span alignment with css
I need to align the star icon ('material-icons') with the text ('span') and the menu icon ('overflow-menu'), all horizontal. Can anyone help me? I have to do this without changing the html…
cssasked Hugo Borges 5,294 -
1
votes2
answers352
viewsQ: Placing scroll in the horizontal
I wanted to put a scroll horizontally, so it can be accessed on mobile screens. How do I do this? .menu_topo_geral { width: 100%; height: 50px; background: #616161; } .menu_topo_geral div { cursor:…
-
-1
votes1
answer247
viewsQ: convert javascript code to jquery
How would this code look in javascript: var ctx1 = document.getElementById("GraficoDonut1").getContext("2d"); new Chart(ctx1).Doughnut(data1, options); legend(document.getElementById("lineLegend1"),…
jqueryasked Hugo Borges 5,294 -
2
votes1
answer2009
viewsQ: css for mobile only
Well I’m used to checking the css this way: @media only screen and (max-width: 920px) {} The problem is that has cell phones with very high resolution, there is some other way for me to check…
cssasked Hugo Borges 5,294 -
0
votes3
answers38537
viewsQ: Alignment of buttons with css
Well I have here the personalities buttons with CSS. I need them to always stay in the center of the page, if I put several buttons they have to stand in a queue in the center of the page. And when…
cssasked Hugo Borges 5,294 -
1
votes1
answer230
viewsQ: How to put a scroll in the tab system
I’m setting up a flap system, it’s working 100%. The problem is when I open it on a mobile screen it has to scroll in the header of the tabs, same as the Android system. Could someone help me?…
-
2
votes2
answers1021
viewsQ: horizontal alignment with css
How do I let the 'title' align with the icon without the need to place the 'title' inside any div. .card-blue, .card-red, .card-green, .card-grey, .card-yellow { position: relative; width: 300px;…
cssasked Hugo Borges 5,294 -
4
votes1
answer122
viewsQ: Session data in php
I am using an SSL certificate, and wanted to know if it is possible for the user to see the data saved in the session? For example, I have a variable called config, where I keep some user access…
phpasked Hugo Borges 5,294 -
3
votes1
answer57
viewsQ: Doubt with PHP login and access level
Well I have a question and I wanted the opinion of more experienced people. I have a PHP system that uses Mysql. I have a table called 'access' where I save the options that the user has to access…
phpasked Hugo Borges 5,294 -
1
votes1
answer1486
viewsQ: place DIV in the center of the page
How do I get this div to the center of the page? .dialogbox { position: absolute; top: 30px; width: 550px; border-radius: 4px; background: #FFFFFF; margin: auto auto; overflow: hidden; display:…
cssasked Hugo Borges 5,294 -
1
votes3
answers80
viewsA: Effects with jquery
I solved the problem like this: $("#mySidenav").animate({width: 'toggle'});
jqueryanswered Hugo Borges 5,294 -
3
votes1
answer108
viewsQ: Insert HTML string on page, with fade in
Good use the following code in jquery to add a div on the site: $("body").append('<div class="shadow-full"></div>'); But it appears at once, wanted to put an effect to it appear more…
-
3
votes1
answer550
viewsQ: identify a click outside the div with jquery
Well I know how to identify a click on Cida of an element. I do so: // Fecha Sidenav $("#Close_Sidenav").click(function() { $("#mySidenav").hide(); }); But I need you to $("#mySidenav").hide() run…
-
1
votes3
answers80
viewsQ: Effects with jquery
Guys I’m having a doubt, use effects in jQuery like this: $("#elemento").toggle(2000); I took a look at the documentation but I’m not finding the right way to do it, I need an event where it starts…
jqueryasked Hugo Borges 5,294 -
0
votes3
answers2214
viewsQ: Add html with jquery
Good when I want to add an html to the page using jQuery I do like this: $("body").html('ddd'); But in this way I delete old content, it is possible to add html in Body without deleting page…
-
0
votes1
answer752
viewsQ: Sub-menu effect with jquery
I’m trying to build a menu system with sub-menu in jquery, but when I click on a menu, all sub-menus open, as I solve this? $(document).ready(function() { // Fecha Sidenav…
-
0
votes0
answers262
viewsQ: Tab system in jquery
I’m putting together a flap system, it’s working perfectly, but when I open it on a cell phone it gets all messed up. I wanted to leave it the same as the Android, when you have many tabs it creates…
-
2
votes1
answer72
viewsQ: Problem with margin-top css
I’m trying to put a margin on my table, I did so: .tab_dados {margin-top: 10px;} And it works, the problem is when I put an input on top of it. It sticks to it. What can be? .form-group {…
-
0
votes0
answers52
viewsQ: Problem with checking in my jquery
Well I am mounting a menu that when right clicking on the 'tr' of the table it opens, and when clicking with the mouse more than 1 second it tbm should open. The checks are correct according to the…
-
2
votes1
answer232
viewsQ: Identify a long click with jquery
Galera I set up a context menu that works like this, when the user right-click on a 'tr' table it opens. I do so using jQuery: // Verifica se abre o menu $("tr").mousedown(function (e) { //AQUI FICA…
-
2
votes1
answer274
viewsQ: Problems identifying mobile screen with css
I’m trying to ride a box box of login responsive. Where he has .css for monitor screens and other for mobile. The problem is that the mobile phone is not working. I make the following test: @media…
cssasked Hugo Borges 5,294 -
0
votes1
answer120
viewsQ: Create a log system
Well the default php log system doesn’t suit me 100%. I wanted to know if there is any way when a php error occurs, I need to save a log and some values that are in, some variables. I already know…
phpasked Hugo Borges 5,294 -
0
votes0
answers37
viewsQ: problems with expiring php session
Well I already know I’ve done several posts here about session, but this error is different. I have a login system where the session has to last 2 hours, IE it can only expire if the user does not…
phpasked Hugo Borges 5,294 -
0
votes0
answers28
viewsQ: problem with Infinity in number_format
Good use of php’s number_format function, to format values in the pattern I want. I do so: number_format($valor_form, 2, '.', ''); The problem is that at some point the user informs a very crazy…
phpasked Hugo Borges 5,294 -
2
votes1
answer512
viewsQ: Doubt on how to change jquery Mask type
Well I’m using the jquery Mask plugin at input value. The formatting I am using is the following '0,000'. I wondered how to change the formatting to '0,000' when I select KG in select'.…
-
1
votes2
answers234
viewsQ: Positioning of div with jquery
Well, with the help of some people here in the stack I am modifying my tooltip system, it is almost ready, however I am having a problem. When I use a very large text in the class…
-
2
votes1
answer241
viewsQ: Doubt about Maximum Execution time
Well, I have a system that runs in php, and in it I have several functions. As it is a network system several people use it at the same time. But I started getting the following error log: PHP Fatal…
phpasked Hugo Borges 5,294 -
1
votes2
answers170
viewsQ: How to identify the end of the monitor with jquery
Guys I’m mounting a Tooltip using jquery. It is working 100%, the problem is that when I put it on the right side of the monitor it does not appear. How do I make him identify if he has space? And…
-
3
votes2
answers476
viewsQ: Focus with selected text
I have an input on I want it to have Focus and the text is already selected. I’m doing it like this: $(".autofocus").trigger('focus'); The problem is that the text is not selected. Does anyone know…
-
0
votes1
answer1942
viewsQ: how to format variable with jquery Mask
People use the plugin jQuery Mask Plugin v1.13.4 I have a div where I report a value as follows: $('#v_pg').text('PAGA R$ ' + valor_pago); Use Jquery to update the value inside the div. But I wanted…
-
1
votes1
answer13921
viewsQ: change text of div with jquery
Guys I have an input and a div': <input type='text' id='valor' name='valor'> <div id='valor'><b>R$ 1,00</b></div> Good need to exchange the value of 1.00 for the value…
-
3
votes4
answers353
viewsQ: use F2 to click on jquery button
I have the following button on my website: <button onclick='document.location="google.com"'>FINALIZAR</button> How do I make it click when I press F2? I wanted to do this using jquery.…
-
6
votes1
answer4278
viewsQ: How does Session’s duration work?
Guys I have a php file with the following code: // Define o limitador de cache session_cache_limiter('must-revalidate'); $cache_limiter = session_cache_limiter(); // Define tempo da sessão…
phpasked Hugo Borges 5,294 -
1
votes2
answers781
viewsQ: how to protect access to a php file?
Galea I am using the Jquery auto complete plugin. It works perfectly. I use jquery to call a php file that queries in the Databank. I call him that: $("#auto").autocomplete("Busca/Cadastros.php", {…
-
1
votes1
answer1277
viewsQ: put a load with jQuery on the button
I have a very simple button, but I wanted to know if it is possible to load the button when it is clicked. I wanted to use jquery. Follow the code of my button. .button { margin-top: 12px;…
-
0
votes3
answers623
viewsQ: pass form name to jQuery
I have the following function that sends a form: function enviar_formulario() { document.search.submit(); } When I want to call the function I do so: <select name='busca'…
-
6
votes4
answers790
viewsQ: capture value of < option > with jQuery
You guys, I got this select html. <select name='busca' onChange='link()'> <option value="1">OP1</option> <option value="2">OP2</option> <option…
-
3
votes1
answer92
viewsQ: Error comparing two numbers
I’m having a problem comparing two numbers, follow my code: // Valor $total_ch = 691.11; // Calcula valor total das contas a receber $result = $mysqli->query("SELECT SUM(valor) FROM…
phpasked Hugo Borges 5,294 -
0
votes2
answers46
viewsQ: removeClass with jQuery
Guys use the following code in jQuery to remove a class from a TR one-table. $("tr").removeClass('text-white'); It works very well, but it is removing the tr of all tables, I want to know how to…
-
1
votes1
answer254
viewsQ: Help with css menu
Guys I’ve put together a simple menu in css. But I have a problem. This menu is inside a div header that stays fixed on the screen. So if the menu has a lot of option it is not possible to select…
-
2
votes2
answers291
viewsQ: Problems recovering a json object
Well I have a php file that takes a Json array and retrieves the recipient field. The code is 100% working on my localhost. But when I put it online, it doesn’t work. Follow the json: { "data": {…
phpasked Hugo Borges 5,294 -
3
votes2
answers162
viewsQ: Error while capturing JSON field?
I’m making a mistake when I’m trying to reclaim a field of one array. Follows the json: { "data": { "messages": [ { "id": 1, "sender": "[email protected]", "recipient":…
-
0
votes1
answer254
viewsQ: Error with getimagesize in photo upload
I’m trying to set up a system that checks the mime type image when uploading. However. Follows the code: <?php $action = addslashes(filter_input(INPUT_GET,…
-
0
votes1
answer134
viewsQ: Check if there is value of an array element
Guys, I’ve put together the following code to read a array: for ($i_p = 1; $i_p < $array; $i_p++) { // Pega nome e valos da variavel $array_v_p = explode("=", $array_p[$i_p]); // Verifica se…
phpasked Hugo Borges 5,294 -
1
votes1
answer636
viewsQ: create link with file download
People create a link on my site so that the user can download a file. The link works 100%, however after the user clicks to download the file and downloaded to download folder from the computer. How…
htmlasked Hugo Borges 5,294 -
1
votes2
answers145
viewsQ: avoid error logging with mysql connection
Guys I make a connection to mysql using php. I do so: mysqli_connect($ip_bd_mysql, $login_bd_mysql, $senha_bd_mysql, $banco); The problem is that it is time that the name of the BANK is wrong, and…
-
1
votes1
answer204
viewsQ: capture value from another input with jQuery
Guys I set up a system that when typing the user name in an input, jQuery captures the name and calls a php file. Which in turn makes a BD query and fills a select list. Well the structure is like…
-
2
votes1
answer113
viewsQ: Link friendly with htacess
I made some settings in mine htacess. Check her out: Inside of my briefcase www I have a System folder and inside it I have a file called Login.php. I set up forever I type 127.0.0.1 apache always…