Posts by Mateus Araújo • 71 points
5 posts
-
0
votes1
answer34
viewsA: I’m having a problem researching objects inside objects
There were two syntax errors in your script, very silly thing. for (i = 0; i = The equals sign there causes an infinite loop. Use the <. for (i = 0; i < fileData.query.data.length; i++); { And…
-
3
votes2
answers2573
viewsA: Detect browser and redirect user
A more complete method to identify any browser would be with the following function: navigator.sayswho = (function(){ var ua= navigator.userAgent, tem, M=…
-
2
votes2
answers4594
viewsA: Delete string-specific word
If I understand this correctly, you can solve it using a regular expression to take the unnecessary '<br>' out of the string. $texto = "linha 1<br>linha 2<br>"; $texto =…
-
1
votes2
answers78
viewsA: Someone can help with that code
Has an unfinished string on line 8. Use: private $loadedFromPath = 'C:\Ot\\';
phpanswered Mateus Araújo 71 -
1
votes2
answers3085
viewsA: Event for when the user leaves the page
I believe you are looking for this event: window.onbeforeunload = function(){return "Deseja mesmo sair do site?"}; This will display a confirmation window when the user clicks to close the tab.…