Questions tagged as 'javascript'

4
answers

Last Son of Element Chain

I have a table of records and need to update the last element within a <td> , assuming I have the code below, is there any way to handle the last element of the string, the element span with class? Some way more direct than...
asked by 27.10.2016 / 18:15
1
answer

CSS Setup for Dot Matrix Printer

Well, my problem is this. I am developing a web system and I use ASP.NET MVC, I was able to generate a tab where the layout I present is null . However, I was unable to set up the print correctly for a dot matrix printer. The size of the m...
asked by 31.10.2016 / 14:21
1
answer

Remove object over time

Well, I have the following modal <div id="alerta-imagem"> As imagens de perfil precisam ter altura e largura proporcionais, com tamanho máximo de 200x200 </div> I looked in google some ways, but I only found setTimeOut()...
asked by 23.10.2016 / 03:22
2
answers

How to remove 401 error message from the console with AngularJS / Javascript?

I get the following error message in my console: POST http://localhost:8080/minhaURL 401 (Unauthorized) I would like to know how I can remove this error log from the console, since I am already giving a visual feedback to the user that he m...
asked by 18.01.2017 / 14:42
1
answer

How to use Ajax with AntiForgeryToken?

Follow the code: //AntiForgeryToken function gettoken() { var token = '@Html.AntiForgeryToken()'; token = $(token).val(); return token; } Ajax and formData: var formData = new FormData(); var file = document.getElementById("im...
asked by 13.01.2017 / 01:31
3
answers

How to put a element in Fullscreen [duplicate]

I looked for a little bit about the same in google and most people talk to use position: absolute; z-index:9999; width:100%; height:100%; top:0; left:0; But the code above only works to by in fullscreen inside the window, and that's not w...
asked by 17.01.2017 / 11:54
1
answer

javascript validate if the number contains +/-

I have a problem, I have a function that makes a debit in the database, but if the User changes the amount by placing arithmetic operators the value becomes negative, thus crediting credits to the user instead of discounting. How can I valida...
asked by 02.11.2016 / 00:35
2
answers

Opening another page with Angular and Sweet Alert

I'm trying to open a page in javascript with angularjs. I need when I click on the bt it asks a question and depending on the result, open a link with the url true or false. I can do this, but the page only opens if I click the button again. Her...
asked by 07.11.2016 / 18:54
1
answer

Open DIV with Select in div Cloned with jquery

I have a div that can be "cloned" in jquery, so when I click on "Show Product" the product tab will appear and it will show a select, and clicking on that select open the GROUP 1 div (inside the product div) inside this div opens another select...
asked by 08.11.2016 / 15:57
1
answer

How to do text truncation without cutting .Net words?

I'm trying in a number of ways to days but I have not been able to get this script to get the value of <h3> and return the text to it truncated. JavaScript: <script type="text/javascript"> function truncar() {...
asked by 27.09.2016 / 14:31