Posts by Leonardo • 321 points
13 posts
-
1
votes1
answer103
viewsQ: Chr() value outside the range (0.255)
I’m studying this function, but I’m having trouble understanding when we pass a value out of range (0.255) to this function. In the official documentation it presents an algorithm to find the…
-
0
votes1
answer690
viewsQ: Vector multiplication A and B resulting in matrix C
I have an exercise in Java here to solve but I could not understand exactly what I need to do, if anyone can give me a better explanation thank you! This is what I need to do: Given the vectors A =…
-
1
votes2
answers756
viewsA: Catch JSON after submitting a POST
I got it this way: $executar_transf = httpPost($url, $data); $resposta_fin = json_decode($executar_transf, true); echo $resposta_fin['errors']['0']['message'];
-
2
votes2
answers756
viewsQ: Catch JSON after submitting a POST
I’m having trouble getting the answer I have after sending a request via POST function httpPost($url, $data) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl,…
-
0
votes1
answer307
viewsQ: Problem with WHERE and BETWEEN two Mysql tables
I’m making a select based on a filter I receive from a form, but it falls into a problem I don’t know how to solve. I have two tables, the user table and the user_aula table. I need to count the…
-
0
votes3
answers109
viewsA: Execute code only if the user is not in the tab
I was able to solve it this way: var mouseFora = !$("html").is(":hover"); if(mouseFora) { // CODIGO }
-
1
votes3
answers109
viewsQ: Execute code only if the user is not in the tab
I wonder how I can make to run a script (in this case are those desktop notifications) only if the user is not open tab, I mean, I want to send a desktop notification to it only if it’s not open…
-
2
votes1
answer2760
viewsQ: Transforms . min file into "normal" file
I have a . js but he is. min wondered if it is possible to revert to the format with those "tabs" and line break, for better visualization of commands
-
3
votes3
answers713
viewsQ: How to update page title with notifications?
I’m making a script that updates the page title and puts how many notifications the user has before the current title. But as it is dynamic and updates this page to check if there are new…
javascriptasked Leonardo 321 -
1
votes3
answers1439
viewsQ: While inside another While (PHP - SQL)
I searched the forum and the internet, but I could not solve the problem yet! I am making a query in the database by PHP and searching users. After I look for the users I look for his academic…
-
3
votes3
answers1396
viewsQ: Check that the mouse is not in the element
I want to run a code, but this code can only be executed if the mouse are not about a div. I tested the .mouseout() but it checks if the mouse is out, that’s not it, I need to check if the mouse is…
-
1
votes1
answer104
viewsQ: How to fetch messages from A to B and from B to A in the same query?
I have a SELECT which does almost exactly what I need, is a chat system (Inbox) similar to facebook. Then he shows me with all the contacts that I have a conversation, but brings me the last message…
-
3
votes1
answer179
viewsQ: Problems with setInterval
Next, my problem is like this, I’m making an Inbox, so I need to update every 5s the messages. So far so good. In the div that loads the messages I put the following script: function loadInbox1(id)…