Questions tagged as 'javascript'

0
answers

Using two JSON files with JQuery [closed]

Good morning / afternoon / evening, I'm doing a college job trying to put 2 JSON files and compare a key, for example, the first file will have several addresses and a key relating them, that key I put as "key" : 1, and in the second file will h...
asked by 28.09.2016 / 01:32
0
answers

Create function padLeft with keyup

I'm trying to create a function where the user reports a 6-digit number + the year For example: If I type: 12016 = > 000001/2016 If I type: 122016 = > 000012/2016 If I type: 1232016 = > 000123/2016 If I type: 12342016 =...
asked by 29.09.2016 / 01:09
0
answers

Captcha script only working in a form only

Good afternoon, I'm having a problem with a code. in the site contacts page, by default it brings information from the parent store, however I have a dropdown, where the client selects the desired branch and the content changes. However,...
asked by 28.09.2016 / 21:42
0
answers

Include JavaScript files that the test depends on to run in MochaJS

I'm developing a client-side JavaScript application, and I want to do some testing using MochaJS , but the test relies on multiple files JavaScript to run, which are in different folders, such as: Files needed to run the test: js/a.js...
asked by 07.10.2016 / 07:43
1
answer

Javascript JSON.parse (jsonEmText) works on Linux but not on Windows. How to solve?

Hello everyone. I have an HTML page that uses AngularJS to display a JSON that is passed using encodeURI() . On Linux I can pass this JSON with no problems, but when the same page function is done in Windows, it gives format...
asked by 06.10.2016 / 15:51
1
answer

IP validation in javascript / html

The user informs the ip in the field and would like to complete the "." .. Anyone have any idea how to mount? <tr > <td align="center" font-size="50"> <font size="5"><i><b>Informe o valor do I...
asked by 03.09.2016 / 00:21
0
answers

Android version issues

I'm having problems with a project. I configured a button to turn the sounds on and off, it works on the pc, but when I put it on the phone it only works if I click on two places at the same time on the touch, if I just click the button it recog...
asked by 06.09.2016 / 13:30
1
answer

Show Json data inside a Form Html

I have a Grid with the edit button when I click on it it accesses the Controller and brings the data into a Json and "Theoretically" was to return that data in a Modal. When I type Url .... show / (ID) the Json data appears but I am not able...
asked by 25.08.2016 / 20:57
2
answers

Calling JavaScript within Modal

Is it possible to get a result of a JavaScript function and play this result inside a Modal? I have this function: <script> $('#download').click(function() { document.getElementById('xxxx').disabled=false document.getElementB...
asked by 25.08.2016 / 00:21
0
answers

How to make the browser remember two different passwords (two distinct forms) for the same site (domain)?

I have a web application that, in a conventional way, asks for a username and password to login to the system. This user and password are encapsulated in a form (simplified example): <form id="formLogin"> <input type="text" id=...
asked by 25.08.2016 / 16:35