

sergiolopessp
Members-
Content count
15 -
Joined
-
Last visited
Community Reputation
1 ComumAbout sergiolopessp

Contato
-
Isso é provocado pela diferença entre o funcionamento dos dois objetos. Da uma olhada neste artigo, ele vai te ajudar a entender a diferença de uso: http://www.ternstyle.us/blog/float-vs-inline-block Particularmente eu acho que float não deveria ser mais usado, é dos primórdios do CSS, existem técnicas melhores hoje em dia.
-
pdf Ferramenta para exibir pdf como livro
sergiolopessp replied to leoamrl's topic in Design de interfaces e UX
Isso é uma funcionalidade do PDF Reader, se tiver usando o Adobe Reader, só configurar para: View > Page Display > Two Page View Para salvar o documento, é no momento da geração, que de tiver usando o Adobe Acrobat Pro, só configurar a vizualização inicial para Two Page View... -
Você esta querendo fazer o encoding, legal. Pode dar mais exemplo, qual é o código, o que você está tentando fazer, como está tentando fazer o encoding ou decoding?
-
Deu uma olhada no console do Navegador para ver se tem algo ali ?
-
Escolher dado de uma lista salva em arquivo
sergiolopessp replied to MWrezinski's topic in Javascript
Você quer abrir o txt para seleção? -
MANIPULAR VARIÁVEIS E GUARDAR SEUS VALORES
sergiolopessp replied to Herbert741's topic in Javascript
Sim, é possível, o importante é sempre ficar de olho no escopo em que elas existem para você usar. Depois você pode fazer isso de muitas maneiras: Element Description var myVar = 0; Creates a variable with given starting value. Type is determined dynamically. stringVar = prompt("message") Sends message to user in a dialog box, retrieves text input from user and stores it in stringVar. stringVar.length Returns the length (in characters) of stringVar. stringVar.toUpperCase(), stringVar.toLowerCase() Converts stringVar to upper- or lowercase. stringVar.substring() Returns a specified subset of stringVar. stringVar.indexOf() Returns location of a substring in stringVar (or -1). parseInt() Converts string to int. parseFloat() Converts string to float. toString() Converts any variable to string. eval() Evaluates string as JavaScript code. Math.ceil() Converts any number to integer by rounding up. Math.floor() Converts any number to integer by rounding down. Math.round() Converts any number to integer by standard rounding algorithm. Math.random() Returns random float between 0 and 1. http://www.dummies.com/web-design-development/javascript/code-to-use-in-javascript-variable-manipulation-functions/ -
É possivel transformar um numero decimal (float) em uma fração?
sergiolopessp replied to RickSilva's topic in Javascript
Já vi isso sendo feito em funções em C, aqui tem um exemplo bacana: http://stackoverflow.com/questions/95727/how-to-convert-floats-to-human-readable-fractions Acho que seria o ponto interessante de converter esse código para o função que você precisa. -
sou iniciante no meu curso de programação e queria tirara umas dúvidas
sergiolopessp replied to rhuan marques's topic in C/C++
Da pra ser mais especifico, qual é o problema, o que você está tentando fazer, qual é o erro que está dando? -
sou iniciante no meu curso de programação e queria tirara umas dúvidas
sergiolopessp replied to rhuan marques's topic in C/C++
Como assim? -
Tente usar esse exemplo: http://stackoverflow.com/questions/3061273/send-an-array-with-an-http-get
-
Amigo, você pode declarar isso na Div: <div style="overflow:scroll;height:80px;width:100%;overflow:auto"> <table width="800" border="0" class="my-table"> <tr> </tr> </table> </div> </body>
- 4 replies
-
- javascript
- primefaces
-
(and 1 more)
Tagged with:
-
O valor que define o tamanho da página, também está definindo o tamanho da foto? é isso que você codificou?
-
Fechar div ao abrir outra navegando pelo DOM
sergiolopessp replied to jonathanrn's topic in Javascript
usa o if($('#testElement').is(':visible')) { // Code } -
Como conseguir o VALUE de um OPTION em javascript
sergiolopessp replied to _M!K0L_'s topic in Javascript
O valor do option você consegue pegar pelo indice var sel = document.getElementById('select_ssd'); if (sel.options[sel.selectedIndex].value == '1') { No caso acima você estaria pegando o selecionado, mas se você usar o indice você captura qualquer valor. Se você quiser pegar o texto do campo, só usar a propriedade var text = sel.options[sel.selectedIndex].text; ou se quiser usar JQuery pra capturar: $("#elementId :selected").text(); // The text content of the selected option $("#elementId").val(); // The value of the selected option