Questions tagged as 'javascript'

1
answer

Height and width SVG

I have an SVG element and I want its height and width to fit according to the resolution. For this I'll get into javascript through the screen.width. Now I wanted to insert this value into the svg tag. Is it possible to do this? <script>...
asked by 20.02.2015 / 17:29
1
answer

how can I enter the value of an input type="file" into another type of hidden input

How can I insert the value of an input type="file" into another type of hidden input. Please help I know it's a baby question anyway please help guys. I want it done in javascript or jQuery or php     
asked by 21.03.2015 / 10:37
1
answer

How to switch txt message according to field focus

In this question I saw how to read the .txt ~ > Read txt Now I want to know: If I leave a field in focus , and it's about the tooltip message, it should show a message regarding that field. > Ex: If I leave the password field...
asked by 10.12.2014 / 12:31
1
answer

How to insert a Client with javascript in HTML5

var clientes = []; function classClientes(nro, nome, sexo,dataNasc) { this.nro = nro; this.nome = nome; this.sexo = sexo; this.dataNasc = dataNasc; } function criarCliente() { var numeroCliente = document...
asked by 12.02.2015 / 23:31
1
answer

Convert Dictionary to an Array

I have a Controller that generates a list of Graphics as can be seen below: [EXEMPLO DE DADOS] Pergunta: Estrutura Dados: [1, 3] [2, 5] [3, 1] [4, 0] [5, 10] Pergunta: Organização Dados: [1, 2] [2, 0]...
asked by 13.02.2015 / 11:39
1
answer

How to use JQuery Sortable?

I have this code where I'm using sortable of JQuery. But I'm having problems because I'd like each item to be moved only by ico , but the current code lets you drag each item from anywhere in it. Can anyone help me?     
asked by 20.07.2015 / 20:38
1
answer

Help with Javascript code

I did not quite understand what they wanted to do in this code. You should open a Div with a basic form. My code: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><...
asked by 20.07.2015 / 19:38
1
answer

How not to leave an image to load in javascript

I have one more page just want her images to load when the user performs an action. Are there any javascript or jquery functions to do this?     
asked by 20.07.2015 / 15:33
1
answer

Fill ValidationSummary with Data Annotations Errors in Submit by AJAX

Define several DataAnnotations for the template which the instance instance. When the form submission is not for AJAX, everything works as it should, that is, ValidationSummary is populated with ErrorMessage defined in my classes....
asked by 20.07.2015 / 03:59
3
answers

Show / Hide div when clicking menu

Well, I have a problem with the code, I intend to press a Menu button to hide all the DIV except one, but it is not working, can someone help me please? @import url(http://fonts.googleapis.com/css?family=Raleway); #cssmenu, #cssmenu ul...
asked by 11.03.2015 / 21:59