Posts by Lollipop • 4,918 points
260 posts
-
0
votes1
answer104
viewsQ: Gradually increase a background-image from a point
I need the effect below in css3 or javascript. Go to GIF What I already have is only the basic: The image does not make the desired effect, because it started from its own center. I need it to be…
-
0
votes1
answer162
viewsA: Ajax URL changes if pages come by variables through the URL?
SOURCE AND DEMO > http://phppot.com/demo/load-dynamic-content-using-jquery-ajax/ SQL CREATE TABLE IF NOT EXISTS `paginas` ( `id` int(8) NOT NULL AUTO_INCREMENT, `url` varchar(255) NOT NULL,…
-
0
votes1
answer117
viewsA: Calculation of Javascript total
Javascript is interpreted and executed by the browser and with each new execution of Browse the javascript is reloaded with its default values. How to save the data and even with refresh get the…
javascriptanswered Lollipop 4,918 -
1
votes0
answers477
viewsQ: Manipulating Drag and Drop values sortable with Jquery
Picture scheme: Problems: Order and quantity of the boxes of first column should not be changed. I could not leave them only for the purpose of DRAG, I mean, I can’t remove a box from the second and…
-
2
votes1
answer1132
viewsQ: HTML does not load font style located in remote folders
The archive index.html is in the localhost, but the font and the file .css is in a remote server: This is the source link: https://ssl-177586.kinghost.net/fonts/ProximaNovaBold.ttf What I’ve already…
-
1
votes1
answer323
viewsA: Failure error[INSTALL_FAILED_INVALID_URI] in GCC
I once had the same problem installing a APK pelo shell android. Primeiro erro que eu consegui foi: INSTALL_FAILED_INVALID_URI $ pm install myApp.apk pkg: myApp.apk Failure…
-
0
votes1
answer180
viewsA: View all PHP scripts running via SSH in real time
watch ps u -u USUÁRIO_NOME How many php script being used Memory and CPU used Now if all you want is to "Spy" an existing process.…
-
2
votes3
answers245
views -
2
votes1
answer30
viewsA: How to solve the Invalidcharactererror error
Some javascript functions do not allow empty spaces between characters. An example, in my case, was the add(). I’m using to add a classList var nomediv = 'Antônio João';…
-
1
votes1
answer30
viewsQ: How to solve the Invalidcharactererror error
I’m using a requisition ajax, that returns me a json, from a page .php, named after a city of Mato grosso do sul calling for: Antônio João. The error is javascript. Which says the following:…
-
0
votes1
answer415
viewsQ: How to create arrow-shaped edges on the sides of a div
What I got is this: html, body { margin: 25px; } .arrow_box { position: relative; background: #88b7d5; border: 4px solid #c2e1f5; width: 200px; } .arrow_box:after, .arrow_box:before { bottom: 100%;…
-
6
votes1
answer1291
viewsQ: How to structure a mysql database from a JSON
I have the following structure json test: { "CE": { "Fortaleza": [ { "nome": "Teste", "email": "[email protected]", "cel": "(xx) xx-xx" }, { "nome": "Teste", "email": "[email protected]", "cel": "(xx) xx-xx" } ],…
-
0
votes2
answers947
viewsQ: How to perform a simple state and city search with jquery and json
This is my json test and precise, through the keys "ce" and "fortress", perform a search of their respective data. In this case, the search is done by AJAX which has been subjected to a POST through…
-
1
votes2
answers823
viewsA: Adding the column of a PHP table
Introduction to operators in PHP An operator is used to perform operations between one or more values (or expressions, in programming jargon) and return only one final value. We go now to the…
-
3
votes2
answers1880
viewsA: Unity 3D and Android, how to handle txt file?
See this example that reads one line by line: using UnityEngine; using System.Collections; using System; using System.IO; public class LineReader : MonoBehaviour { protected FileInfo theSourceFile =…
-
2
votes1
answer96
views -
0
votes3
answers5404
viewsQ: How to create an array with Object from an SQL query
I need the following result within a variable from a query PHP + Mysql: array(1) { [0] => object(stdClass) #1 (3) { ["id"]= > string(2) "1" ["nome"] => string(5) "teste" ["email"] =>…
-
1
votes2
answers512
views -
1
votes2
answers177
views -
0
votes3
answers1647
viewsA: Take the first and last date of an array
Simple and clean: <?php $array = array('2016-01-01', '2016-01-02', '2016-01-03', '2016-01-06', '2016-01-07', '2016-01-08'); foreach ($array as $element) { if ($element === reset($array)) $minimo…
-
3
votes2
answers2465
viewsQ: How to fix an input within a responsive div
I have a div with an image in background and with a input text-type. I need the input to stay in a certain position and as the resolution change, it goes down so as not to cover the title "Connect…
-
1
votes4
answers327
views -
1
votes3
answers368
viewsA: How to prevent an application that runs in the background from being stopped by the user?
The way would be to create a kind of "service run period" with an Alarmmanager and Schedule. There is no way to prevent the user from stopping a service, as there are several ways to stop a service.…
-
1
votes2
answers1855
viewsA: How to save Radiobutton value and convert to String
Remember that you need to see what you’re assigning as a checkbox value: ... radio= (RadioGroup) findViewById(R.id.radiobu); // recebendo o botão selecionado int selectedId =…
-
1
votes3
answers284
views -
0
votes1
answer49
viewsA: "Out of memory" error when adding a new plugin
Do the following: Create a file php.ini and insert into the folder wp-admin with these codes: max_input_vars = 9000 upload_max_filesize = 8M session.cache_limiter = public memory_limit =…
-
0
votes2
answers87
viewsA: Cross origin not working with angulasJS and PHP
Maybe these commands can help you "debug" folder access when starting the browser: Windows: chrome.exe --allow-file-access-from-files or chrome.exe --allow-file-access-from-files…
-
1
votes1
answer645
viewsA: PHP Upload ajax of miscellaneous files without Submit
Drag Drop API: for: devbridge Works in: IE10+ Firefox 15+ Chrome 22+ Safari 6+ Opera 12+ You’ll get these features: HTML: <div class="body"> <div> <h1>HTML5 Ajax…
-
2
votes1
answer43
viewsA: Data return problems when creating a php search
When building a database, we need mechanisms to extract the data from that database, and the way to do that is through SQL queries. An SQL query is nothing more than a question we ask the database.…
-
1
votes2
answers769
viewsA: How to check if the class was instantiated via Dataprovider using PHP Unit
A method DataProvider returns an array of arrays or an object that implements the interface Iterator. The test method will be called with the matrix content and its arguments. Some key points using…
-
1
votes2
answers754
viewsA: I want to check if a link has been clicked and redirect it with Wordpress
The image will be the same whether logged in or not: <?php if ( is_user_logged_in() ) { echo '<a href="https://docs.google.com/"><img src="imagem.png"></a>'; } else { echo…
-
2
votes3
answers859
viewsA: Use explodes to separate categories
I suggest you edit your question, as you mentioned in an answer, your problem is another. My answer to the problem: Use this function, call clean, to remove the spaces or traces between the…
-
3
votes2
answers60
viewsA: How to "simulate" a Generator in versions prior to PHP 5.5?
What is a Generator function? The Generator function is effectively a more compact and efficient way to write an Iterator. It allows you to define a function (your xrange), to calculate and return…
-
0
votes2
answers350
viewsA: PHP - how to use placeholders for form validation messages
php is a structured language. If at the top you define a value and below defines another, the latter will prevail CASE THE LATTER, is actually written. Check whether the $_POST["txtdest"] variable…
-
2
votes1
answer71
viewsA: Image repeating
Instead of using .prepend() or .append() try to use .html() this will replace the elements. For example: $('#' + div).html(valor); Another example: $('#' + div).html(<span…
-
0
votes2
answers489
viewsA: How to organize the code to be reused
The concept: Trigger in a child object to give OnTriggerEnter in a parent object. The way: Add a script to Object Azul to give a script reference to the Object Rosa. The practice: Write 3 methods on…
-
3
votes1
answer351
viewsA: How to create a simplified jsFiddle version
Testing or debugging a small script can be an unnecessarily laborious task. After all, it is necessary to create a new html page, write its markup, insert scripts, add libraries, save and then test…
-
1
votes2
answers5650
viewsA: How to turn on the camera flash?
First of all: <uses-sdk android:minsdkversion="11" android:targetsdkversion="17"> Basically you need to: //Ligar camera camera = Camera.open(); Parameters p = camera.getParameters();…
-
0
votes3
answers314
viewsA: How to destroy a jQuery.fn whenever called?
Do it: delete $.fn.nomedoplugin; This does not affect already initialized plugin instances.
-
1
votes4
answers6197
viewsA: Resume all values in stdClass Object Array
When you access -> is referencing an attribute with 1 item, to access all, you will need to create a loop: foreach($seccionais as $result){ echo($result->seccionaldescricao); } or while ($row…
-
1
votes1
answer1266
viewsA: Custom search plugin with wordpress
This can work, with some modifications. What you are looking for is a Search com filter: View Plugin…
-
5
votes5
answers51834
viewsA: In Javascript, how to verify that an object is empty (without jQuery)?
For modern shippers: JSON.stringify function isEmptyObject(obj){ return JSON.stringify(obj) === '{}'; } 2nd Example: Assuming emptiness is "that has no properties": var hasOwnProperty =…
-
0
votes3
answers360
viewsA: Input type="text" field does not fill data with more than one word
Try to use the attribute maxlength and put quotes in value: '</form> <input type="text" maxlength="100" value="'.$result->name.' ">';
-
2
votes1
answer200
viewsQ: Display codes on the front end without being executed by Edit Post
I need my front present codes and scripts without them being executed when creating POSTS. Is there a plugin for this? I used <pre></pre>, but still HTML codes are executed. See in the…
-
0
votes2
answers1805
viewsA: How to calculate and show the running time of a video
I have a solution in Javascript. I know you wanted in PHP, but this form below is more advisable as it works directly with the properties of the video without the need to API, EXECUTE THE CODE…
-
5
votes1
answer2772
viewsA: How to get profile image via authentication using facebook php API
The best way, in this case, is to create an authentication through the Facebook API in PHP. Thus, you will be able to obtain information from the user’s profile and forward it to your website. Your…
-
0
votes3
answers1350
viewsA: PHP $_FILES[''] becomes empty before validation
UPDATED 2*MB = 2097152 Equates to 2048 Mb Soon you condition that if(filesize($_FILES["avatar"]["size"]) must be bigger than 2097152 so that it can happen: $size = true; $uploadOk = 0; Then, under…
-
1
votes1
answer543
viewsA: Webview android does not load css image
You can configure the best hardware performance with: webview.getSettings().setRenderPriority(RenderPriority.HIGH); webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); Or on the manifest…
-
0
votes1
answer67
viewsA: Is it possible to implement the onLongClickListener method on the map?
I advise to follow this path so I can work upon the possibilities: 1 - When creating a marker**(addMarker)**, immediately save latitude and longitude information in the database. 2 - Now below will…
-
1
votes1
answer163
views