Posts by Alex Vasconcelos • 339 points
11 posts
-
0
votes0
answers41
viewsQ: Restful returns Undefined in JS Class
I’m making changes to HTML after taking data from the Lastfm API, working with class in JS, making method calls within the class itself, where the date was called before, but this returns Undefined:…
-
2
votes1
answer75
viewsQ: Select Child after using querySelectorAll
I’m looking to change some attributes within the fields: ul > li. In case I change the.url and img.src, however I am using a for to change the fields is using in the mode artistSimimarChild[i]…
-
0
votes1
answer43
viewsQ: This altering var global
I am making a change within the array of the object’s main function, but this is changing several values, including variable outside the object, which cannot happen. How can I fix this? var…
-
1
votes1
answer58
viewsQ: Doubt to access this in prototype
I am trying to access some variables within this (Object Orientation) using Object.prototype, but at a certain point I am in doubt if I am doing it correctly: This and the main function: function…
-
3
votes1
answer1604
viewsQ: Access array in Json
I’m trying to get a value inside JSON but I can’t get the value within date > Artist > image > [3]. #text { "artist":{ "name":"Madeon", "mbid":"fa1de503-aba7-41fa-a1ed-371b3e87a717",…
javascriptasked Alex Vasconcelos 339 -
1
votes2
answers726
viewsQ: Code within parentheses
What’s the difference of writing Javascript code in the following ways: Original form: 'use strict'; var openCtrl = document.getElementById('btn-search'), closeCtrl =…
-
4
votes1
answer664
viewsQ: Access local variable outside an if
How to create/modify a variable within a if and be able to access it without having to set it in global mode/scope. I am working on a Lua file similar to this scheme: if verificacao then local…
-
4
votes0
answers31
viewsQ: Doubt about functions in Javascript lines
I have a question about how functions work in Javascript, was looking at some examples and does not follow logic like other programming languages (PHP and Lua). I can create a Function on line 99…
javascriptasked Alex Vasconcelos 339 -
2
votes0
answers54
viewsQ: What is ">" in CSS3?
I’ve always had this question: what is the point of > in CSS3? I have tried to deduce its function in several files, but still not understood. That: nav > li > a { ... } wouldn’t be the…
-
4
votes1
answer890
viewsQ: Pass data in php constructor to class
I have a question of how to send the data to create a goal, I read in some tutorials that was just put this way in PHP4: $elo1=new Elo(1300); $elo1->fc_Elo(); However the way I saw in some places…
-
0
votes2
answers60
viewsQ: stickyfloat.js can’t apply together to php pages
Hello! I’m trying to call the stickyfloat.js function on my php pages, but it doesn’t work. But in HTML pages it works normally. I tried to copy the original code to the PHP page but it doesn’t work…