Questions tagged as 'javascript'

3
answers

How to override a method via prototype in a javascript object?

Hello I'm studying javascript, but specifically Parasitic Combination Inheritance , and I came across overriding methods. It turns out that I created the following code: var Base = function(nome, texto) { this.name = nome; this.tex...
asked by 12.07.2017 / 18:16
2
answers

Script to Extract Values from the InfoMoney Website for Dollar Quotation

I have a PHP Code with a script in Jquery that collects information from the InfoMoney site and returns the quotation of the commercial dollar (Buy and Sell). I would like to know how to update this code so that in addition to the commercial...
asked by 05.06.2017 / 15:36
2
answers

Use of class.apply in the context of specialized class

I saw an example dealing with parent class and daughter class where, at the beginning of the specialized class, it looked like this: var ClasseFilha = function ClasseFilha (){ ClassePai.apply(this, arguments); ... }; Although under...
asked by 14.06.2017 / 16:10
1
answer

How to center the map in the middle of the polygon?

I have a polygon formed, at first, with 3 edges, basically created using 3 locations: Maiami, Puerto Rico and Bermuda. I took the example in the documentation that shows you how to create a simple polygon . However, by API required standard, yo...
asked by 22.06.2017 / 04:07
2
answers

JSON equals an associative array?

Are the two the same thing? Or is JSON a more complex library or technique?     
asked by 20.11.2014 / 05:58
1
answer

jQuery function should only be executed on mobile

I think the title is self-explanatory. I need a jQuery function to "enable" only when I am in a resolution less than 1024px.     
asked by 13.11.2014 / 16:35
1
answer

Call PHP variable within a Javascript function

Within the .js of NivoSlider, I have the following line that calls the two sliders of the slider (left and right): slider.append('<div class="nivo-directionNav"><a class="nivo-prevNav"><img class="seta-esquerda" src="document.wr...
asked by 07.11.2014 / 00:30
2
answers

Background background with text

How do I make this effect of letters over the image that is like Background, or how do I search for it in google?     
asked by 09.02.2018 / 02:47
4
answers

How to make the DIV fill 100% of the display?

Good afternoon I would like to create a site where the height of the first DIV is 100% of the display displayed to the user, and when giving the scroll, the other elements appear normally. I know I have a way to calculate this using jquery or...
asked by 12.02.2018 / 17:37
3
answers

ForEach wait for the select result to proceed

I have a forEach that goes through a list of codes and inside it I have a select that queries the records of the database. After forEach , the data is sent from my server to my client, but forEach does not wait for the result...
asked by 24.11.2017 / 11:53