Posts by Renoir Reis • 508 points
17 posts
-
-1
votes2
answers433
viewsQ: Large data volume datatables
I am researching solutions to load a large volume of data on a page with Datatables and I would like to know if Datatables already have a function in which it will be ordering portions of data along…
-
6
votes4
answers11013
viewsA: Validate phone number with optional ninth digit
Friend, some time ago I used the following regex to make its validation: (\(?\d{2}\)?) ?9?\d{4}-?\d{4} I added the same to the regexr community: http://regexr.com/3emuj I hope I’ve helped. P.S.: You…
-
0
votes0
answers77
viewsQ: Problem in content processing
I am suffering from an atypical value processing of my textarea manipulated by the ckeditor. What can I do to avoid the error displayed in the Firefox samples below: CKEDITOR @ Chrome for Windows 1.…
ckeditorasked Renoir Reis 508 -
1
votes1
answer94
viewsQ: How to ensure that an element will have the DOM event?
Good afternoon, Today I am facing a rather strange bug in my application: I have a textarea field where I type a body of email and just below it a button that when clicked obtains the content of the…
-
1
votes1
answer211
viewsQ: Implement Loader while loading the page
I would like to better understand a resource widely used in web systems where you access a page it displays a 'Download' while the content is not ready. How to implement this in a PHP system that…
-
3
votes1
answer1465
viewsQ: How Pdostatement::fetchObject works
I am trying to set the values returned from a query to an object in another class as follows: public function select($id,Cliente $cliente) { $query = "SELECT * FROM compras WHERE id = :id AND email…
-
1
votes3
answers1869
viewsA: How to make '$_SERVER['REQUEST_URI']' accept GET variables
Thanks to Miguel’s help I was able to solve the problem using the following solution $isCardapio= strpos($_SERVER['REQUEST_URI'], '/painel/cardapio.php'); if($isCardapio=== false){ header('Location:…
-
1
votes3
answers1869
viewsQ: How to make '$_SERVER['REQUEST_URI']' accept GET variables
Hello, I have the following condition: if($_SERVER['REQUEST_URI'] != '/painel/cardapio.php'){ header('Location: cardapio.php'); } but I’m having trouble because the cardapio.php can be accessed…
-
4
votes2
answers34966
viewsQ: What is the correct way to use the Location header?
I am doing a course of PHP and Mysql in Alura and arrived at the part where we build the code that removes the product from the database. The page calling the delete function has to redirect the…
-
0
votes2
answers3219
viewsA: Picking up text field content via ID using Javascript
I believe what you want is this: function pega(){ if (document.getElementById("opcao1").checked == true) { document.getElementById("total").innerHTML = document.getElementById('number1').value; } if…
-
1
votes2
answers203
viewsQ: Errors with C array manipulation
Through the following code: #include<stdio.h> #include<string.h> int main(){ //Declaração de Variáveis char jogo; char times[20][15] = {"Corinthians","Atlético-MG","Grêmio","Santos","São…
-
0
votes1
answer751
viewsQ: How to create content on a page that is within iframe using innerHTML
Hello, I have the three pages listed below, an index.html (which contains an iframe), another that lists students according to the CPF typed on the previous page and javascript. I’m wanting the…
-
1
votes1
answer236
viewsQ: Conditionals and Control Flow (Codecademy Python 9/15)
Hello, I’m performing an exercise of Codecademy and I have to solve the following conditions: Match bool_one to False or not True and True result Match bool_two to False and not True or True result…
-
7
votes3
answers22225
viewsQ: How to compile a. java file using the Ubuntu terminal
I am a beginner user and I need to compile a. java file using the Ubuntu terminal, how to proceed?
-
3
votes1
answer46
viewsQ: How do I get my code to show the highest of each species?
I’m trying as follows (exercise link: SQL Teaching - GROUP BY) SELECT * FROM friends_of_pickles GROUP BY Species; Table: 1 Dave Male Human 180 2 Mary Female Human 160 3 Fry Male cat 30 4 Leela…
sqlasked Renoir Reis 508 -
1
votes1
answer58
viewsA: Javascript that replaces
Dude, try it this way, I’m kind of an amateur but maybe it’ll help: $(window).load(function() { var chatbox_script = function() { var overrided = Chatbox.prototype.refresh; Chatbox.prototype.refresh…
javascriptanswered Renoir Reis 508 -
6
votes1
answer188
viewsQ: How to get links to open in an iframe?
How do I make the page menu index.html open the pages inside the iframe contained in the same document (index.html). For example, by clicking on link down the page contato.html is carried inside the…