Posts by Willy Camargo • 355 points
11 posts
-
3
votes1
answer186
viewsA: Problem styling a placeholder based on a CSS class
I’m glad you were able to solve the problem on your own. The only solution I have found to date is by using this method of declaring the rules separately. I believe this is necessary because when…
-
3
votes2
answers76
viewsA: Determining when it will be executed
Try this: var specificTime = new Date('Fri Apr 01 2016 23:39:49').getTime(); var nowTime = new Date().getTime(); if (specificTime > nowTime) { window.setTimeout(function () { alert('It is time!')…
-
0
votes2
answers73
viewsA: I would like to know how to leave my page with this layout
I recommend doing it with flexbox, as it will be simple and most browsers support it. Read this guide to better understand: https://css-tricks.com/snippets/css/a-guide-to-flexbox/ Even if you don’t…
-
1
votes1
answer242
viewsA: Is testing the interaction with html and Javascript using Jasmine wrong?
I saw that solved the problem and am happy for it, but still the need to do real tests in the application exists in many cases. If you want to test an application as a user (simulate actions in HTML…
-
1
votes5
answers4348
viewsA: How to access the value of an array through the key?
What is the context in which you are using this array? Maybe the problem is not how to recover the values, but in the data structure that is building. Your data structure needs to be planned to…
-
2
votes1
answer121
viewsA: Scroll to the next section
good morning! There are some plugins to play with scroll and with effects of Parallax. The ones I know are: Scrollorama, Stellarjs, Skrollr, Scrollmagic Using some of these packages and a little…
-
0
votes1
answer1086
viewsA: JSON return from Google API
Try this: $.ajax({ types: "get", dataType: "json", url: 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=' + location + '&radius=' + radius + '&name=' + name +…
-
0
votes1
answer108
viewsA: Show information without updating page
good night! You seem like a smart guy, posted and already answered your own question. Your problem can and should be solved using websockets. This is the simplest technology for this type of…
-
4
votes1
answer5307
viewsA: Hide address bar on mobile devices
Unfortunately not "native" way. This is a behavior that only the browser itself used by the user can do. Chrome for example hides when the user scrolls on the page. (I believe others also do the…
-
0
votes1
answer54
viewsA: Xmlhttprequest - Blank Answer
I confess that I have no experience with Xmlhttprequest and I have no way to give you an exact answer on how to solve the problem the way you need. But I recommend using fetch for communication…
-
2
votes2
answers513
viewsA: Javascript does not pick up pages added later
I believe you’re using the wrong technology for the intended purpose. It is possible to do what you want using javascript + jquery, but it is not the best way to do it. To do the way you are doing I…