Posts by Luis Miguel • 59 points
12 posts
-
-1
votes1
answer73
viewsA: Mysql PHP query with filtering by various criteria
There is no answer just for that, what I would do is this: In each select put an option called "Ignore" as default Do a query with the beginning of the query like this $query = "SELECT…
-
0
votes1
answer30
viewsQ: Knowing if a time period (hour) makes sense
The user will type a period in hours and it has to make sense. For example, he can say that he will be charged an on-call fee between 22:00 and 6:00 , that may be, but he can’t say for example that…
javascriptasked Luis Miguel 59 -
2
votes1
answer66
viewsQ: textarea does not accept </script> as text
In the code below I have an error, because javascript understands that I want to close the script tag even if it is in quotes. I am creating a small editor and works perfectly as long as the text…
-
0
votes1
answer40
viewsA: How to get the text of a file to be placed in a textarea
I just put no lugar de \" ( is not ' is `even backtick) that javascript accepted. Sometimes I love javascript as my life and sometimes it makes me want to kill myself. Thank you very much.…
-
-2
votes1
answer40
viewsQ: How to get the text of a file to be placed in a textarea
If I give an echo the contents of the file appear perfectly, but if I try to run this code the content even being there (echo shows) does not appear in the textarea. $conteudo =…
-
2
votes1
answer962
viewsQ: How to put parentheses or brackets in regular expressions in Javascript?
If I do something like: var word='carro'; var re = RegExp( '\\b'+word+'\\b','g' ); It works perfectly, but what follows: var word='['; var re = RegExp( '\\b'+word+'\\b','g' ); Returns: Invalid…
-
0
votes3
answers7761
viewsA: How to call Javascript functions in another Javascript
Just put: window.parent.nomedafuncao(); Example: window.parent.sw(‘teste’);
javascriptanswered Luis Miguel 59 -
1
votes0
answers66
viewsQ: When pressing space, I need the cursor to go to a correct position in the editable divide
I really need that when I press space the cursor is positioned correctly, that is, if you type test in the middle of the text it is in the middle of the text instead of going to the end. Thanks in…
javascriptasked Luis Miguel 59 -
0
votes4
answers97
viewsA: Event.clientX; and Event.clientY do not work in firefox
Thanks a lot for the tips, without them I wouldn’t have made it. Several of them could not be used because I wanted to create a function that could be called from anywhere in my project, just…
javascriptanswered Luis Miguel 59 -
0
votes4
answers97
viewsQ: Event.clientX; and Event.clientY do not work in firefox
This function is perfect on Chrome but does not work on firefox. the error is that in firefox it returns me in the console that "Event is not defined" but in chorme ta ok. The variables that are not…
javascriptasked Luis Miguel 59 -
0
votes1
answer964
viewsQ: Quote (single quote) inside quotes in javascript and php
I wanted a more elegant way to write the code below. He is passing the parameters via GET but goes with ' and I can even use a PHP function of replace but wanted a solution without gambiarra. Note…
-
1
votes1
answer182
viewsQ: innerText does not accept white space
For some reason, when I use white space, passing something to the innerText nothing happens. If I pass 'Bom_dia' everything appears normally, but if I pass 'Good morning' it shows nothing.…