Posts by Tiago Luz • 154 points
11 posts
-
1
votes2
answers1074
viewsA: Remove semicolon from a JS string
Number formatting is not something you need to invent the wheel, unless you really want to. In addition to several ready-made classes, you can use native JS methods to do this, already supported by…
-
0
votes1
answer76
viewsA: Is it possible to add img to CANVAS after window.load?
Hello. It seems that your code has confusion between backend and frontend. You are informing that the output of your PHP will be a gif: header("Content-type: image/gif"); But you’re writing JS code:…
-
0
votes2
answers55
viewsA: Even without giving errors, the information is not saved in the database
You are mixing private property $Pdo with global $Pdo. Within the registration() method, use $this->Pdo and do not use the global $Pdo. Now, if you create $Pdo outside of the class, you can…
-
0
votes1
answer154
viewsA: Windows server with high latency using IIS
Hello! The ICMP (ping) response typically measures network latency, regardless of the operating system, or consumption of the operating system. However, the ICMP has low traffic priority, so if your…
-
0
votes4
answers1152
viewsA: How to transform a string into an object?
You can do this with the function eval($code) php. Whatever is in $code will be executed as if it were PHP code. Beware of possible security breaches! At this link is the explanation.…
-
1
votes1
answer587
viewsA: Send Image to Server
Hello! You are sending the byte image[] to the server for some special reason ? Why don’t you use an http lib to send the file over HTTP POST ? It will be much simpler, and you don’t need to invent…
-
0
votes3
answers555
viewsA: No Return Json to Ajax
Just one more detail. When you enter dataType: 'json', the callback Success parameter is already a json object, i.e., JSON.parse is unnecessary and can generate an Exception in some cases. Your JS…
-
2
votes1
answer131
viewsA: JSON with value - Null App List
Gabriel, I reviewed your code and I didn’t find anything too obvious of error. So I’ll suggest to you to test some things: 1) Is json coming correctly ? In the Httphandler class puts a Log. d of the…
-
0
votes3
answers4104
viewsA: Auto height in iframe?
Unfortunately, you cannot leave iframe with automatic height according to content. The only way to solve the problem is to implement a Javascript inside the iframe that sends the body height (from…
-
2
votes1
answer67
viewsA: Get news through the URL
To do this you will inevitably need to make an HTML Parsing of the page. You will need to use a DOM parser to do this. What DOM Parser will do is take the HTML you downloaded and turn it into a DOM…
-
1
votes1
answer80
viewsA: JAVASCRIPT DESKTOP BACKEND
You can develop javascript backend using the technology Nodejs. With Node you can connect to several databases like Mysql, Mongodb, Redis, Postgresql, etc. Take a careful look at Nodejs + express.…
javascriptanswered Tiago Luz 154