Posts by Icaro Martins • 4,187 points
141 posts
-
1
votes2
answers581
viewsA: Angular 7 / Typescript error: Property 'result' does not exist on type 'Element'
With Typescript I have not yet programmed, but javascript I use something as shown in the code below, I think it can help you. = D var reader = new FileReader(), file = event.target.files[0];…
-
1
votes1
answer218
viewsA: problem in recognizing href as link
Ideal and you treat before you insert in your database, however if you know that it will always be an external link you can remove the http:// and https:// when you have, and use the // as shown in…
-
5
votes3
answers254
viewsA: Search id of relative element of relative
You did all the right research, but the code you’re using is parent and not the parents, another detail is that you want the father of the father that is to say id=1 because: father=0, father’s…
jqueryanswered Icaro Martins 4,187 -
0
votes1
answer623
viewsA: Android Studio Error:Execution failed for task ':app:instantRunMainApkResourcesDebug'
This line seems to be wrong <uses-permision android:name="android.permission.ACESS_FINE_LOCATION" /> you put uses-permision instead of uses-permission, tries to put it this way…
-
2
votes2
answers489
viewsA: Detect URL Webview
This question has already been accepted but I will put here some options of methods of WebViewClient that may be useful. onPageStarted - It is called to inform that a page has started to load. void…
-
1
votes1
answer317
viewsA: Open link only with . com - Android Webview
In the documentation Android of the method shouldOverrideUrlLoad says: Do not call WebView.loadUrl(String) with the request’s URL and then return true. This unnecessarily cancels the Current load…
-
3
votes1
answer113
viewsA: Does my Select custom with Fontawesome not open when you click the arrow?
Basically I added in the css of .x::after the directive pointer-events: none; to indicate that this element is not the mouse event target. .x { width: 50%; background-color: #fefefe; border-radius:…
-
3
votes2
answers866
viewsA: Git - how to ignore files inside a folder
Create a file .gitignore inside the briefcase views-cache and put as content of it: * !.gitignore this will cause all files in the folder to be ignored except the .gitignore then use the command git…
gitanswered Icaro Martins 4,187 -
0
votes2
answers50
viewsA: Javascript concatenation with PHP
In this part of your code <?php $x = 0; if($dados_ficha_tecnica["cob_tipoTermoAcu"] == "Sim"){ echo('<input type="text" style= "margin-left: 25px" name= "cob_tipoTelha_qtd'.$x.'" id=…
-
3
votes1
answer392
viewsA: How to leave the relative folder path?
Your links are starting with / or absolute path. To use path relative to the current folder use ./ or without the / initial. <!-- <script type="text/javascript"…
-
9
votes3
answers4009
viewsA: Why is it important to remove X-Powered-by from response headers? How to remove?
That kind of header is known as ServerTokens/ServerSignature, it reveals server information such as: name, version, technology and in some cases even the operating system. Your header specifically…
-
0
votes1
answer57
viewsA: index(find) + Len(find) Valueerror: substring not found Crawler Python
I think code url2.index(find) you’re not finding anything. *Knowing that find = '<div class="row_header titulo_evento"' I paid a quick visit to website and I tried to find that element and I…
-
1
votes3
answers4639
viewsA: How to reload the browser (Chrome) without cache, in addition to disable cache?
There are also shortcuts: WINDOWS/LINUX: SHIFT+F5 or CRTL+SHIFT+R CRTL+F5 this also works with me but has no reference* MAC: ⌘+SHIFT+R Source: support.google.com…
-
0
votes2
answers240
viewsA: col-Md-6 occupying all space
The Bootstrap in version 3.x this worked, however in the current version 4.x apparently the .col-* requires a father .row, I believe this must be because of the scheme of flex-box. Note. In the code…
-
3
votes1
answer290
viewsA: How to get a PHP file past $.ajax?
We talked through the comments of the question and it was found that the problem was occurring because of the way the value was being sent by ajax. Using the FormData to upload the file it would…
-
1
votes1
answer49
viewsA: Problems with Mysql query
I guess when you talk todos Voce wants it to select any value, if that’s the case you need to do something like: $WHERE = array(); if( $_GET['tipo_pagamento'] != "null" ) // so coloca se nao for…
-
0
votes4
answers1922
viewsA: How to browse a list using each JQUERY
When I need to make one foreach in a objeto I use a code similar to this, below. The Method hasOwnProperty prevents me from accessing object properties. function each(e,callback){ for(var i in e){…
-
2
votes1
answer140
viewsA: How to copy class values to another class in Javascript?
The function getElementsByClassName as the name says returns Elements or is a kind of Array calling for HTMLCollection. In your code you are trantando as a HTMLElement (trying to access .innerHTML)…
-
1
votes1
answer100
viewsA: DIV resize after being clicked
See if the code below helps you. He’s not using it jQuery, bootstrap what tools are worth just you take a look function onClick(){ var self=this, // ; elemento clicada isOpen =…
-
2
votes2
answers123
viewsA: update div with checkbox value marked
Apparently you’re re-declaring the constant res const res = document.getElementById("resultadop"); after changing, don’t forget to change res on those lines also const totalp =…
-
0
votes1
answer395
viewsA: Null Pointer Exception?
That mistake java.lang.NullPointerException indicates that you are trying to use something that is null. Which in your case, from what was posted, indicates that some index of linhas is null. No…
-
4
votes3
answers7082
viewsA: You uploaded an APK with an invalid signature
Below are the steps showing how to create a key and sign a APK manually, recalling that currently the android-studio also allows you configure the build process for automatic APK signing In the menu…
androidanswered Icaro Martins 4,187 -
3
votes2
answers385
viewsA: Problem with notification icon
After taking the test by changing the .setContentText(message) for .setContentText("Passed by my function") the function that should be called It was found that the firebase was treating the push…
-
0
votes1
answer130
viewsA: Error publishing to Apple
This is because apple requires you to report that your app uses these features on info.plist Basically you have to put a text to: Nscamerausagedescription // Access information to Camera…
-
2
votes2
answers95
viewsA: Syntax error in wordpress
By the code you posted it looks like this with error in the character '. '<script type='text/javascript'>.....', it is opening string in the first ' and closing the string before the…
-
0
votes3
answers101
viewsA: My Javascript code to change visibility does not work
Apparently you’re with a id duplicated, and from what it seems to me you want to give in input text and not in the radio button. That’s why I’d put the ids in the Bils of input text, at the end I…
-
0
votes1
answer37
viewsA: Problems with jquery to read json
I think the problem is here, var produto = jQuery.parseJSON(data); you’re doing the parse and playing for the variable produto, but at the time of using you are using the data colunaProduto =…
jqueryanswered Icaro Martins 4,187 -
2
votes1
answer39
viewsA: Simulate _GET php in string
I believe your link is incorrect the normal format is ?v=123&t=abc, ie the second ? must be a &. I think Voce can use two php functions for this, the parse_url and parse_str With the first…
-
0
votes1
answer135
viewsA: How to prevent a link from working on a child element? (jQuery)
the event.stopPropagation() goes to the propagation of the event (in case onClick) in other elements. In the example below if you comment on this code it, and click on div#nao-abrir-nova-pagina he…
-
3
votes3
answers151
viewsA: Check if URL contains number
You can use the location.hash to make that check if( ! isNaN( location.hash.substr(1) *1 ) ) { /// é um numero }
-
1
votes1
answer60
viewsA: Download the generated image
Using jquery to create and add the element in DOM I added the following code to your script and the test worked, maybe it helps you. a =…
-
2
votes3
answers4332
viewsA: Passing HTML Parameters to Javascript
Using your code I added one name at the input and in the onsubmit I put a call to the function mostrar using the call passing the this as a parameter in this way the this of function mostrar will be…
-
1
votes2
answers99
viewsA: Compare a column’s value with the checkbox
After talking through the comments of the question we managed to reach the following solution =) // Criar uma var boolean var tdBoolean = $(td).text() == "True" ? true : false; // modificar a…
-
1
votes2
answers70
viewsA: Error passing JSON arguments
Through the baseball bat that rolled in the comments of the question we detected that only one was missing .id =) //classmodels.forEach((item, index) => classmodels[index] = ObjectId(item));…
-
2
votes2
answers2655
viewsA: How to format dd/mm/yyyy date to mm/dd/yyyy
You can use a substr simple as shown below. var data = "23/03/2012 00:00:00", dateBlock = data.substr(6,4)+"-"+data.substr(3,2)+"-"+data.substr(0,2), hourBlock=data.substr(11), dateObj=new…
javascriptanswered Icaro Martins 4,187 -
0
votes2
answers60
viewsA: Add data from an html table
See if the change I made helps you. I basically started using the class of TD that contains the values itemTable-Price and made a replace in the text to turn into float function sumQuantity() { var…
-
1
votes1
answer428
viewsA: Error trying to create a database connection (Mysql)
You are using log = new Log(), but this android class has no constructor available. Correct and use static class methods Log: Log.d("tag","algum log"); // Debug Log.e("tag","algum log"); // Error…
-
7
votes7
answers552
viewsA: What is the difference between these parameters (array) in these methods?
This is my understanding public function exemplo2(array $parameters) The function this forcing that the programmer passes a array. public function exemplo3($parameters = array()) The function is…
-
2
votes1
answer1621
viewsA: How to put button on a Listview?
If it’s to replace the ImageView for Button you will also have to replace the method setImageResource by one that the Button has as the setText. //((ImageView)…
androidanswered Icaro Martins 4,187 -
0
votes5
answers2024
viewsA: Replace If/Else with Case javascript
Taking into account that you want to change the value of this element document.getElementById("nav").className I would use it this way: document.getElementById("nav").className = (pageXOffset >…
-
2
votes1
answer336
viewsA: Width of element with position: Absolute (box-Sizing: border-box)
In this case it is recommended that you use position:relative in the parent element, this will cause the child elements to use it as a basis of calculation. Example [Jsfiddle]: HTML <div…
cssanswered Icaro Martins 4,187