Posts by Léo • 261 points
14 posts
-
1
votes1
answer21
viewsA: Can I inherit namespaces?
I researched and studied on the subject, and did not find a "concrete" way to inherit namespasces. Because of this, I will make use of several namespaces on the same line: <?php namespasce…
-
0
votes1
answer21
viewsQ: Can I inherit namespaces?
I’m using composer with autoload in class namespaces, assuming I have the parent class Model: Model.php <?php namespace App\Model; use App\Utils; use \PDO; class Model {} And the daughter class…
-
0
votes1
answer313
viewsQ: How to identify elements with repeated values in an array and create a new array
I have the following associative array: Array Actual: Array ( [0] => Array ( [num] => 51 [totalparcial] => 2.50 ) [1] => Array ( [num] => 51 [totalparcial] => 3.70 ) [2] =>…
-
1
votes1
answer53
viewsA: Listview with hidden items in jquery mobile
As follows in the jquery mobile documentation , just add data-filter-reveal="true" , thus: <ul data-role="listview" data-filter="true" data-filter-reveal="true" data-filter-placeholder="Search…
-
0
votes1
answer78
views -
0
votes1
answer966
viewsA: Problem with overflow-x and overflow-y in css
If that’s what I understand, you wish select do not follow the side scroll. In your case, you can do this by removing the position: absolute; of the style of select. $('#select1').chosen(); .wrapper…
-
4
votes3
answers314
viewsQ: Cross-Domain Application Security Questions
I have a question about the security of cross-Domain applications... The following is in case I have a hybrid APP that will run on a smartphone and will make requests ajax cross-domain to an api (in…
-
3
votes2
answers1997
viewsQ: How to select and pick values from all checkboxes with the property checked?
I realized that "how to select all checkboxes with the property .checked marked is a very recurring question in web development, so I will post a solution here, using Jquery. How to select and…
-
5
votes2
answers1997
viewsA: How to select and pick values from all checkboxes with the property checked?
As in the example, I will take the "value" property of the checkboxes checked when you click the button and insert inside the <div id="resultado"> on the page. Considering the inputs of…
-
1
votes1
answer130
viewsQ: Display error in jquery mobile table
Hello, I’m trying to display some data that caught by ajax and put them in a responsive table using the Jquery Mobile framework. The problem is that, the first time I do the operation, it works…
-
2
votes1
answer298
viewsA: Data in JSON format is not shown
Opa, was coding error utf8. I decided to put in my class of connection to line: $pdo->query("SET NAMES utf8;"); Thus remaining: <?php try{ $pdo = new…
-
0
votes1
answer298
viewsQ: Data in JSON format is not shown
Hello, I have the following php code: <?php require("config_local.php"); //conexao com o banco de dados $area = "eua"; $st = "ny"; $sql = $pdo->prepare("SELECT…
-
2
votes3
answers3043
viewsQ: Assign $.ajax received value to variable
It is possible to associate a value received by $.ajax a global variable, because from these values, I need to add them and show them in another table. I tried but always interprets with local…
-
1
votes1
answer101
viewsQ: AJAX receives JSONP as "Undefined"
first I wanted to say that I have been researching for this here in the forum and I found some similar questions, but no answer worked here. Next, I have a php file on the server that connects to…