Posts by Thiago • 901 points
54 posts
-
1
votes1
answer40
viewsQ: How to use jquery after() in javascript?
How do in javascript the same equivalent function in jquery after? I want to add one div right after the other, so <div id="div1"></div> <div id="div2"></div> <!-- div 2…
-
2
votes1
answer152
viewsQ: How to use a Google font when printing?
I’m using this source: <link href="https://fonts.googleapis.com/css?family=Meie+Script" rel="stylesheet"> font-family: 'Meie Script', cursive; It works normally on the page. But when printing…
-
0
votes1
answer448
viewsA: How to validate URL in php?
I solved my problem, guys, http://php.net/manual/en/function.parse-url.php. Example: $url = parse_url('http://facebook.com.br/imagens'); unset($url['host']); unset($url['scheme']); if (count($url))…
-
0
votes1
answer448
viewsQ: How to validate URL in php?
How do I validate a php URL? Example: I need the user to type a url, e.g., google.com. However I need the url to be in the format: www.google.com and if it type any format other than this returns an…
-
0
votes2
answers108
viewsA: How to delete array value by one of the elements?
I got it using the following: foreach ($array as $key => $val) { if ($val['chave'] === 'imagem_5adbeb0d0f382' ) { unset($array[$key]); } } Thank you all!!!…
-
0
votes2
answers108
viewsQ: How to delete array value by one of the elements?
I have the following array: array(3) { [1]=> array(3) { ["ordem"]=> string(1) "2" ["img"]=> string(66) "banner.jpg" ["chave"]=> string(20) "imagem_5adbea7baefaf" } [2]=> array(3) {…
-
0
votes1
answer100
viewsQ: How to add information in php array?
Guys, I have the following php array: $postFields = array( 'email' => '[email protected]', 'token' => '123456', /*INSERIR AQUI*/ ); Where is written "insert here", I need to insert additional…
-
0
votes1
answer278
viewsQ: How to access JSON return position with Javascript?
How do I access some position of the array below depending on the user’s choice in a select? For example: if it selects option 11 on select i display the value of the key installmentAmount from…
javascriptasked Thiago 901 -
1
votes1
answer85
viewsQ: How to catch the Elements of a json?
I have the return of a requisicao in the following format: There in options there are the types of cards the json returned. I want to get each of the types without manually typing their name.…
-
0
votes1
answer115
viewsQ: Clone hosting folder for bitbucket
How do I clone a folder that’s on my hostgator hosting for a Bitbucket project and after the changes go up to the hostgator again? It is possible? Note: I have ssh access to the hostgator and can…
-
0
votes1
answer57
viewsQ: Function javascript work with dynamically generated elements
How do I make this function work with dynamically generated elements? It only works when and element is loaded along with page, but when Gero a div with ajax the function does not work!…
javascriptasked Thiago 901 -
1
votes3
answers803
viewsQ: Populate array dynamically
Guys, I need help. I have the following fixed structure in php: 'labels' => array('Jan','Fev','Mar')...... But I want to fill these internal values of the array dynamically, or I will search the…
-
0
votes0
answers165
viewsQ: Program expect response requisicao ajax?
Guys, I need to do several ajax requisicoes inside a loop and the program can only continue after the request is completed. I am using "async:false", but it hangs the whole page while waiting for…
-
0
votes1
answer214
viewsQ: Do not repeat any printing page
Ola, I’m having a problem. I don’t want to print the table header (thead) on each printout sheet and currently every time I print the table and it doesn’t fit on the sheet the table header repeats.…
-
0
votes3
answers706
viewsQ: Read a Json object with javascript
In a requisicao ajax it returns me the following: { "og:locale":"pt_BR", "og:type":"article", "og:title":"Um titulo qualquer", "og:url":"http:\/\/www.umsite.com.br\/uma-url\/" } My requisica:…
-
0
votes0
answers38
viewsQ: Query Mysql comparing to PHP array
I need to mount an SQL query to search for more than one value. Type: SELECT * FROM tabela WHERE id = 10 OR id = 20 ..... But I found this option: SELECT * FROM tabela WHERE id IN (' . implode(',',…
-
2
votes4
answers730
viewsQ: Hover CSS affect another element
I have the following code snippet <td class="aluno" style="text-transform:uppercase"> Fulano <a class="obs-aluno" href="#modal-obs" style="display:none"> Link </a> </td> I…
-
18
votes8
answers2184
viewsQ: How to know all possible combinations of 0 and 1 in Java?
What possible combinations can I get only with numbers 0 and 1 using 5 digits (digits)? For example: 00000 00001 00011 ... 11111. I wanted to keep all the combinations, but I don’t know how to find…
-
1
votes1
answer113
viewsQ: Relation between structs in C
I have the following scenario: typedef struct Unidade{ int cod; } und; typedef struct Produto{ int cod; char nome[100]; und unidade; } prod; As you can see I have a unit type variable inside the…
-
0
votes2
answers1718
viewsQ: Picking numbers separated by a dot and comma in PHP
Hello, I have a sequence of numbers in a string, example: 1;2;3;4;5;6. I would like to take each number and store them in an array of integers in PHP. Someone has a suggestion?
-
3
votes0
answers192
viewsQ: How to hide key api from client side?
Hello, I’m working with the youtube api and at the moment the client makes the requests I need to put a developer’s published key in the url (in this case I am), ex:…
youtube-apiasked Thiago 901 -
1
votes1
answer450
viewsQ: Is it possible to dynamically instantiate Arraylist in java?
For example, if I need to create arraylists for each person q register in my system: ArrayList pessoa1 ArrayList(); ArrayList pessoa2 ArrayList(); ArrayList pessoa3 ArrayList(); The problem is I…
-
0
votes0
answers54
viewsQ: Send String Arraylist via UDP in java
Hello, the question is this: How do I send an entire Arraylist via Server UDP to the Java client? Can send a String only at a time and works very well. However, I don’t know how to send a String…
-
2
votes1
answer1133
viewsQ: Reference struct inside another in C
I need there to be a reference to struct inside the other. But in the example below as the struct TAnimal does not yet exist, her reference in struct error player. How to get around this situation?…
-
1
votes2
answers359
viewsQ: Relate structs in C
Hello, I have to do the relation between structs in a work in C. I have a player struct with the name and code fields and an animal struct that has the name and code fields. I can normally insert…
-
0
votes1
answer126
viewsQ: Enable function when publishing wordpress scheduled post
Ola, have a wordpress site that I schedule posts. What I want is that after it is published, activate a function that does something. I saw that you can put functions.php but I don’t know what I…
-
3
votes3
answers12678
viewsQ: How to create div with javascript
Guys, I have the following situation: <div class="corpo"> <div class="esquerda"></div> <div class="meio"></div> <div class="direita"></div> </div> I…
-
1
votes3
answers186
viewsQ: How to pick up middle item with javascript or css?
Guys, I have the following situation: <div class="corpo"> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div> This Divs…
-
0
votes1
answer119
viewsQ: Search using query_args() in wordpress
I am using the following query: $args = array( 'post_type' => 'post', 'meta_query' => array( array( 'key' => 'site_name', 'value' => $busca, 'compare' => 'LIKE' ), ), );…
-
1
votes3
answers2089
viewsQ: Get the site name in the javascript url
Guys, I got this: I can have the following situations from a url: www.exemplo.com.br or http://exemplo.com.br or http://www.exemplo.com.br and also with HTTPS. I would like to take only the word…
-
1
votes1
answer4608
viewsQ: How to compare a date of type datetime?
I have a date in a patient table in the Sql Server database in the following format: datetime (01/01/2016 12:50:00.000) I want to check if the patient’s appointment time has arrived. For example:…
-
0
votes5
answers666
viewsQ: Upper DIV occupying entire screen
Guys, I got this: <div class="tudo"> <div class="superior"></div> <div class="inferior"></div> </div> I want the top div to occupy the entire screen independent…
-
4
votes3
answers533
viewsQ: How to compare Mysql to an array?
I have to make a comparison MySQL with an array of numbers. For example: I have a array whole-assed: $inteiros = array(); And I have to return the ids of my class table with this array, thus: SELECT…
-
2
votes2
answers812
viewsQ: Check for repeated numbers between two php arrays
Ola, I have two arrays in php and I need to check if there is a number in array 1 that repeats with some number in array 2. I don’t need the numbers, I just need to know if it repeats! How to do?…
-
0
votes1
answer773
viewsQ: Picking up element in a json array
I need to get the element authorDisplayName of that array json. He’s the return of a requisition ajax. How to take only the element with jquery or javascript? "kind": "youtube#commentThread",…
-
2
votes2
answers2611
viewsQ: How to call an ajax inside another?
need to call another ajax request within a condition. But the outside ajax does not wait for the inside to finish. Example: I wear this $.ajax({ type: "GET", url: "MINHA_URL", success: function (e)…
-
1
votes1
answer98
views -
0
votes1
answer394
viewsQ: how to make a POST request?
The thing is, I’m using the google api to build an app. However, I got to this part below and I can’t do it at all. How do I do this POST q it asks me? I already have all the parameter data. Below…
-
3
votes2
answers700
viewsQ: Call ajax inside another
How to wait for the return of an ajax to continue the requisicao of another? I got the following: $.ajax({ type: "GET", url: 'http://uma_url_qualquer.com', success: function (e) { var item =…
-
5
votes1
answer1215
viewsQ: Calculate difference between dates up to javascript minutes!
I have the following date on an input: 25/09/2016 11:20:00 for example. I need to calculate the difference for the current date and return at least to the minutes. It can be in jquery or javascript.…
javascriptasked Thiago 901 -
4
votes2
answers317
viewsQ: Catch string between bars
I need to get the string inside the last two bars (heDA6Yu7hsc) with javascript. How to proceed? https://i.ytimg.com/vi/heDA6Yu7hsc/img.jpg
javascriptasked Thiago 901 -
0
votes1
answer423
viewsQ: Hide proven javascript code
I access an external google link and use a particular key, for example: $.ajax({ type: "GET", url:…
javascriptasked Thiago 901 -
2
votes1
answer427
viewsQ: Access url with ajax and get return
I have the following link to access: https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=5&q=brksedu&key={YOUR_API_KEY} When accessed directly it returns an array like…
-
2
votes1
answer709
viewsQ: Take items from the JSON array
Guys, I am working with youtube api and a query returns me the json below. How do I pick and print each item separately? For example I want to print each "videoId". How do I? { "kind":…
-
0
votes0
answers168
viewsQ: List files in directory with ajax
Is it possible to list the files of a directory with ajax and php? I did some research but I can’t find that combination! $path = "/home/projetoc/public_html/filemanagerarquiv/files/"; $diretorio =…
-
2
votes2
answers12115
viewsQ: Create folder in php
I have to create a folder on the online server. The file that creates folder is on site.com.br/example/.php file I need to create the folder at the root of the site, example:…
-
1
votes4
answers559
viewsQ: Load url on same page
I bought the service from an SMS company. But to send the SMS I have to "run" the link below: https://site.com/apiJSON.php?data={"login":"[email protected]","senha":"SENHA","campanha":"ID…
-
3
votes1
answer86
viewsQ: How to calculate fixed date in php?
Guys, here’s the deal. I need a button to be released only after 8 o'clock on Sunday. For example, the client sends the file to the website. He can send the file on Sunday or Monday at any time.…
-
0
votes0
answers46
viewsQ: Sort by value outside the Mysql query
I need to sort the result of my search by a value that is outside the query. For example, in the query I have a field called answer and with this value I make a calculation. But the result of that…
-
0
votes2
answers508
viewsQ: How to save several radiobuttons in Mysql database?
Guys, I need to save several groups of radiobuttons in the bank. Example: <input type="radio" value="sim" name="grupo1"> <input type="radio" value="nao" name="grupo1"> <input…