Posts by Jose Maximilian • 773 points
31 posts
-
4
votes1
answer351
viewsQ: How to create a simplified jsFiddle version
jsFiddle uses json to save CSS/HTML, Javascript/Jquery? Probably this json is saved in a bank. The series 4fh0xdpc would be the ID in the bank. http://jsfiddle.net/4fh0xdpc/ Each update generates a…
-
3
votes1
answer1892
viewsQ: write json file to database
it’s a good idea? was thinking of doing a project where the user will create several elements dynamically (tables, choose a certain option, fill in etc), these elements generated dynamically should…
-
1
votes1
answer117
viewsQ: Problems cloning a checkbox (bootstrap plugin)
http://jsfiddle.net/yusy7zr8/2/ I’m using a bootstrap plugin: http://www.bootstrap-switch.org/ I’m trying to clone this checkbox, but the checkbox is not being checked (for on and off) after being…
-
1
votes2
answers1075
viewsQ: How to apply style only to modal (Bootstrap)
$head = '<!-- ARQUIVOS CSS --> <link rel="stylesheet" href="css/estrutura-informacoes-BD.css" /> <link rel="stylesheet" href="css/botoes.css" /> '; echo $abreTagHead. $head.…
-
3
votes2
answers427
viewsQ: print table from a defined size array
<table border='1' id="tabela"> <tbody> </tbody> </table> would like to print differently $(document).ready(function(){ var i =0; while(i< 100){ var resto = i%10; if(i%10…
javascriptasked Jose Maximilian 773 -
2
votes1
answer159
viewsQ: how to make a query that the user himself can generate?
Is there any material to learn? For example: I have a pet shop: Let’s say in my HTML I have several select boxes (animal, breed, gender, age, etc), in it I can select the dog or select dog >…
-
2
votes1
answer132
viewsQ: helps in removing a certain string
test content.txt <td><input type="radio" name="pg1" value="SIM" /></td> <td><input type="radio" name="pg1" value="NÃO" /></td> <td><input type="radio"…
javaasked Jose Maximilian 773 -
2
votes1
answer91
viewsQ: Why is my radio input returning "on"?
Have this code: $(document).ready(function(){ $("[name='valor1']").on('blur',function(){ $(".empresa1").text($(this).val()); $(".valor1").val($(this).val()); });…
-
1
votes1
answer1978
viewsQ: how to open a json and popular file in a jquery datatable?
I have a gigantic json file and wanted to open it in a datatable jquery I made a script that populates the . json file in a jquery datatable table, but the problem is that it is not populating the…
-
2
votes2
answers89
viewsQ: Problems printing a JSON table
I can’t print the table, what’s wrong with my code? var json = [ { "tempoNS":104095548, "tempoMS":104, "tamanhoArray":9000, "nome":"Bubble iterativo" }, { "tempoNS":84671736, "tempoMS":84,…
-
8
votes3
answers7156
viewsQ: generate a json file with java
Iterative insertion: 7841910ns - 7ms Iterative selection: 2677762ns - 2ms Iterative merge: 708154ns - 0ms This algorithm was made in Java, in the java console is printed several values, being: name…
-
2
votes2
answers786
viewsQ: What is the simplest way to print an idented javascript text to html?
have to print this in an easier way? public static void swap(int[] list, int i, int j) { /* This method simply takes an array and swaps its values at index i and j */ int temp = list[i]; list[i] =…
-
1
votes2
answers570
viewsQ: color a certain row, column during an iteration
I found this script that colors every time I click on a row, column in particular, but I wanted to color a column, row during a certain condition. my idea was to make the same example:…
javascriptasked Jose Maximilian 773 -
4
votes1
answer4944
viewsQ: What is Javascript interrogation for?
Citing an example: if(this.gap > 1 || !this.sorted) { this.sorted = true; this.gap = parseInt(this.gap / 1.3) == 0 ? 1 : parseInt(this.gap / 1.3); setTimeout(this.name +…
javascriptasked Jose Maximilian 773 -
0
votes0
answers222
viewsQ: getJson is not working
I think there’s a problem here: api/combobox_cidades.php?search=, if I put the php file combobox_cidades.php in the main folder (writing only: $.getJSON('combobox_cidades.php?search='), works. now…
-
0
votes1
answer176
viewsQ: modify an input and update
php Could someone give me tips on implementing a part? i had printed an input of type text inside the while loop: "<td><input type='text' value='".$valor['url_video']."' style='width:…
-
2
votes1
answer73
viewsQ: problems when updating a table
I’m a beginner in php. Does anyone know why it’s not working? It does the correct update of integer values, but if it is a string of letters it does not work html It will type here a url to do the…
-
1
votes1
answer568
viewsQ: Is there any software that analyzes the complexity of an algorithm?
is there any software that does the complexity analysis of an algorithm? if yes, I would like to know which
-
0
votes1
answer17276
viewsQ: How do I get an input text value?
within that input there is an ID number, I would use that ID to do a search in the bank. how do I get this ID that is in an input text and "game" in php for me to use it as a search? should one do…
phpasked Jose Maximilian 773 -
1
votes1
answer372
viewsQ: Show a div with jQuery
I’m trying to show two divs (container-imagem-upload, container-tipo-video), but it didn’t work. It’s showing the div and disappearing. CSS .container-tipo-video {margin-top: 50px; display: none;}…
-
1
votes1
answer98
viewsQ: hint of implementation
I made a page using the tag <video>, as code below: function teste(){ var url = document.getElementById('mudarVideo').value; if(url === '') { alert('campo Vazio'); } else { videoConteudo =…
-
1
votes1
answer287
viewsQ: Isn’t it right to connect the database only once and then go through the records?
<?php class Usuario { private $login; private $senha; private $admin; //variaveis internas private $bd; //conexão com o banco private $tabela; //nome da tabela public function __construct() {…
-
3
votes1
answer265
viewsQ: Is there any way to move the input width and continue auto resizable in Bootstrap?
<div class="col-lg-6" > <input type="text" class="form-control" style="width: 900px;"> </div> ps. just put a big value on width to test out... If I do it this way my input won’t…
twitter-bootstrapasked Jose Maximilian 773 -
2
votes1
answer214
viewsQ: table with styles is not working with bootstrap
HTML: <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet"…
-
2
votes1
answer1289
viewsQ: pass an array of objects to another page
scoreBoard.push({ acertosOuErros: acertoOuErro, multiplicacao: resultado }); This is my array made in javascript, I wanted to pass this array of objects to another page for me to treat it (I would…
-
4
votes2
answers2071
viewsQ: Javascript with Object Vectors
var Carro = function(){ var marca; var modelo; //this.setMarca = setMarca; this.setMarca = function(_marca){ this.marca = _marca; } this.setModelo = function(_modelo){ this.modelo = _modelo; }…
javascriptasked Jose Maximilian 773 -
3
votes1
answer159
viewsQ: Help with basic Javascript (timers)
my question is this:: <!DOCTYPE html> <html dir="ltr" lang="pt-BR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />…
-
1
votes2
answers213
viewsQ: How can I get the text inside a combobox?
How can I get the text inside the combobox to add to the database? For example, "AC" or "AL". <select> <option value="1">AC</option> <option value="2">AL</option> ...…
-
1
votes1
answer116
viewsQ: Stop the loop when you find a result
public Objeto busca(String nome){ for(Objeto id : MinhaLista){ if(id.getNome().equals(nome)){ return null; } else { return id; } } } this is the code, it’s returning the id or null repeatedly. how…
-
5
votes2
answers2276
viewsQ: Methods without parameters and with parameters
Declaration methods without parameters: void exemploDeMetodo(){ int i; } Calling methods without parameters: exemploDeMetodo(); If I want to make a method with parameters it’s like? That’s the way…
-
1
votes2
answers207
viewsQ: Method and Sub-programme
Both mean the same thing? void subrotina(){}; Isn’t that called method too? People don’t say they’re going to do a subprogram that does something, usually people say, "I’m going to do a method that…