Posts by Augusto Moura • 61 points
5 posts
-
0
votes1
answer214
viewsA: How to pass null value via json_encode
You are passing the null value correctly. The problem I see in your code is that you wrote $date3 in the json_encode() instead of $data3. Outside that is not guarding the return of json_encode.…
-
0
votes1
answer576
viewsA: Javascript returns the error message "Typeerror: applet.returnMD5 is not a Function" when calling Applet method
Applets have become obsolete, most modern browsers no longer support any of the technologies that used Applets (Java, Flash, etc.). And its use in the creation of websites is highly not recommended,…
-
1
votes1
answer763
viewsA: Traversing complex JSON structure with java Script
It is not necessary so many iterations. In fact it is only necessary to iterate the json.games. As the variable json.games is an array, the best way to stream it is with the method forEach()…
-
1
votes1
answer48
viewsA: error with javascript function
I never used phpStorm, but from what I understand, if it is working OK the problem is only in the editor who thinks $ has never been declared or started.
javascriptanswered Augusto Moura 61 -
1
votes3
answers32392
viewsA: Changing window.location.href does not redirect to the new page
Depending on what you would like, just redirect without the person even seeing the content of the page, it is better to use window.location.replace('//sitegenerico.com') because in such cases the…
javascriptanswered Augusto Moura 61