Posts by abduzeedo • 753 points
53 posts
-
-2
votes2
answers7149
viewsQ: Simulate Click in Javascript
I found a code that simulates the click of a button, but I need to call a function in javascript and pass a string, how would that look ? document.getElementById("meuElemento").click();…
javascriptasked abduzeedo 753 -
-4
votes3
answers547
viewsQ: Display value of an Indice array in an Alert
Hello How do I display a value of an array Indice in an Alert in javascript? a[i] = "Carro"; alert(a[i]); Thank you…
javascriptasked abduzeedo 753 -
0
votes2
answers36
viewsQ: Send value to javascript function
Hello I’m trying to send a value to function by clicking the button, which may be wrong ? echo"<button id=".$nome." onclick='produtoComprado(/'".$detalhes."/')'>".$nome."</button>";…
-
1
votes1
answer37
viewsQ: Generate button in DIV?
I have a DIV call ( meusBotoes ) and I would like every loop of while generates a button inside the DIV with the value of the variable $nome and with the onclick calling function display(). Man…
-
0
votes0
answers15
viewsQ: Dynamically create javascript array
I want to do something but I don’t know if it’s possible, come to my idea. Suppose I have a page called index.html inside it has a javascript code that receives data from a select that is on another…
-
-3
votes2
answers49
viewsQ: Timed in while loop
Hello I have a while loop in PHP, I would like to run the loop while 1 time every 20 seconds, has like ? Thank you
-
0
votes3
answers947
viewsQ: Insert PHP into Javascript
Hello I need to get the results of a SELECT in PHP and display in a ALERT within a function in JAVASCRIPT, where when performing the function JAVASCRIPT wheel the PHP and the WHILE. How can I do it?…
-
0
votes1
answer79
viewsQ: How to clean up Google Blockly?
I am using in my project Google Blockly and need that when I click a button, empty the mounted structure that is in memory. How can I do? https://developers.google.com/blockly/reference/overview My…
-
2
votes3
answers914
viewsQ: Insert two points into the string
I have the following string: $valor = "0050"; How do I insert two points after the second house and stay this way? 00:50
-
0
votes1
answer87
viewsQ: Search phrase in database
Hello I’m getting a parameter via GET which is a phrase ( The Rat Gnawed Upon the Clothes of the King of Rome ) and desire by means of a SELECT using the clause WHERE search this phrase in the…
-
2
votes2
answers80
viewsQ: Doubt select in two tables
I’m making a system in PHP, but I’m stuck because I can’t find the solution to a challenge. I have 2 tables, a call objetos and another call gavetas. I have several names of drawers registered in…
-
2
votes3
answers499
viewsQ: Concatenate Javascript with PHP
I’m trying to concatenate PHP with Javascript, but I’m not getting it. <button onclick="gravaDados('/" . <?php echo nomeCliente; ?> . /"')" class="btn-playpause">Play</button>…
-
0
votes1
answer487
viewsQ: Handle Cache with Jquery
Hello I need to work with the cache of all browsers, I need to store data in the cache and then read using Jquery. Does anyone know any site with tutorial on the subject ? Thank you…
-
0
votes3
answers208
viewsQ: Read input
I’m trying to read the text within a field input, but it’s not working, which could be wrong? My code: <input type="text" id=-"campo-de-busca" onKeyPress="teclaPressionada()"…
javascriptasked abduzeedo 753 -
1
votes1
answer922
viewsQ: AJAX request in Bootstrap
Hello I am needing to open an external page through an AJAX request on my ROW in Bootstrap, but I am not succeeding, I am following the tutorial of the link below, but it is not opening my page in…
-
0
votes2
answers226
viewsQ: INNER JOIN Mysql error and JSON view
Hello I need to display the results of a SELECT with INNER JOIN in JSON format, my query is working, because I tested inside PHPMYADMIN, but my page does not work, I have tested everything, what can…
-
2
votes1
answer143
viewsQ: Select with LIKE and POST
Hello I’m trying to use a LIKE in a SELECT, the data turned via GET, but it doesn’t work, which may be wrong ? $nome = $_GET['nome']; $row=$db->prepare("SELECT * FROM cadastro WHERE nome LIKE…
-
0
votes1
answer59
viewsQ: Doubt JSON PHP
I’m trying to display on the screen a structure JSON which will be built by Mysql, but I would like to separate the results into groups according to the name of the fields I set in select and would…
-
0
votes1
answer51
viewsQ: Query for Search Field
I need to make a query to search all records that have the term typed in a input, for example: Car, be returned blue car, green car, etc... My query current: $query = "SELECT * FROM veiculos WHERE…
-
-2
votes1
answer483
viewsQ: Row and Column Loop in PHP
I’m trying to make a loop where every 5 records on the line, skips a line and so on until it reaches 6 lines, when it gets to 6 lines for the loop. Example: 12345 12345 12345 12345 12345 12345 Para…
-
2
votes3
answers193
viewsQ: How do I open a DIV that occupies the entire internal space of the browser?
How can I open a DIV that occupies only the internal space of the browser, where websites are displayed?
javascriptasked abduzeedo 753 -
1
votes1
answer866
viewsQ: Delete parentheses with php
How do I eliminate parentheses and the trait of this variable in php ? $var = " ( 1 ) - ( 2 ) "; Final result: It would be an array separating the numbers, example: x[0]; -> 1 x[1]; -> 2 I…
-
0
votes2
answers6514
viewsQ: Mask in input field
Hello I have an input where I enter a currency value of R$1,000.00, I want the field to have a mask to help the user fill in, but I want javascript not to take the value with the mask, but without…
javascriptasked abduzeedo 753 -
2
votes4
answers544
viewsQ: Error set getElementById?
I have an element where the attribute id is a whole. I’m trying to define, but I’m not getting. I’m doing like this: var 1 = document.getElementById(1).value That is correct?…
javascriptasked abduzeedo 753 -
1
votes2
answers58
viewsQ: Strange error when adding
I have 2 input fields and need to add the value of their contents when typing, but I noticed that when I type the first value in the first input appears NaN only when I type something in the second…
javascriptasked abduzeedo 753 -
0
votes0
answers48
viewsQ: Set height in boostrap
Hello How I define the height of a line in Bootstrap 4 ? My code: <div class="row doc-grid"> <div class="col-md-3">.col-md-8</div> <div class="col-md-9">.col-md-4</div>…
-
5
votes2
answers1196
viewsQ: How to separate words from a string?
How do I separate the words from that string in separate variables with PHP? I’d like to do something like this: $frase = "O + rato + roeu + a + roupa + do + rei + de + roma"; for(i=1;…
-
0
votes2
answers566
viewsQ: Display selected input value
I have two inputs with their respective ID’s, I would like Alert to be displayed the value entered in the selected field, so if I am typing in field 1 will be displayed the value in Alert referring…
-
-1
votes1
answer952
viewsQ: Error - mysqli_num_rows
Hello I want to check the number of records in the bank and display on the screen the amount of records, but it’s not working, which may be wrong ? <?php include '../include/connection.php';…
-
2
votes1
answer6089
viewsQ: Move div down
I have 4 Ivs on my page, next to each other, as I can do, so that the last div is aligned left on the bottom line ? My Code: <!-- DIV 1 --> <div style="float: left; width: 100px; height:…
-
0
votes1
answer246
viewsQ: Change title menu text
Hello. I purchased the theme from a store to Woocommerce, and I would like to change the text of the options menu, as I do ? Thank you…
-
0
votes1
answer1942
viewsQ: I can’t import themes in wordpress
I’m trying to install a theme in Wordpress, but appears this error: ( Warning: POST Content-Length of 46588481 bytes Exceeds the limit of 8388608 bytes in Unknown on line 0 ) Thank you…
-
0
votes1
answer453
viewsQ: Detect SHIFT key pressed and direct mouse click
Hello I need to create a shortcut where by pressing the SHIFT key + LEFT mouse button, displays an alert. How to do this very simple and using Jquery ? Thank you
-
0
votes2
answers94
viewsQ: How to implode to remove characters other than the +(plus) sign with Javascript?
I have this variable: 10 + 20 + 30 + 40 + 50 = 150. I want to know how I can use the implode() Javascript to remove anything that is in front of each number, can be any sign or special characters,…
javascriptasked abduzeedo 753 -
9
votes3
answers4722
viewsQ: How to make a border lower than 1px?
Can I make a border with CSS lower than 1px? Because in my layout it got too thick.
-
0
votes2
answers56
viewsQ: Function to expedite select
Hello I am developing some functions to quickly insert select and avoid filling PHP code in the pages, I create a function called select_start and another function called select_terminus and when I…
-
1
votes1
answer56
viewsQ: Add values in DIV
Hello I have 3 inputs, I would like when typing something in input 1, to insert the contents in a result called div, and when typing in input 2 be inserted in the result div and so on, without…
javascriptasked abduzeedo 753 -
3
votes2
answers685
viewsQ: Detect Shift key is pressed
I need the javascript detects if the key shift is being kept pressed, while it is running the function, when the user drops, stops executing the function. I’m trying to use this code on Jquery…
javascriptasked abduzeedo 753 -
0
votes0
answers98
viewsQ: How to best interact Javascript with a PHP query
Hello I have a javascript function that reads the browser localStorage that represents the client ID and displays the result of the localStorage read in a DIV. I would like javascript to bring the…
-
2
votes3
answers1244
viewsQ: Show Data in Div Jumping Line
I need to display the result of the loop FOR in a DIV, jumping line, how can I do? Example 1 2 3 4 5 My Code: for(i = 0; i <= keyCliente; i++){ document.getElementById("divExibir").innerHTML = i;…
javascriptasked abduzeedo 753 -
0
votes2
answers431
viewsQ: Increment when calling javascript function
Hello. I would like that each time I call the function is incremntado the value of ( i ) and displayed in Alert, do not know what I’m doing wrong. My code; function incrementar() { var count = 0.…
javascriptasked abduzeedo 753 -
0
votes2
answers642
viewsQ: Automatically fit DIV with CSS
Hello I’m trying to get s div’s to automatically fit together next to each other and if there’s no space on the side go and automatically fit from left to right, but it’s not working. NOTE: What…
-
0
votes3
answers425
viewsQ: Format CSS with PHP
Hello I’m displaying an HTML content with CSS formatting using PHP print_r, but I’m having doubts when the simple quotes, I opened the STYLE with simple quotes, but inside the image selection has 2…
-
1
votes1
answer146
viewsQ: Javascript - Hide DIV function does not work
Hello I have a div on my page that is defined as ( display: None ) and when clicking on the link hides or displays, but I’m not understanding why my function is not working. Code: function…
javascriptasked abduzeedo 753 -
0
votes2
answers56
viewsQ: Bug Tin console Google Chrome
I was developing a system where I updated a page and started to show a strange error in the Google Chrome console, what can it be? How to solve? Font from origin 'http://error.hostinger.eu' has been…
-
0
votes3
answers156
viewsQ: How to select users with the STATUS field =1 in the user table?
I have a table called USUARIOS with the fields NAME, STATUS. Suppose I have 10 registered users. How can I check if the 10 users have STATUS = 1 and if so, displays on screen one (OK). I know you…
-
3
votes3
answers4021
viewsQ: Changing Onclick Javascript does not work
Hello I’m developing a very simple javascript script, where when you first click on the button, it calls the function pupil() and by clicking the second time on same button calls the function…
javascriptasked abduzeedo 753 -
1
votes3
answers355
viewsQ: Adjustable div with css
How can I make the div to adjust and align the top div automatically ? Because this div is inserted dynamically. I’d like to do that. Thank you…
-
1
votes1
answer124
viewsQ: Error - Lighting Led with 74HC595
Hello I’m trying to light the led 1 that is in the pin 1 of 74HC595 and the rest are erased and then erase the led 1 and light only the led 2 that is in the pin 2 of 74HC595, but the problem I’m…
-
0
votes0
answers43
viewsQ: Send String by Softwareserial
Hello I have a string and would like to send by Serial. But this giving error and not compiling. My code: #include <SoftwareSerial.h> SoftwareSerial swSer(2, 3); String variavel = "Hello";…