Posts by André Santos • 5 points
7 posts
-
0
votes2
answers301
viewsA: Validation of regex URL
^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:?#[\]@@!\$&'\ (\)\*\+,;=.]+$ Just take a bar :D. Test the one I sent up. I always use the regex101.com site to test. Get in there so you can…
-
-1
votes2
answers1163
viewsA: Play javascript audio automatically
Chrome disabled the autoplay feature. To be able to play on any media that has sound, it is now necessary to have a previous user interaction, or at least the page be marked as a favorite. Follows…
-
0
votes1
answer32
viewsA: Group By com sql server
Probably some of the ai fields have empty spaces. Try using RTRIM and LTRIM also in group by, this could be it
-
1
votes3
answers211
viewsA: Sum of Total Positive and Negative Hours
I believe that your sum occurs correctly, but when it comes to showing the result, as you convert to date format, it makes confusion with times greater than 24 hours. Try to do the operations with…
phpanswered André Santos 5 -
0
votes1
answer49
viewsQ: I need to stop an AJAX processing and later redirect the page
Hello, I have the following problem: I upload my homepage, and on this page is brought a select in the very heavy bd, so I made the page load, and then made an AJAX request to bring and display that…
-
0
votes2
answers289
viewsA: Auto play(audio) with Javascript
Add the Javascript call to the body of your html, so once the page is rendered the JS will run: function play() { document.getElementById("musica").play(); } play();…
-
-2
votes4
answers31971
viewsA: Can I write Javascript in PHP?
Take the word var out of the function argument, and see if it works, as below: $color = "red"; echo(" <script> function change_background(cor) { if(cor == 'red') {…