Posts by Tales Breno • 369 points
14 posts
-
0
votes1
answer398
viewsQ: Get IMEI using Ionic 2
I am now starting to use Ionic, and would like to know how to get the device Imei number using Ionic 2. I tried to that, but I didn’t understand how to install the plugin…
-
0
votes2
answers98
viewsA: Error in php parse_str function with Special character
The case was solved that way: $str = urlencode('item1 + item2'); parse_str("c={$str}");
phpanswered Tales Breno 369 -
2
votes2
answers98
viewsQ: Error in php parse_str function with Special character
I’m trying to use the function parse_str php string a value with the character +, but the result returns me to string without that character, see: parse_str("c=item1 + item2"); var_dump($c);…
phpasked Tales Breno 369 -
1
votes1
answer181
viewsQ: Force redirect to HTTPS environment
How to force redirect to the environment with HTTPS with HTACCESS? I need the code to be adapted to what I already have: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond…
-
1
votes1
answer130
viewsQ: Use user-friendly URL without folder navigation
I need to identify the user using user friendly url, for example: https://site.com.br/usuario/sistema.php How do I make this identification, bearing in mind that there will be no particular folder…
-
2
votes1
answer118
viewsQ: Radio input(materialize) animation does not track properties
I am trying to manipulate the radio input dynamically and the property(checked) of the element is being manipulated correctly, but the animation of the field does not follow this dynamic, the first…
-
2
votes2
answers71
viewsQ: Problems with number_format(PHP) by two points in the numeral
I’m having trouble with the job number_format PHP, because my numeral comes from the database with two dots, eg: 1.235.32 I’m using the number_format thus: number_format(floatval('1.235.32'), 2,…
phpasked Tales Breno 369 -
2
votes2
answers353
viewsQ: How to remove only the parent element, without removing the children
How to remove only the parent element, without also remove child elements with jQuery. Having this structure for example: <a href="#"> <p>A</p> <p>B</p>…
jqueryasked Tales Breno 369 -
3
votes1
answer116
viewsQ: How to create parent element?
How to create a parent tag within an element with jQuery, for example, having this original structure: <p>texto</p> After function jQuery would look like this: <a href='#'>…
jqueryasked Tales Breno 369 -
2
votes2
answers12110
viewsQ: Create SSL certificate for https use on localhost
I tried some tutorials on the internet to enable https on my localhost and so far I could not do it right, it seems that something is broken, because it appears as a page not safe and the acronym…
-
3
votes3
answers7377
viewsQ: submit a form with jQuery by clicking a button outside of the form
I’d like to send a form without clicking the button submit, using the jQuery click event, I tried this way but I did not succeed: $(document).ready(function() { $('.item').click(function() { var id…
jqueryasked Tales Breno 369 -
1
votes1
answer689
viewsQ: Set colors patterns in materialize
I wonder if you have how to set a color pattern in the materialize framework, as by example is made in Material Design. This would avoid inserting the color of an element in each one Thanks in…
materializeasked Tales Breno 369 -
-1
votes5
answers675
viewsA: Why does Netbeans warn you not to access global variables directly?
I’ve seen W3school recommending use this way: htmlspecialchars($_SERVER["PHP_SELF"]); You can see the explanation here, search for that title: How To Avoid $_SERVER["PHP_SELF"] Exploits?…
-
5
votes2
answers3336
viewsQ: How to drag an element freely on the page with pure javascript?
I wonder how to move an element on the page freely with javascript without frameworks, it would just drag and drop in any corner of the page
javascriptasked Tales Breno 369