Questions tagged as 'javascript'

3
answers

Update a table using javascript and arrays

What I need to do is simple, but as I'm a beginner in the PHP and Javascript art, I'm beating myself a little. What I need to do is the following. I have a screen of requests, where I will register the data of the request, until then, okay. S...
asked by 02.04.2014 / 14:28
1
answer

Retrieve Text and Value from Select with KENDO MVVM

I need help from vcs, anyone who has knowledge on KnockoutJS I have something like this: var viewModelPessoa = kendo.observable({ Contatos: [], FormContato: { TipoContato: -1, //Aqui vai o indice/value do select/optio...
asked by 27.03.2014 / 16:07
1
answer

Javascript: Master tab

I need a certain function in a project, I need some functions to only execute in a tab of my site, for example ... The user is in the HOME tab but the SOBRE , CONTATO tabs are open and on that site plays audio depending on wh...
asked by 10.06.2014 / 02:52
1
answer

How to make a function return result just after click?

When using the confirm() function in JavaScript, it usually looks like this: var resultado = confirm("Deseja realmente confirmar?"); if(resultado){ //confirmou... } I would like to know if there is any way to do the same thing wi...
asked by 10.06.2014 / 23:58
1
answer

Print return text json in middle of code - JQuery / JavaScript / JSON

I have a chart that is created according to the year, which is passed by AJAX and returns a JSON containing the values to create the chart. Well, I send AJAX with the year, I return the JSON, however ... It makes a mistake, it creates everything...
asked by 20.06.2014 / 00:11
1
answer

How to check radio button option and show corresponding HTML table

Situation: We have three tables in the same form the first one contains the radio button: <td> <input required="required" value="Evento" name="tipo" id="evento" type="radio"> <label for="tipo">Evento.</label> <input...
asked by 12.03.2014 / 06:19
1
answer

How to add a value sent from an onclick to the Ajax 'date'?

I have a table in HTML and in a table column there is a link that opens a Modal. In this way I make approval records and show who approved and the date of approval (more than one person can approve, so he has a list of approvals). To do t...
asked by 20.03.2014 / 15:24
1
answer

Send file to site and get file path

I would like to send a file to a input type file and retrieve the full file path. If anyone knows something like this it will be very useful to me.     
asked by 06.03.2014 / 18:40
2
answers

Jcrop distorting the image at the time of selection

I want to use Jcrop in .dialog() , but it is not working correctly, Jcrop selection is getting wrong, distorting the image: Insteadofdoingso: The js looks like this: $('.imagem_principal').live('click', function() { var foto =...
asked by 08.03.2014 / 14:10
2
answers

Change RG mask [duplicate]

The RG mask comes with a different pattern that I need! RG Code: function Rg(v){ v=v.replace(/\D/g,""); v=v.replace(/(\d)(\d{4})$/,"$1.$2"); v=v.replace(/(\d)(\d{4}...
asked by 24.06.2014 / 15:50