Posts by Anderson Santos • 475 points
32 posts
-
0
votes1
answer107
viewsQ: Request via FTP and return file via HTTP
I am developing a blog and would like to use resources from another server via FTP. In order to share some of these files in my posts I imagined that it would be possible to connect the FTP within…
-
-2
votes2
answers321
viewsQ: How to recover information from Laravel URL?
I have the following route: # Minha rota para cadastro de pessoas ao escolher um plano Route::get('/cadastrar/{plano}', function($plano = 'silver'){ # Checa se o plano existe if…
-
2
votes1
answer87
viewsA: Simplify and unify functions into one
// Primeiro cria uma variável global, que será a array mestre var planos; // Daí você chama a função com os ids em array // Exemplo: fazer_plano([10,20,30]); // A função adiciona automaticamente os…
-
0
votes1
answer161
viewsQ: How to create grid lists with C# in WPF?
I’m new in C#. I wonder how to create a grid list that contains images, something like what android has: Thanks in advance.…
-
1
votes2
answers38
viewsA: Include php with java
You need to add the following code in the first line of your API: header('Access-Control-Allow-Origin: *'); Learn more in: https://developer.mozilla.org/en-US/docs/Web/HTTP/Controle_Acesso_CORS…
-
0
votes3
answers1909
viewsA: Protecting source code
PHP does not show source code. Everything is between <?php and ?> will only be displayed with output commands such as echo or print. Coding the index of the variable will not change anything,…
phpanswered Anderson Santos 475 -
0
votes0
answers287
viewsQ: Function of Moodle mod_quiz_get_attempt_data returning incomplete html
I am developing an application for Moodle that returns the html quiz. I made use of the webservice mod_quiz_get_attempt_data but the problem is that whenever I send the request, the browser returns:…
-
0
votes1
answer45
viewsQ: is_numeric is safe to select?
I am developing an application with PDO, and I normally use the bindValue() to execute the SELECT's, but I am developing an application that receives a variable that contains numbers and comma,…
-
0
votes1
answer742
viewsA: CSS how to make blink icon go and back?
Use the element opacity, because it doesn’t disappear with the element, it just hides, being possible to use listeners, remembering that opacity accepts only the alpha, I mean, it goes from 0 to 1.…
cssanswered Anderson Santos 475 -
1
votes1
answer55
viewsA: Doubt in IF - PHP
Your problem is with the syntax that is totally incorrect. See examples on line 7 and line 16. You have opened tag PHP within a tag PHP. So the resolution is simple: <?php $id_usuario_anuncio =…
phpanswered Anderson Santos 475 -
1
votes1
answer55
viewsQ: How to get a list of all questions and alternatives Moodle?
Hello, I am developing an android app with java for the Moodle platform, and I would like to know if there is a function that returns a list with the quiz question and the alternatives. Something…
-
1
votes2
answers442
viewsQ: How to calculate the percentage of Likes?
How can I find a way to calculate two values to arrive at a percentage, for example: I have 100 Likes in a variable and 10 dislikes in another. In this example,(100 - 10 = 90) 90% of the people who…
-
1
votes0
answers111
viewsQ: How do you make a Gridview like that?
Hello, I am learning Android and I learned a lot about Listview... But not much about Gridview, so I would like to know how to develop a Gridview similar to the below: (The title "POPULAR" Never…
-
1
votes1
answer43
viewsA: Rationale: Select PHP with positions reversed in html
Dude, you can do the following, first you connect thePDO then you use a for loop, that way: $pdo = new PDO('mysql:host=WWW.SEUSITE.COM;dbname=NOME_DO_DB;charset=utf8', 'root, ''); $query =…
-
0
votes1
answer87
viewsA: Upload JS information to PHP
You could submit the form via post, but if you want to deal directly with JS and PHP, you can use AJAX, below an example with jQuery: $.post("mail.php", {taxadeentrega: taxa}) .done(function(data){…
-
1
votes1
answer51
viewsA: Database with many changes
If this is the only problem, you can create a communication system between computers with AJAX and save via cookie in browser. But I recommend you use the bank to store for ease and also because of…
-
0
votes0
answers92
viewsQ: How to upload web images inside a Listview?
I have a json more or less like this (simplified the original): [{ image:"http://site.com/imagem.png", title:"Titulo", desc: "descrição" }] I would like to upload all the content, including the…
-
0
votes0
answers34
viewsQ: Do you want to customize the Videoview class of android?
I wonder if you have how to customize the controls of VideoView using the MediaController or another class that allows me to inflate a player layout.
androidasked Anderson Santos 475 -
4
votes4
answers123
viewsQ: How to check if one String completes another?
would like to know if there is any function or operator that can check if a String looks like another in javascript for example: var str1 = "joao foi ao mercado"; var str2 = "joao fo"; What I need…
-
3
votes1
answer474
viewsQ: Can you tell the response time of an AJAX request with jQuery?
I wanted to know if there is a function that returns the AJAX request time in microseconds, because I need to get this value for the project I am developing.
-
0
votes1
answer68
viewsQ: How to rewrite apache URL with variable and then use other variables in PHP?
Hello, I don’t know if the title of the question makes much sense, but the question is this:: I have that code: RewriteRule ^teste/([a-z]+)$ settings/php/teste.php?lib=$1 It creates a redirect, but…
-
0
votes0
answers845
viewsQ: Why does the message "Do not access superglobal array directly" appear?
How can I use the array $_GET without giving this problem (Netbeans), since even when I use it in this way gives error: $var = isset($_GET['variavel'])?filter_var($_GET['variavel'],…
-
1
votes1
answer41
viewsQ: Why some actions give error if I do not specify the View as parameter in Android?
I’m creating a test app with the basic knowledge I acquired on android since I was a java programmer before. All the tutorials I researched people put the class View as a standard parameter in your…
-
0
votes1
answer71
viewsQ: Real-time search saving server?
Hi, I created a script in jQuery searching the database, based on what the person typed in a field input. With each key the user type, the script makes a new requirement for my API and that’s a…
-
5
votes2
answers170
viewsQ: How do web hosting systems work?
I am creating a website and I would like to host it, but I have some questions because I have heard that the hosting has monthly access limits or limits in the size of the databases. So I’d like to…
terminologyasked Anderson Santos 475 -
1
votes3
answers1272
viewsQ: How to add multiple elements within jQuery’s html() function?
I have the following excerpt: $('#div').html(); I need to add some div within that div, but I don’t know how, because if I try to do this way it’s wrong: NOTE THE ADDITION SIGNAL FOR CONCATENATION…
-
1
votes2
answers98
viewsQ: Why doesn’t $.post() return an object?
I have a function more or less like this: $('#btn-load-more').click(function(){ var key = $('#hash').val(), limit = 0, i = 0; setTimeout(function(){ $.post('api', {type: 1, limit: limit, key:…
-
-3
votes1
answer2900
viewsQ: What is BLOB in javascript?
When you try to access the link that is inside the src tag vídeo youtube, what happens is that you just can’t access, or access is difficult, and I would like to know how to do this process and…
-
2
votes1
answer175
viewsQ: How to put cursor:move on a div draggable with javascript?
I have the following excerpt from a div <div class="teste" draggable="true">CONTEÚDO DA DIV</div> I wish that when I drag this div By the screen the cursor was in default, but the…
-
1
votes1
answer220
viewsQ: Create parameters in div to use in Javascript
I wonder if I can create custom parameters within a div and if it is recommended by W3C, as it would like to create some parameters for a tag, but I did not find any reference on the internet, an…
htmlasked Anderson Santos 475 -
0
votes1
answer124
viewsA: filter data of a query in minuscule and without spaces
I don’t know if I understand this correctly, but I think you want to do a database search, but do you want the person to be able to search without accents? If this is the case the problem is that…
-
0
votes1
answer289
viewsQ: How to create a range button with pure javascript
How do I create a seekbar with pure javascript? An example below: PS: I don’t know how to use jQuery, so I would like the code in pure javascript…
javascriptasked Anderson Santos 475