Posts by Simão Lemos • 257 points
13 posts
-
2
votes1
answer1607
viewsA: How to run a php function in ajax?
Yes you will need to do an httpRequest using javascript(ajax) to a url that performs your desired function, because you can never use php in javascript because one works on the server side (php) and…
-
0
votes3
answers5508
viewsA: Html text box value to be received by javascript variable
You can always do something like that: HTML: <p> //o resultado vai cair aqui </p> //com um input <input type="text" onkeyup="changeResult(this)" /> //ou com uma textarea…
-
1
votes1
answer43
viewsA: Search within a _POST
What you can do is pass like this (I’ll show you the HTML input to understand) Since each point has an id you can do so: you create a Hidden field: <input type="hidden" name="id[]" value="Aqui…
-
0
votes1
answer93
viewsA: How to give include in js page to progress and return to php
You’re mixing garlic with bugles... by doing the progressiBar.js file include inside php, you’re basically telling the interpreter that what it has to do is read the progressiBar.js file as if it…
-
0
votes3
answers314
viewsA: How to count the number of candidates on this page ? Python 3.6
import HTMLParser import urllib2 import re from pprint import pprint request = urllib2.Request("websiteURL") response = urllib2.urlopen(request) responseContent = response.read() # Aqui pelo que…
-
5
votes1
answer421
viewsA: How to overlay floating div on other elements of the web page?
Use the property z-index with the value 999 in the Shoes of your div with the id="pop", I think this is what you want javascript: (function() { var add = document.createElement('div'); add.id =…
-
0
votes2
answers45
viewsA: Doubt passing parameters via form
Ai is only saying that your ID passed by post is undefined (does not exist), but this is normal, because you are only passing the 'color' if you want to upload an image you will need to use a file…
-
2
votes3
answers2105
viewsA: Use external file function without giving include
To be able to use functions from another php file you have to include it, either using include, require or whatever, just like wordpress does, you may not know where... The file…
-
-2
votes2
answers147
viewsA: use of mysqli_prepare prevents major sql Injection attacks
The purpose of Prepared statements is to not include data in your SQL statements. Including them in your SQL statements is NOT safe. Always use Prepared statements. They are Cleaner to use (code…
-
0
votes1
answer40
viewsA: how can I create the modal boxes by placing various different themes in the boxes
you can always create subclass’s for each theme ex: .modal.tema1 { /*styles para esse tema aqui....*/ } .modal.tema1 .modal-content ... then when you call your modal, in your html you also put the…
-
1
votes3
answers212
viewsA: Get source file from a Python module
You can create a class and extend ex: import nomeModule class MyOwnClass(nomeModule.MethodModule): #AsTuasFuncoesAqui
-
2
votes3
answers212
viewsA: Get source file from a Python module
You can’t print module Math’s path, at least as far as I know, but you can with others like >> import os >> print(os.__file__) C:\\Python27\\lib\\os.pyc
-
-1
votes2
answers797
viewsA: Extract information from a video at the time of upload
You can always use print_r($_FILES["upload"]) to download the file properties and then use what you want ex get the size you have echo $_FILES["upload"]["size"]; or $new_var = $_FILES["upload"];…