Questions tagged as 'javascript'

1
answer

Receiving data from an observable

I have a problem using an observable. While I'm inside the NgOinit method, when fetching the data, I get the array correctly and hedge in the class variable. However, when I try to access the data outside the subscribe, I get undefined in respon...
asked by 20.11.2017 / 12:37
1
answer

How do I receive a post or get request with typescript?

I'm starting with nodejs now and would like to use typescript to program compiling for pure javascript. So I'm having trouble finding something succinct so I can understand (since I'm a PHP programmer) how to receive post and get requests. For e...
asked by 20.11.2017 / 01:03
1
answer

Use AJAX return in other functions

I have 2 functions: function1 returns a JSON via AJAX and lists the data in an HTML table dynamically, so far everything works. Function2 needs to handle the same data, however, I did not want to make another AJAX request by invoking functi...
asked by 18.11.2017 / 17:23
3
answers

Wrap equivalent in javascript

The jquery has a method called wrap which basically adds a container to the desired element, but I can not find the method in javascript, does anyone know?     
asked by 20.11.2017 / 17:20
2
answers

How to run server with loopback?

I have access to a backend project and would like to know how to run this project. It uses loopback and reading documentation of loopback , in the statement 4 says:    Start the web server. What command should I use...
asked by 24.10.2017 / 10:55
2
answers

How to send 1 object and 1 vector to an API in C # with $ http.post?

In my application I created an API in C #, which is consumed by my web application in Angular. I need to pass 1 object and 1 vector as parameters to the API, but the content comes empty in the API, how to solve? Here are my codes: Part of...
asked by 24.10.2017 / 16:12
1
answer

Split an array into new arrays with character limit in each of the array

My problem is this: I have the input string: "A|BB|CCC|DDDD|EEEEE|FFFFFF|GGGGGGG" . I need to split this string in the "|", so that in the case it divides in 6. But I need each value to be in an array of 10 characters or more and the...
asked by 24.10.2017 / 22:41
1
answer

Equivalent to window.showModalDialog for Google Chrome

Hello, I need a window.showModalDialog equivalent to open as modal and wait for it to continue the font, when I open it it becomes asynchronous from my site and does not work together. ps window.showModalDialog works in IE     
asked by 25.10.2017 / 16:39
1
answer

Is it possible to monitor all Responses and Headers of the page to use as a trigger for a function?

I have a script that needs to be executed only after the return of a page request, since the request returns HTML content, and the function I want to execute immediately after it implements this received HTML. The problem is that I can not play...
asked by 25.10.2017 / 22:42
3
answers

Get JSON object dynamically

I have jSON that I created and wanted to dynamically grab the array and objects inside it var json = [ {'PHP': [ {'aula1': [ 'txt','O PHP é uma linguagem ...', 'img','cam...
asked by 25.10.2017 / 14:03