Questions tagged as 'javascript'

1
answer

Convert jQuery to Typescript

I'm having several problems converting this snippet of code with jQuery using only Typescript. function addTourOverlay() { if ($('#tour-overlay').length === 0) { $('body').prepend('<div id="tour-overlay"></div>')...
asked by 18.09.2018 / 16:22
2
answers

show input when selecting an optin within the while of php

Good morning! Personal is as follows, I have a combobox that displays all the records of a table, until that part I could unroll. However, I need to show an input when one of these records is selected and hide this same input when noth...
asked by 13.08.2018 / 17:05
1
answer

AngularJS - Angular-Charts Problem

First, good evening. I'm having trouble displaying the graphics generated by angular-charts. library page: link I followed the step-by-step carefully, I saw and reviewed all the code that I typed, I can not identify any problems. I looke...
asked by 14.08.2018 / 00:39
2
answers

What to do when looping repeats in 2 different areas

The code takes the values of inputs and sends to textarea but when added more than titulo the values are repeated in the result of the titles, for example, the descriptions of title 1 are the same as the title 2 vice versa,...
asked by 14.08.2018 / 02:47
1
answer

Javascript - Configuration of url's according to environment

My application has a very simple login repository with pure javascript, at most one jquery. How do I make an ajax call by passing the correct url according to the environment I am? If I am in the development environment, I want to use localho...
asked by 10.08.2018 / 03:39
1
answer

Detecting URL in Textarea with Regex

Expensive, I would like to use the following example ( link ) that marks any link entered, and put in a textarea of my site to mark and warn that no links allowed. I tried with required pattern and could not. I also did the following example b...
asked by 14.08.2018 / 14:43
1
answer

How to treat an array with N rows and transform to a list to send to C #

I'm sending an array of the angular js to the controller of C # , and I'm handling it with stringfy for json in>. In my method POST it does not receive anything, it simply returns null C # code public void Post(st...
asked by 10.08.2018 / 18:34
1
answer

Perform functions inside an array, after a given index, and another for the other

I'll try to be brief in the description. I have, for example, two arrays. One of them has 6 indexes and the other 7. I need to get the first 5 indexes of each array and perform a function, then I have to get the remaining indexes from that ar...
asked by 09.08.2018 / 22:52
1
answer

Javascript - Populate second column dynamically from html table [closed]

Good morning, guys. I am having problems with tables with javascript, I am new and I am not sure what to do. The question is the following: I have a table created in html with two columns, the first has already been filled using html but the sec...
asked by 10.08.2018 / 09:05
1
answer

why is not list with innerHTML?

Because when I put document.write inside for it lists right and in innerHTML it only sends the last position in div ? I wanted to know how I can for print within div from start to end of list, but I'm not...
asked by 17.09.2018 / 03:43