Posts by Ana • 89 points
7 posts
-
1
votes1
answer414
viewsQ: How to use a global variable counter?
Click to test! My goal is that the Count variable gets the value that will accumulate in the arrayVec1 function, but instead I always get the result 0. Can someone tell me how I can pass the value…
-
1
votes1
answer329
viewsQ: Add parameters to URL without changing the path to the file
So I have a url let’s imagine ... http://localhost//web/index.html The idea is to add a parameter or a variable to a url: http://localhost//web/index.html? like=like This parameter is written by the…
-
2
votes1
answer5877
viewsQ: How to get a div to automatically scroll down?
I have a div with a lot of text, and I want that when loading the page the div starts to do automatic scroll showing the whole text... html: <div id="corpo"> <p> Titulo da notícia,…
-
0
votes2
answers992
viewsQ: Change the color of a div with a setInterval
Here is the code: jQuery(function($) { $('a.panel').click(function() { console.log($($(this).attr('href'))); var $target = $($(this).attr('href')); $target.show().css({ left: -($target.width())…
-
1
votes4
answers2771
viewsQ: How to change the color of a div before loading the page through a script?
I’m trying to pick the background color of a div through a script. That is, my goal is that as soon as the page appears it has already run the script and has appeared the color that the script has…
-
3
votes2
answers3236
viewsQ: How to overcome Xmlhttprequest cannot load?
This error appears to me. How to overcome it? Xmlhttprequest cannot load "example url". No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not…
-
0
votes1
answer872
viewsQ: Search JSON format information from a url
I have a url that when opened has the following json: [ { "Name" : "Alfreds Futterkiste", "City" : "Berlin", "Country" : "Germany" }, { "Name" : "Berglunds snabbköp", "City" : "Luleå", "Country" :…