Posts by alexandre9865 • 567 points
30 posts
-
2
votes1
answer249
viewsA: Kotlin - How to wait for the user to return a function called inside the while loop
I had to use Kotlin’s Livedata and Coroutine to manage asynchronicity, I changed the functions to suspended functions with the use of lifecycleScope to properly manage the function calls and…
-
2
votes1
answer249
viewsQ: Kotlin - How to wait for the user to return a function called inside the while loop
I have an algorithm that via console helps the user in sorting a list of items, it works well for the console (code below), but I’m adapting the interface to become an app (as print) I wanted that…
-
0
votes1
answer102
viewsQ: Transform array records into another multidimensional array
I want to transform this array: array:6 [ 0 => { "saldo": "-257,21" "id_mes": 1 "ano": "2018" } 1 => { "saldo": "-257,21" "id_mes": 2 "ano": "2018" } 2 => { "saldo": "0" "id_mes": 1 "ano":…
-
2
votes1
answer51
viewsQ: Qcombobox.addItems: called with Wrong argument types
I have the following code: self.option = QComboBox(self) self.option.addItems(self.getJson) def getJson(self): self.data = {'image' : ['planet.jpg', 'cat.png', 'building.jpg']} return…
-
1
votes1
answer243
viewsA: Pyside facility
At the moment there is no compatibility pyside with python 3.5. Compatibility only exists in versions [2.6 - 3.4]
-
0
votes1
answer243
viewsQ: Pyside facility
I’m trying to install Pyside in python 3.5 (32-bit), I installed Pip without problems, but I’m not able to install the easy_install, this error appears when I run on cmd here: But when I run the…
-
1
votes2
answers225
viewsA: Make a hidden form
Put this jquery code inside the javascript ready function to run it. With jquery: $('#id-do-botão-editar').click(function(e){ $('#id-do-form').hide(); $('#area-com-os-campos-pra-editar').show(); });…
-
1
votes1
answer179
viewsQ: problem when dragging ckeditor image
I’m starting to use the plugin ckeditor, I can usually send an image to the editor, but when I drag the image to another place, it disappears, and the warning of this second image here, when I copy…
-
1
votes3
answers3652
viewsA: print json on pure javascript screen
You are generating json in the wrong way. Try it like this: array $autores( 'nome' => $v1[$col]['value'], 'site' => $v2[$col]['site'] ) echo json_encode([$autores]); If it doesn’t work with…
-
0
votes0
answers283
viewsQ: How to get file from inside the database?
I’m using postgresql as sgdb, and I’m saving files. txt in bd, so far, all right, it’s working right, but I’m not finding a way to get the content of the txt files saved in bd, I’m using php with…
-
1
votes2
answers2840
viewsQ: Page number on all mpdf pages
How to make the page number appear in the footer on all pages? I have briefly the code below, but the way it is, the page number only appears on the last page, how to make it appear on all pages?…
-
1
votes1
answer123
viewsQ: Private variable error in C++
I can’t understand why I’m making this mistake when compiling my code: In file included from test_GenericArray.cpp:2:0: Genericarray. h: In Function ːStd::ostream&…
-
1
votes1
answer615
viewsQ: How to use bootstrap Collapse on this dynamic page?
I have this screen to insert images in the system, the part of the insertion works right, only I want that when clicking an image, appear the edit button as in the image, and if you click again on…
-
1
votes1
answer109
viewsA: jQuery Autocomplete plugin 1.2.3 limit for query
it’s to do so: if($("#suggest5").lenght>3){ $("#suggest5").autocomplete('completar.php', { width: 600, multiple: false, matchContains: true }); }…
-
4
votes3
answers22145
viewsA: How do I check if a session ($_SESSION) exists or is active in PHP?
to do this just use the command isset(), in your case would look like this, using an if ternary: $valor = isset($_SESSION['usuario']) ? 'S' : 'N';
-
3
votes1
answer373
viewsQ: Force extension appear when downloading via javascript
I have this screen, image resizing: when I click download, this screen appears to save the file, but as you can see, the file appears without the extension, how can I make the file appear with the…
-
0
votes1
answer1062
viewsQ: Manage Session as an array
I wanted to know if there is any way for me to save two values in the same variable Session as if it were an array, because I want to save both the value of input text and the wysiwyg element by…
-
2
votes4
answers1125
viewsA: Create external html pages
As far as I know, doing it with pure HTML is not possible, but you can do it with PHP :) With PHP you can do this: according to the value passed by GET, the parameter 'r' in this example, you can…
html5answered alexandre9865 567 -
0
votes0
answers112
viewsQ: Resize image "by finger" on web page
I wonder if there is any technique, a plugin, whatever, something that allows you to resize an image that is on my web page in an interactive way with the user, as the image below shows:…
-
1
votes3
answers2217
viewsA: Capture "textarea" from the Responsive WYSIWYG (text editor) plugin
To get the value of the text, you use the following line, as in the following link: https://github.com/suyati/line-control/blob/master/README.md $('#txtEditor').Editor('getText'); I started using…
-
1
votes1
answer3372
viewsQ: How to view Tables in pdf with MPDF library?
I have an html that is automatically generated by a wysiwyg component (a text editor) and within one of the texts I generated, this one has a table and this table appears normally in html, however I…
-
1
votes1
answer997
viewsA: How to fix overlaid text in header with MPDF library
Got it! Thanks @Bacco for the link! I changed the line to follow: $mpdf=new mPDF(); for : $mpdf = new mPDF( '', // mode - default '' '', // format - A4, for example, default '' 0, // font size -…
-
1
votes1
answer997
viewsQ: How to fix overlaid text in header with MPDF library
I am having a problem with the header in relation to the body text while generating a PDF. The header is being overwritten by the body text, how to resolve this? I’m using the method SetHTMLHeader…
-
0
votes2
answers9847
viewsQ: How to remove this line break?
I have a page that uses a text editor of type 'wysiwyg' which in the case is a textarea element, this generates an html code for text that the user type, I save the value of this field in onblur of…
-
1
votes2
answers621
viewsQ: How to pick up and count images with php?
How can I count and take, in php, the image of each of these elements of the code below? I CANNOT use an input file 'Multiple', as it will not only be these lines, as below, it will be something…
-
1
votes1
answer755
viewsQ: how to count number of input file elements of html with php?
need to count the number of input file elements, as they are created dynamically, with the click of a button <input class="tf" type="file" name="pic[]" accept="image/*"> this is the line that…
-
0
votes1
answer1934
viewsQ: How do I get an image from an input file?
Someone tells me, what do I need to get an image of the input file and show it or save it? do I need to use javascript? or just html and php? I’ve already googled, but I’m finding something…
-
1
votes1
answer1352
viewsQ: position of a tr (html <tr></tr>) in the sequence of tr’s
I have a simple screen, where I have already been able to create elements dynamically, with the click of the button, these elements are draggable up and down, and are two different elements, one…
-
1
votes2
answers394
viewsQ: How do I get value in the <td> tag in jquery?
How do I get the value 1 and manipulate - lo, by jquery, which is inside the td tag (I want this value to increase as I click an id button = 'add-Row'): <td>1</td>…
-
11
votes2
answers220
viewsQ: Meaning of append syntax
$("#add_city_btn2").click(function() { var city = $("#add_city2").val(); $("#cities2").append($("<option>", { text: city, selected: "selected"})).change(); $("#add_city2").val(''); return…