Questions tagged as 'javascript'

1
answer

How can I display a number separated by a point for every 3 houses?

How can I format values like this: 1.000 or 150.000 or 42.000 ? My code is this: var f02 = 42000; console.log(parseInt(f02)); I need the formatting of the f02 variable to be: 42.000 , and when the number...
asked by 10.10.2016 / 19:44
2
answers

Add content at cursor position with CKEditor 4.5

I have a textarea where text will be typed. This text may contain some specific fields (type variables, which will be replaced later). I need to know how to insert these "variables" in the specific location where I need them, for example where t...
asked by 25.10.2016 / 19:55
1
answer

How to print directly without opening the browser dialog?

I am developing a web system where I need to print a label and a non-tax receipt after submitting a certain form. To perform this action, I have two printers: Non-Fiscal Matrix Printer MP-20 MI - For non-tax coupon; Zebra Thermal Printer T...
asked by 19.09.2016 / 22:49
1
answer

Obfuscate CSS and JavaScript for free

Good afternoon, I'm developing a page and I want to obfuscate CSS and Javascript (AngularJS), I did a quick search on the internet and I saw some paid tools, and some Free tools made the obfuscation very basic being possible to manually go back...
asked by 22.09.2016 / 16:57
1
answer

Replace point by comma in Javascript

Good evening In the example below add the values of 3 text boxes, and the result comes out in the fourth, how to make this result appear with a comma and not a dot? <html> <head> <script type="text/javascript"> func...
asked by 11.08.2016 / 23:10
2
answers

How to remove all occurrences of "/" from a string using Javascript

Hello, I'm having trouble applying a simple regex with Javascript. So: var str = "/Date(1421287200000-0200)/"; console.log(str.replace('/\//g','')); //não funciona, mesmo estando certo console.log(str.replace('/[/]/g',''));...
asked by 24.11.2016 / 18:07
2
answers

How to remove "disabled" attribute from select parent option?

I need only select the option "Leader", it does not assign "disabled", only in the other selects daughters. The logic is that only one user can be a leader, but when selecting a leader, this option is disabled, and at the time of sending the...
asked by 23.11.2016 / 10:44
2
answers

View the contents of object NodeList

How to display content received through objectNodeList ? Through the following function I try to get the contents of the tags through the class. function final(){ var titulos = document.querySelectorAll(".p2.p2-resultado-busca");...
asked by 28.11.2016 / 14:05
1
answer

How to return a file in an input type file field?

I have an html form that uploads a file and I can save it to a folder. The problem is that now I need to do the reverse operation, and return the file in that same field of type input type file so that the user can edit. Someone can give me a ha...
asked by 03.02.2015 / 11:29
1
answer

Transcription javascript calculations for PHP

How can I transcribe this code into javascript for PHP? var temp = "<div class='brick' style='width:{width}px;'><img src='i/photo/{index}.jpg' width='100%'></div>"; var w = 1, h = 1, html = '', limitItem = 49; for (var i = 0...
asked by 15.12.2014 / 03:49