Posts by abcd • 1,284 points
81 posts
-
0
votes2
answers47
viewsA: Select separate rows in SQL by adding deletion with different keys
The final result was: select * from wp_posts u where u.ID in ( SELECT DISTINCT(p.ID) FROM wp_posts p INNER JOIN wp_postmeta m ON p.ID = m.post_id WHERE (p.post_status = "wc-processing" AND…
-
0
votes2
answers47
viewsQ: Select separate rows in SQL by adding deletion with different keys
I have two tables, one contains the chave primária, and the other takes this key in the column post_id. In the second column, she can repeat several times with the same post_id. I need to take the…
-
1
votes0
answers16
viewsQ: Search for lack of ID in two WOOCOMMERCE tables
I need to search and return todos os pedidos who are in status processando, and who possess the column meta_value in vazio or inexistente in another table. 1º - In wordpress, I will check all…
-
0
votes12
answers79762
viewsA: Formatting Brazilian currency in Javascript
I developed this function to fit any monetary system in the world. Basically it applies by adding 3 important data: var decimais = 2; - Número de casas decimais após a vírgula, deixe em 0, caso…
javascriptanswered abcd 1,284 -
-1
votes1
answer62
viewsQ: Function Sort() makes attribute data="" Undefined
I’m using the function sort() to sort some Ivs. But I’m having some problems. I use the attribute data="" to add a JSON. But because it has many bytes and is used on thousands of Ivs, I prefer to…
-
1
votes2
answers707
viewsQ: Catch Value of input number
I have a input of the kind number, and I would like it to accept only whole numbers. Hence I am creating a function that limits the number of characters and replaces the digit that is not number…
-
-4
votes1
answer2182
viewsQ: Regular expressions limit number
With regular expressions, such as limiting a minimum and maximum number of a string. I have a field where I can add 1 to 4 characters. But the numbers should be from 1 to 1000. This way you cannot…
-
2
votes2
answers1352
viewsQ: Validate field to accept integer and decimal numbers
How to do with Javascript, so that one input text type accepted only whole numbers and decimal numbers up to 2 decimal places. Ex: 1 - true 1,1 - true 1,11 - true $("body").on("input", ".number",…
-
0
votes1
answer330
viewsQ: Screen resolution (DPI) css
I intend to do a layout of a book, and there are thousands of information. I can look them up on a page and add them to the comic book. Later he would pull them, do some calculations, and return…
-
1
votes1
answer53
viewsQ: FILTER AND COLOR CSS
I need to pass a file to print in another color. In the specific situation, I just need to go on inspecting elements and change the color. I have 3 separate files, one of them I can change the…
-
0
votes1
answer53
viewsQ: Unable to validate "Undefined" - JS
I have an object, where in some requests the same returns without certain values. The problem, that when trying to validate the values, it generates error: Note: When analyzing, I realized the…
javascriptasked abcd 1,284 -
1
votes2
answers1634
viewsQ: Search the city for DDD
I’m making an app that has phone numbers. To make life easier for users, I would like to return the DDD that does not appear in some numbers. Does anyone know any API, or anything like that to…
-
0
votes0
answers151
viewsQ: Multiple requests with ajax - Jquery
I have a page containing 1 (one) to 50 requests. So I use a loop that makes the call. By the speed of my internet, in a matter of 3 seconds I should upload all the requests. But it’s done one by…
-
2
votes0
answers22
viewsQ: Smaller number array length than correct - JS
I am using an array, where when giving a console.log The same shows 2 items inside, just below in another console.log with length it marks 1, but it is certain to have 2 items in the array. Code:…
-
0
votes1
answer102
viewsQ: Chartjs rotate text
I would like to know, I have a text created with canvas in chartJS]. How to rotate the text, the same being vertical in the center of the line. I tried with Rotate, but the text disappeared from the…
-
4
votes3
answers2168
viewsQ: Validate name field - Jquery
I would like to know how to validate a name field, to accept: Letters (Upper and Lower Case) Numbers Spaces Maximum 30 characters There can be no double space There cannot be space at the beginning…
-
3
votes1
answer168
viewsA: Get all parent elements
To solve the problem I performed the following procedure: $(b).find("tbody tr:first").siblings().andSelf().each(function(a,b){ console.log(b) });
-
3
votes1
answer168
viewsQ: Get all parent elements
I’m in a situation where I have a table that doesn’t have class. Staying like this: <table> <tr> //Pegar aqui <td> //Aqui continua a tabela </td> </tr> <tr>…
-
-1
votes1
answer372
viewsQ: Htaccess accept bar at end
I would like to know how do I accept my URL bar at the end /, since this way, when I add bar, the images and css are based on the URL with the parameter, generating error in loading.…
-
1
votes1
answer214
viewsQ: Develop layout with 3 columns
Suppose I have one layout containing 3 divs side by side. The first of these divs has a fixed size of 100px, the third div cannot have a fixed size as it will depend on the text inserted in it,…
-
0
votes0
answers173
viewsQ: Return Json api accent
I’m wearing a api which returns data in json. All the accents are coming modified. J\u00FAnior With php, what function I can use to reverse this situation? **Though he had already torn it apart, he…
-
-1
votes1
answer64
viewsQ: Pass $_SESSION in load() jquery
I wonder if it is possible to pass one $_SESSION for load() jquery. I have a page, where I call for another load, but I need to get the value of $_SESSION on the second page, but it’s not working,…
-
1
votes1
answer375
viewsQ: Translation PHP or JS
I have a page where I must translate. At first I had thought of translating with JS, to do something dynamic, IE, the person would click the button, I would call a file . json and perform…
-
6
votes1
answer334
viewsQ: Time Zone Javascript
I have an app, where I get Time Zone from PC. var d = new Date() var n = d.getTimezoneOffset(); In my situation, it returns 180, I believe it is -3 Hours (180 / 3). Thus, I have doubts about which…
javascriptasked abcd 1,284 -
2
votes1
answer79
viewsQ: HTTPS in wordpress
I bought a certificate and passed my http url to https in wordpress. I used the following ways: Go to "Settings" of your Wordpress, in "General" change the "Address Wordpress (URL)" and "Website…
-
2
votes2
answers527
viewsQ: Table with width 100% and Scroll
I have a table, where it fits the content you have. That way, I added a width: 100%. She’s the size of a window. I gave an overflow-x: auto, so she should create a scroll, when smaller. But that’s…
-
3
votes1
answer459
viewsQ: Validate google key api
I am making an application, where I will have to validate a google maps API key. The problem is that I do not know what standards it follows: AIzaSyA-OlPHUh2W7LUZXVjQjjxQ8fdCWdAASmc Here it is…
-
1
votes1
answer394
viewsQ: Divs of window size
I have a map below a div. My problem is that when I add altura 100%, he takes the value of body, below the primeira div, appearing scroll. Example: jsfiddle <!DOCTYPE html> <html>…
-
0
votes0
answers129
views -
1
votes2
answers695
viewsQ: Validate string in number with php
I come across the following situation. I have a string and have to validate its value. That way, I have to check if it is integer. Then I have to pass the string to number and check if it is integer…
-
0
votes2
answers117
viewsQ: Should I validate data in javascript and php?
I have a file that sends some data to another page with ajax. These data are mostly numbers, and are not stored anywhere. Just picked up some data on inputs and send to the archive php with ajax,…
-
3
votes1
answer1246
viewsQ: Pick selection event + selection movement - Jquery
I would like to know how to catch the event with Jquery text selection + drag. An example of what I am saying, is to select a text and with the left mouse button pressed, move the text sideways. How…
-
0
votes2
answers322
viewsA: Redirect parameters . htaccess
The solution found by me and that worked in wordpress, was the use of native functions. because in . htaccess did not work: add_action('init','custom_login'); function custom_login(){ global…
-
-2
votes2
answers322
viewsQ: Redirect parameters . htaccess
I would like to know how to redirect a url with parameters on .htaccess . I have a URL that can receive several parameters and I want to redirect it to another page with these parameters. The page…
-
0
votes1
answer67
viewsA: Zoom repeats multiple google maps
I was able to solve the problem by removing this option: google.maps.event.addListener(infowindow, 'domready', function() {}); In fact, I adapted it to my situation, because every time I called it…
-
1
votes1
answer67
viewsQ: Zoom repeats multiple google maps
I have a infowindow on my map. Every time I give a dragstart I close this infowindow. My problem is I give one infowindow.open(map, marker);, to open the infowindow. Every time I do that, he adds…
-
0
votes3
answers268
viewsQ: Stop multiple jquery events
I have the following situation: $('input[name=buscar]').on( "keydown keypress keyup", function( event ) { console.log('foi'); }); Every time I type, all 3 events are triggered. How do I make only 1…
-
2
votes1
answer1072
viewsQ: Keyboard event does not work Jquery
I wonder why this event does not work with a few keys. The key I wish is the seta para baixo (40), but this one doesn’t work. Already the keys Enter (13) and the letras e números work normally. I…
-
1
votes0
answers80
viewsQ: Security tips for uploading images with php
I would like tips for a safe upload of images with php. Several users will have access, what security tips you would give? On the internet, I found the following tips: 1º - Validate file size…
-
1
votes0
answers60
viewsQ: Redirecting without www
How I proceed in the following situation: My Urls were ancient from blogger, and possessed the WWW. I went to the Wordpress and removed the WWW. Today I got a message from Google WEBMASTER: Increase…
-
2
votes1
answer67
viewsA: Add elements with Jquery
I was able to accomplish what I wanted: $("p").slice( 2, 5 ).wrapAll( '<div></div>' );
-
0
votes1
answer67
viewsQ: Add elements with Jquery
I would like to know how to add above and below several paragraphs with jquery. Say, I have to take the third paragraph and add a <div> and finalize the </div> in the penultimate…
-
0
votes1
answer98
viewsQ: Export Blogger Images to Wordpress
I am migrating my blog from Blogger to Wordpress. As I do with images, because I will export them and then modify one by one. Should I redirect 301? Is that possible? How to proceed in this…
-
3
votes1
answer339
viewsQ: Add item to administrative menu to save custom value
I’m trying to add an ad in the middle of posting Wordpress. <?php $paragraphAfter = 3; //display after the first paragraph $content = apply_filters('the_content', get_the_content()); $content =…
-
0
votes0
answers1191
viewsQ: Load DLL SSL - Delphi
I’m having trouble downloading files with https:/protocol. Looking for information, I was informed that I should load the DLL. I found people showing "how it carries", but as I have never performed…
-
-1
votes2
answers4623
viewsA: How to resize image
So I was able to scale it. ATT procedure TForm1.Button2Click(Sender: TObject); var bmp: TBitmap; jpg: TJPEGImage; scale: Double; widthL, HeightL, pt1, pt2, pt3, pt4: integer; verdd : boolean; begin…
-
1
votes2
answers4623
viewsQ: How to resize image
I would like to know how to resize images in Delhi. I will receive images both in JPG, JPEG, GIF (ANIMATED) and PNG, then I have to resize to a Timage, but I’m not able to do it, because I take a…
-
2
votes1
answer1235
viewsQ: Validate URL Regular expression
I would like to know the following, I have a regular expression to validate Urls, but I would like it to not only validate the URL, but release it if the URL is empty or empty: I believe that was…
-
1
votes1
answer65
viewsA: Validate regular expression categories
I performed tests here, and I believe this is the answer to my question: ^[\s]*[\w]+[\s]*(?:,[\s]*[\w]*[\s]*)*$ Even though she accepts 2 commas together, I let the user make a mistake and then get…
-
2
votes1
answer65
viewsQ: Validate regular expression categories
I would like to know how to validate categories with regular expressions. So I have a list of categories separated by comma. Each word must have a maximum of 20 characters, I need to validate every…