Posts by Edudjr • 207 points
8 posts
-
1
votes1
answer176
viewsA: Is there any way to connect a direct Node.js project to a domain?
There’s no problem using door 8080 for that. Although possible, you don’t need Xampp to provide a Node application, it itself creates an http server and listens at the defined port. First of all,…
-
2
votes1
answer973
viewsA: Is it possible to add Node script data to html?
As already mentioned, Node runs server-side, so it will not run inside a client-side html. Think that the Node variables are in a separate context from the javascript that will run on the front. As…
-
0
votes3
answers138
viewsA: How to treat a reponse.result.value that returns as log optional([])?
Just treat how you would treat a Sponse that returns an array of objects and check if it is empty. //mockando o optional([]) let json: [Any]? = [Any]() if let array = json as? [[String: Any]] { if…
-
-1
votes1
answer442
viewsA: How to work with Alamofire Sponse on Swift 4?
On the return of the function .responseJSON the answer is already serialized. You just need to do: Alamofire.request(url).validate().responseJSON { response in if let array = response.result.value…
-
0
votes3
answers424
views -
0
votes1
answer72
viewsA: Nodejs file is undefined
You need to connect the connect-multiparty middleware in the route setting. Try the following: var multipart = require('connect-multiparty'); var path = require('path'); var multipartMiddleware =…
-
3
votes2
answers594
viewsA: Error instantiating python OO objects
There are two problems there. Let’s go in parts, first remove this import line and remove indentation of the variable car and caro2: class Veiculo(object): placa=None cor=None cidade=None…
python-3.xanswered Edudjr 207 -
1
votes3
answers1440
viewsA: Javascript - How to pass parameters to a function of an Event Attribute
I do not know if I understood how you want to use the function, but this is the expected behavior. Think of onClick as an event that can be triggered at various times in the code, but you have to…
javascriptanswered Edudjr 207