Posts by Lucas Marques • 118 points
10 posts
-
1
votes1
answer314
viewsA: Facebook share and check if shared
The href in your code is to www.google.com, I believe this is the problem. Your Facebook app can only use the domains you set up on it, to add domains you must access your app on…
-
0
votes2
answers490
viewsA: Problem using Securityerror iframe
You must use the CORS, the server that is receiving should send back the following HTTP header. Access-Control-Allow-Origin: seudominio If you are a server Apache just follow these instructions.…
-
1
votes1
answer141
viewsA: How do we know Heroku’s out?
You can get this information by accessing the following link: https://status.heroku.com/
herokuanswered Lucas Marques 118 -
0
votes3
answers115
viewsA: Checkbox with PHP
I believe that in the following way it would already simplify enough: $isHena = isset($hena); $isSimples = isset($simples); $isMaquiagem = isset($maquiagem); $resultado = $isHena * $valorHena +…
phpanswered Lucas Marques 118 -
1
votes2
answers1919
viewsA: Infinite Scroll with JSON + Javascript data
Normally this technique is used when you do not have all elements already loaded and so it is gradually loading to decrease the initial load time, but in your case you already have all the data…
-
2
votes2
answers130
viewsA: Why the program is terminated before the scanf
There is an error in your program that Edilson commented on, but it doesn’t solve the problem of early termination. You should add a space to your scanf to ignore line break(and also any space) that…
canswered Lucas Marques 118 -
0
votes1
answer36
viewsA: Menu item always open
Note that in the sbadmin each menu option loads a different page that is displayed on url, with this it is easy to check in which screen state is just checking the url, which can be obtained with…
-
1
votes3
answers101
viewsA: What condition can I develop to avoid duplicating values?
Works using indexOf as shown, but it would be more efficient (in terms of memory usage) to use a Hashtable, thus: var soma = 0; var sorteados = {}; while (soma < 1000) { var num =…
-
0
votes2
answers93
viewsA: Click link works only in HTML/CSS padding
You can try putting each tag <a> outside the tag <li>, thus: <a href="#" class="black-text dropdown-button tooltipped" data-tooltip="Menu"…
-
1
votes1
answer235
viewsA: I’m trying to create a connection using localhost but is giving refused Connection
If you are using the emulator AVD you must use 10.0.2.2 to gain access to your computer’s localhost. As described in official documentation. To the emulator Genymotion you must use 10.0.3.2. --Edit…