Questions tagged as 'javascript'

2
answers

Is it possible to send a list of javascript objects to a function in the contoller?

I am returning a list of data of an object type (GAR) of the actualizarGARs function of the controller: var listaGARTratadas = db.GAR.ToList(); return Json(listaGARTratadas); And in javascript I wanted to send this list of objects ba...
asked by 25.08.2014 / 17:48
1
answer

Javascript form validation works in IE but not in Firefox [closed]

Good afternoon everyone. I'm trying to validate a form by checking if the value field is filled in and is greater than 0. It worked perfectly in IE, but in Firefox it does not work for anything in the world! Follow the code: <scri...
asked by 16.09.2014 / 19:46
1
answer

how to get url from console requests in javascript

I need to get the url of a get from the console I want to know this because I have an iframe that I need to get the url from a get of it only in the url there is a random variable that keeps changing whenever I give reload there is some way I ge...
asked by 15.06.2016 / 23:54
1
answer

How to refresh on another page after entering data in the bank

I am creating a system of attendance where there is a screen only to display the passwords that are being registered in the database. The problem is that I can not update the passwords in real time, because I'm calling them from another page,...
asked by 03.05.2016 / 16:35
2
answers

Problem with Utf 8 in txt file reading

I'm using the following directive to read txt files, however the texts are coming out broken. link     
asked by 02.05.2016 / 21:33
2
answers

What does if (variable) {/ * action * /} mean?

By putting only the variable within if , for example if( variavél ){ /*ação*/} What does this if mean? And contrary if( !variavél ){ /*ação*/}     
asked by 27.01.2018 / 23:42
4
answers

How to put image in input type reset?

You can put an image in the input with    type="image" But it stays as submit and I want to leave the    input type="reset" With image also but without being like submit and yes to reset the information entered by the user in the f...
asked by 26.01.2017 / 20:32
2
answers

How to create a Javascript cookie?

I want to do the following step: se (cookie[titulo] existe){ altera o valor dele para $valor }se nao { cria um com $valor } NOTE: I have a function that creates the cookie, called GerarCookie(nome,valor,tempo) . Now, how to...
asked by 25.02.2016 / 00:22
3
answers

How to select the content of an input in ng-focus?

In an input I have a method that selects the contents of the field when clicking on it. <input ng-click="selecionaTudo($event)"> The function is this: $scope.selecionaTudo= function($event){ $event.target.select(); } It wo...
asked by 23.03.2016 / 13:08
2
answers

Export HTML form to PDF with input field initialized by js does not appear in Pdf document

I have an HTML form where each input tag has its empty value attribute. This value attribute must be filled in randomly by a javascript code. So far so good. The problem is that when I use the plugin (jspdf) to submit this form to a PDF output,...
asked by 11.03.2016 / 15:11