Posts by GilCarvalhoDev • 769 points
34 posts
-
0
votes1
answer28
viewsQ: Extender Selector Parent
How do I extend settings from a Parent selector? (only it) ul { background: red; /* Não incluir esse! */ } #menu { ul { margin-left: 20px; ul { @extend #menu ul; // <= Dessa forma dá erro :( } }…
sassasked GilCarvalhoDev 769 -
-1
votes1
answer19
viewsA: Ajax error in the console when sending the form
In ajax, instead of using new FormData(), utilize $( this ).serialize(). I’m not sure if the this is referring to the form, but in case of problems, try $( self ).serialize(), and you should create…
jqueryanswered GilCarvalhoDev 769 -
3
votes1
answer41
viewsQ: Semantics for HTML5 sub-pages
It would be correct to use the code as below? <article> ... <section> <article>...</article> <article>...</article> <article>...</article>…
-
2
votes1
answer430
viewsQ: Google Maps API (server-side) limits
I am designing a system in PHP, which will access the Google Maps Geocoding API via URL (Curl). This system will be sold to different clients. All sold systems will be on the same server. Each…
-
1
votes1
answer96
viewsQ: Create an event / plugin for Composer
I have developed a Webserver Portable and am also creating a Portable console to use Composer. I have a problem. I need to create a plugin for Composer. I need that when downloading any package with…
-
3
votes1
answer10539
viewsA: How to take the value of a cell with dynamic reference
I discovered by chance digging into the functions of Excel =INDIRETO("B"&A1)
excelanswered GilCarvalhoDev 769 -
3
votes1
answer10539
viewsQ: How to take the value of a cell with dynamic reference
For example: In the cell A1 will contain a number, which will be the line to be considered. In the cell A2 need a function to display the value of a cell as typed in A1, something like =B"A1". As an…
excelasked GilCarvalhoDev 769 -
-1
votes6
answers4503
viewsA: If null, Nan, false and Undefined in Javascript
if ( ! variavel ) { console.log("Variável inválida"); }
javascriptanswered GilCarvalhoDev 769 -
0
votes1
answer119
viewsA: How to search image using javascript?
See if it helps you? Anything goes down there commenting that we adapt the code. function verifica() { if ( $('img[src="https://i.dstatic.com/images/glyphish/837-palette-selected.png"]').length >…
javascriptanswered GilCarvalhoDev 769 -
0
votes2
answers48
viewsA: Selector does not take another selector
Upgrade your CSS to support different browsers, but CSS3 Transitions is not supported by versions below 10 IE. To learn more, visit: CSS3 Transitions Follow the updated code: .cubo {…
-
-2
votes1
answer280
viewsQ: Force open Facebook/Twitter/Google in browser
I created a mobile app that is accessed via browser (a web app, a common website). In it I have a button that opens via window.open() a page on Facebook, but when I click the button, it calls the…
-
1
votes0
answers369
viewsQ: Open Facebook in browser
I created an application for Facebook that, briefly, at a certain time it uploads a photo to the visitor’s album, and then use the var janela = window.open({urldafoto}) to open this photo in the…
-
1
votes1
answer234
viewsA: How to make a serialize of certain part of the form?
I tested it here and it worked, with the same idea I mentioned. $(function(){ $("#enviar").on("click", function( e ) { e.preventDefault(); alert( $("#formulario").find(".active [name]").serialize()…
-
3
votes2
answers10563
viewsQ: Format/mask CPF in Mysql or PDO
I have a field "Cpf" in my table. This field can be of type INT or VARCHAR, in case you need to change to solve my problem. In it there are only numerical values, without the dots and without hyphen…
-
2
votes1
answer259
viewsA: How to get specific string text with Regex?
I don’t know C#, but I made a javascript code using Regex that might give you some idea. If you have any more implementation, say we will implement this code: (I edited and made it simpler) function…
-
2
votes2
answers436
viewsA: Group content by month
I left commented where I made the changes. Follows: $dados = Connection::select("SELECT *,date_format(`data`,'%d/%m/%y') as `data_formatada`, date_format(`data`,'%M') as mes FROM `noticias` where…
phpanswered GilCarvalhoDev 769 -
2
votes6
answers3120
viewsA: How can we not allow numbers in a textbox?
I made a simple code. See if it helps. document.getElementById('texto').addEventListener( 'keyup', function() { this.value = this.value.replace( /[0-9]*/g, '' ); }); <input type="text" id="texto"…
-
1
votes0
answers67
viewsQ: Change Facebook cover periodically
I need to create a "Health Campaigns" app for Facebook. This application would have to change the cover of all users who added this application, every month, IE, will have one campaign per month. I…
-
2
votes3
answers4206
viewsQ: Catch callbacks from an ajax
For example: var teste = $.ajax({...}).done( function() { alert('Callback Done!') } ); Where does this function defined in done() go? I’ve searched the entire object using the console Chome, but I…
-
1
votes1
answer438
viewsQ: Database loca + Node.js
I am working on a project using Node.js. I need to use a local database, but I wanted to reconcile performance with security, and if possible, portability as well. I only know MS Access (.accdb) and…
-
1
votes0
answers41
viewsQ: Format JOIN result object
[PROFESSORES] id | nome | 1 | Gilson | [CURSOS] id | nome | professor_id 1 | Photoshop | 1 2 | AutoCad | 1 I would like that in the result of my SELECT, the object comes in the format: (Not…
-
2
votes2
answers4566
viewsA: Make 'Ubmit' button expect action from an Alert?
The ideal is to call the validation function on onSubmit form, and if something goes wrong in the validation, return false, so the form is not sent. function valida() { if( !…
-
1
votes2
answers332
viewsA: Read string json in php
First you have to turn the string into an object using the json_decode( $string ) of PHP. And now, in your code, the item of the object to be traveled is the data and not the city. You can also use…
-
2
votes1
answer223
viewsQ: Memory consumption (HTML element x jQuery objects)
I’m creating a system where I need to record many DOM elements in variables. Is there any difference of memory consumption in writing HTML elements x jQuery objects? HTML elements: var elemento =…
-
0
votes2
answers763
viewsA: Jquery consuming Web Service Rest
You must scroll through the items of the array by grabbing each cep of the objects. Next: for( var index in data ) { alert( data[ index ].cep ); }
-
2
votes2
answers757
viewsQ: NULL value in database x performance
I always used database (Mysql) for small projects and never cared about the option "NULL when empty", IE, was blank even. Now I’m designing a big system, I’d like to know the concept of using value…
-
0
votes1
answer127
viewsQ: Style editable square "balls"
When drawing an editable square on the map, those "dots" appear in the corners, which are the clickable areas to resize the square. function initMap() { var map = new…
-
2
votes0
answers61
viewsQ: Create polygon tool
I need to create a tool that draws a Polygon using the existing polygon tool. Would have a field LAT and LNG, where he would type the values and he adds the points alone, without having to click…
-
-2
votes6
answers8335
viewsA: How to know if the form is sent
Just a hint: Instead of checking if the fields were sent in blank, it would not be better to prevent this from happening? function valida() { var nome = document.getElementById('nome').value,…
phpanswered GilCarvalhoDev 769 -
1
votes1
answer48
viewsA: How to break an image into pieces using javascript and place it in their respective Ivs
Only CSS is enough https://fiddle.jshell.net/o0g1bqzc/ Javascript can even be used to take an image and generate CSS. But in the example you only used CSS…
-
0
votes2
answers1368
viewsA: Responsive form in HTML?
I use my Forms like this: <form> <p> <label> <span>Nome do campo</span> <input type="text"/> </label> </p> </form> So I have more options on how…
-
2
votes1
answer171
viewsA: Loop in Jquery autocomplete
I added line 17 and lines 32 to 45. http://jsfiddle.net/swqwLfxu/42/
-
0
votes2
answers130
viewsA: Is it possible to set the font size dynamically?
You have not demonstrated your real need, but why use the class to do this if you can also use the "style attribute" ? <div style="font-size:20px"></div> <div…
cssanswered GilCarvalhoDev 769 -
9
votes3
answers16389
viewsA: Hover effect on one element affect another
Noting that the h1 is inside the li, you can do with pure CSS. For example: li:hover h1 { /*aqui o seu estilo para H1*/ } See working: li:hover h1 { border: 2px solid #FFFF00; color: #ff0000; }…