Questions tagged as 'javascript'

2
answers

datepicker does not work in dynamic form with Js

Well, I've assembled a dynamic form using JS. Within this form I have several input with class data , where I call the datepicker. But they do not work, can anyone help me with this? Follow the example below. Note that in non-dynamic in...
asked by 11.08.2016 / 15:39
2
answers

How to extract the link title from a responsive menu?

I have the following structure of a menu: <ul id="responsiveAccordion" class="showedmenu"> <li><a title="Página Inicial" href="/">Página Inicial</a></li> <li id="category_item_1"> <div class...
asked by 12.08.2016 / 16:43
2
answers

Create header and records dynamically based on a json

Good afternoon ...  I need to create a table where rows and columns are created dynamically. For example, consider this JSON: {"employees":[ {"firstName":"John", "lastName":"Doe"}, {"firstName":"Anna", "lastName":"Smith"}, {"firstN...
asked by 07.06.2016 / 20:14
1
answer

GPS oscillating even when at a fixed location [closed]

I'm working on an Ionic app, with traceability, but the GPS signal oscillates very certain 200m, even though it's in a fixed place, do you know any solution to that?     
asked by 06.06.2016 / 23:00
1
answer

javascript error, function stops working when I add another

The following code stops working when I add another one almost the same. Although the first part works perfectly, inserting a continuation with similar logic does not even work. I have the following form: function CriaRequest() { tr...
asked by 08.06.2016 / 03:36
1
answer

How do I stack Bootstrap modals with the above-mentioned-mode backdrop?

How would it be possible to modify Bootstrap's modal so that when there is a stack of modals open, the backdrop of each open one is above the others? What have I noticed so far? When you open a Modal, the z-index of the modal is 1050,...
asked by 01.06.2016 / 14:17
1
answer

Function does not work [closed]

I tried using the code below to calculate the person's BMI, but it does not work: <meta charset="utf-8"> <script> var pulalinha = function() { document.write("<br>"); } var mostra = function(frase){ document.write(fr...
asked by 03.06.2016 / 04:11
2
answers

Regex works in online tester but does not work on my site in javascript

Website link where I tested regex var string = "12.0,34.0"; var re = new RegExp("[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+))?"); if (re.test(string)) { console.log("Valida");...
asked by 01.06.2016 / 11:45
1
answer

Return with several json with jquery .net

I need to return to json a json, or rather several json, being city, neighborhood, state, parents, each being a json in the same method, but as it is not possible to do several returns I put the obj list up in one list list. List <...
asked by 02.08.2016 / 22:46
1
answer

Iframe with src attribute receiving an internet link

I'm creating an iframe on a page, and in the src attribute, when I make a link (with link .), it just does not open. For example: <iframe src="http://www.google.com"></iframe> This opens only the iframe's box boundary with a...
asked by 29.05.2016 / 04:42