Posts by Tiago • 2,377 points
213 posts
-
7
votes2
answers600
viewsQ: Print only the last two digits of a year
How to make the year have only two digits? data = new Date().getFullYear(); console.log(data); console.log(data.substr(2,4));…
-
0
votes1
answer94
viewsA: Use % in input using jQuery Mask
For those who have the same question follows answer: https://igorescobar.github.io/jQuery-Mask-Plugin/docs.html#Translation $(document).ready(function() { $(".moeda").mask("#.##0,00%", { reverse:…
-
-2
votes1
answer94
viewsQ: Use % in input using jQuery Mask
How do I allow the % symbol inside the input using jQuery Mask? I ask this, because in the same field will have case that it is used as currency formatting 1.000.000,00 or just percentage 2.50%.…
-
1
votes1
answer51
viewsQ: Allow editing of input
When selecting the form of payment, the default rate is filled in, but this rate must allow editing it. I need to maintain the structure of my function, but at the same time allow the rate to be…
-
0
votes2
answers224
viewsQ: Check if there is a percentage symbol (%) next to the number
How to check whether or not the % symbol exists along with the value? The code below is a simplified version. The end result is that the variable taxas will or will not have the percentage next to…
-
0
votes2
answers196
viewsQ: Create plot fields
How do I generate plots using jQuery? I got the field: Valor Plots amount paid Best day to pay The code would take the valor and subtracted by valor pago with the remaining value would generate the…
-
0
votes0
answers24
viewsQ: Swap html tags before php Insert
I am creating a function so that HTML tags are changed when doing Insert, and then when retrieving. I’m doing it properly? CLASS class handle { public static function removeTag($target) { $output =…
-
0
votes0
answers24
viewsQ: php bind_param Forbidden
I need to do the insert of the contents made in the editor summernote. Only that the bind_param is blocking because the editor generates html content. Example: <p style="text-align: center;…
-
1
votes1
answer115
viewsQ: Add variable to textarea editor
I’m using the https://summernote.org/ to create a text editor. At the time of editing, it is necessary to add variables, which at the time of printing will be exchanged for the value corresponding…
-
3
votes1
answer76
viewsQ: File upload does not send
I’m trying to upload the file, but it doesn’t send to the folder. Shows the entire file sending process, receives in the database the new file name, but the file does not arrive in the server…
-
-2
votes1
answer43
viewsQ: Difficulties in logical OR operator
I’m having trouble assembling the logic operator OR || using javascript. Before sending you should check whether the input file was selected or if input url was typed. $("#form").submit(function() {…
-
2
votes1
answer313
viewsQ: Getting the Datatable Server-side ID
I’m using the Datatable Server-side, but I’m not sure how to catch the ID from my table to open the edit and delete pages. server-side $table = 'financ_receita'; $primaryKey = 'ID_Receita'; $columns…
-
1
votes1
answer179
viewsQ: Creating Json File with PHP. Taking out last comma
I am creating a Json file, but I need to remove the last comma from the pad referring to the last record. This json will be used in Datatable { "data": [ <?php foreach ($rs as $row): ?> […
-
0
votes1
answer75
viewsQ: How to Mount Grid Bootstrap
I’m trying to build a grid using the bootstrap doc but it’s very confusing! The maximum width of the iframe that loads the Forms is 868px. This is a simulation opening on the tablet standing and…
-
0
votes0
answers61
viewsQ: LEFT JOIN. GROUP BY. this is incompatible with sql_mode=only_full_group_by
I have a system I used in 2013. I am migrating to the latest version of php and am having this error: Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column…
-
0
votes2
answers259
viewsQ: Trigger Ubmit inside the iframe
It is possible to trigger a Submit via iframe? I’m opening the page php form. via iframe with modal. It looks like this: The green button is the Submit that comes from the form page.php. The blue…
-
0
votes1
answer25
viewsQ: Creating a function for highslide
I’m using the highslide to open the internal pages. What sucks is that he has the command onclick very large: <a class="btn btn-success" href="comercialContatoAdicionar.php?i=2a" onclick="return…
-
-4
votes1
answer50
viewsQ: Use function to compare value and mark radio buttom
I need to create a function to compare value and mark radio buttom. $checklistIni = unserialize($row_rsRegistros['checklistIni']); $a = join(',', array_values($checklistIni)); function…
-
1
votes1
answer119
viewsQ: Materializecss, change icon after attaching image in input file
I’m using materializecss to make a form. I would like help to make the once the image is attached, change that icon: It would just change the icon of: <i…
-
0
votes4
answers1262
viewsQ: Take array value
I need to get the values of the array where you have the photos. I managed to get what you name, but the photos I’m hitting head...rs Array Array ( [0] => Array ( [0] => Teste 8 [1] =>…
-
1
votes2
answers104
viewsQ: Select all checkbox separated by groups
How to select all checkboxes for each group? A function has to be done for each button or has a correct way to do this? $('#select-all-A').click(function(event) { if(this.checked) {…
-
-1
votes1
answer76
viewsQ: Insert td into tr using jquery
need to insert some TD within the TR using jquery. I’m doing it like this, but it doesn’t work $(document).ready(function() { $("table tbody .titulo").after("<td class='none'></td><td…
-
0
votes1
answer722
viewsQ: Update Ode.js in Ubuntu
I’m not able to update Node.js in Ubuntu. I did the installation, but it appears that the version was installed: Node = V8.10.0 Npm = v5.3.2 On the site it says that the latest version is 10.16, why…
-
0
votes1
answer51
viewsQ: Creating several Snippets
Good afternoon. I looked here (/search?q=%5Batom%5D+Snippets), but I couldn’t get help, so I decided to read this post. I currently use phpStorm, but it is very heavy, so I will start testing the…
-
0
votes0
answers55
viewsQ: Check if the mouse or keyboard has been triggered
I’m starting at the Electron, with that I need some help. How do I detect if the keyboard or mouse has been triggered? If one of the two has not been touched in less than 1 minute run a command.…
-
0
votes1
answer26
viewsQ: Error with php array
I’m putting together an array, but it seems I’m doing it wrong because it doesn’t work properly. $checklisIni = array( $_POST['checklistIni0'] => $_POST['checklistNome0'], $_POST['checklistIni1']…
-
0
votes0
answers14
viewsQ: Serrated image when using class.upload.php
I’m using the class class.upload.php to upload the images. I inform you of the quality I desire $handle->jpeg_quality = 75;, but still the image is getting serrated. Link:…
-
1
votes2
answers108
viewsQ: Mark only one radiobutton for each line
I have a list, where by line I will mark the radio button stating: HAS, DOES NOT, BROKEN. How do I do and what is the correct way to send this to BD Mysql for later on the edit screen capture?…
-
1
votes1
answer46
viewsQ: Using select the same select more than once
I need to wear the same select other times, but I’m not getting it. It shows the result in the first while, but for the rest not. On the same screen I will repeat by 4x, because I am referring to…
-
1
votes1
answer42
viewsQ: Perform redirection by getJSON
I’m making the login screen using getJSON. I’d like to know how I can do the redirect once it’s successful. The idea of redirecting login.php is not to get too exposed the Javascript code. login…
-
0
votes1
answer569
viewsQ: Go to next DIV
How do I navigate between Divs using jQuery? This DIV will be exeibida on the mobile phone or tablet on screen, IE the entire viewfinder will appear 1 DIV at a time. When clicking the button, go to…
-
0
votes2
answers201
viewsQ: Full screen image using Materialize’s Parallax
I’m starting with Materialize, and I’m having a doubt. How to leave the background image of parallax? Currently, the function image is in the middle of the screen. CSS <style>…
-
1
votes0
answers64
viewsQ: Save scratched image inside the server and send the image name to Mysql
I’m using this code to draw on the screen https://github.com/szimek/signature_pad How to save the image inside the server and send the image name to Mysql? Example directory:…
-
3
votes1
answer355
viewsQ: Run Html5 inside Webview android
I have a page in Html5, where I would like to open it in Webview android, but it seems that Webview does not interpret javascript. There is a better Webview? See my code: Mainactivity package…
-
1
votes1
answer525
viewsQ: Create a fullscreem and untitled splash
Hi, I’m initiating on Android Studio, and I’m having a question. How to make my splash stay with the image in full screen and without the title bar? My image PNG has 750 x 1334. Follows my code:…
-
-1
votes1
answer845
viewsQ: Save form in txt file
It is possible to save a form in TXT file? I will explain... I have a site for data protection like NAME and EMAIL, only. I would like to save in TXT every new insertion. So: 1| Fulano -…
-
0
votes1
answer69
viewsQ: Recalculate when changing date or clicking the radio button
Hello, How to Recalculate Values FEES AND SERVICES and the SUM OF FEES AND SERVICES when making the field change dataFim or if it is clicked on radio button = situacao_chegada. I thank you all.…
-
0
votes2
answers422
viewsQ: Calling event inside another jquery event
I would like to call an event within another event.. Would be the Event B within the else if ($(this).val() == "C"), of Event A COMPLETE CODE: https://jsfiddle.net/yswdr7on/ Event A:…
-
1
votes3
answers1207
viewsQ: Pick selected radio button value and start IF, ELSE IF, ELSE
When loading the page, I need to check which radio button is selected. Then start the IF, ELSE IF, ELSE. html <input type="radio" name="situacao" id="situacao_reserva" value="R" /> Reserva…
-
0
votes1
answer600
viewsQ: Month with two digits in getMonth, but giving error
I’m trying to put double digits on getMonth, but it’s going wrong. What I’m doing wrong? var data = new Date(); var dia = ("0" + data.getDate()).slice(-2); var mes = ("0" + (data.getMonth() +…
-
0
votes1
answer473
viewsQ: Make the input edge flash
I’d like to signal when the input of a form be wrong. I’m wearing jQuery. In my head I imagined this: if ($("#campo1").val() < 0){ var i; for (i = 0; i < 10; i++) { $('#campo2').attr('style',…
-
1
votes1
answer2435
viewsQ: Possible combinations of (A to Z) and (0 to 9)
Good afternoon, How many combinations can I get using (A to Z) and (0 to 9), using only 3 letters and 3 numbers, thus becoming: AAA-000 And what’s the safest way to generate those numbers and…
-
0
votes1
answer333
viewsQ: CPF and CNPJ Mask and Validator - Error
Hi, I found a site where you mark and validate the CPF and CNPJ Link. I’m testing, but it doesn’t seem to work. I’m doing it wrong or have some problem in the original code?…
-
1
votes0
answers44
viewsQ: Show real-time position on map
How to display the current position in real time on the map? found this code on the internet where displays the markings on the map: <div id="mapa" style="width:100%;height:100%;"></div>…
-
-1
votes1
answer98
viewsA: Whire between start and end time with 30-minute multiples
For those who have the same question, I found a site that had a similar model, so I just adapted it to what I wanted. Pity that the code is great...rsrs, I believe that a person with knowledge…
-
0
votes1
answer98
viewsQ: Whire between start and end time with 30-minute multiples
Hello. How to make a While within an hour initial / final and in 30-minute multiples. Example: <option value="08:00">08:00</option> <option value="08:30">08:30</option>…
-
0
votes1
answer42
viewsQ: Display value in While only in the first record
I’m doing a while, but I need the value to be displayed active only in the first item <div class="item ACTIVE">. <div class="carousel-inner"> <?php $exibir = "active"; do { ?>…
-
0
votes0
answers99
viewsQ: Load checkbox marked and calculate them
I have an imputs field, with values. I made the page add like this: HELP I NEED: On the edit page, when loading the page, list the checkbox options marked. $(".c").on('change', function() { var…
-
1
votes1
answer22
viewsQ: Sum values of alt attribute by each
I would like to know how to sum the values of the alt attribute. var valor; var soma; $("input[name='opcoes[]']:checked").each(function() { if ($("input[name='opcoes[]']").is(":checked")) { $('#' +…
-
2
votes1
answer91
viewsQ: 301 htaccess redirect with and without www to HTTPS
Good morning. I’d like your help. I need to make an htaccess that works like this: Redirect 301: "site.com" or "www.site.com" for https://www.site.com If the person comes from a google url, and does…