Replacing/updating URL does not work.
Posted: Wed Oct 17, 2018 2:42 pm
Hello,
My software: WebAnimator plus 3.0.1.
I place a number of symbols on the page which I use as buttons to go to different websites.
The symbols have a default style and URL.
The new information, like height, width, left, top and the URL comes from a database.
I also have one butten on the page that when clicked, loads new information for the symbols.
So, each button needs to get a different location and size on the page and a different URL.
eg. The initial value for a symbol is height=110, width=226, left=0, top=0 and initial URL is https://www.casashops.com/.
This works fine.
I have this code to alter the symbol:
var x = document.getElementById("Butt1");
x.style.height = "110px";
x.style.width = "110px";
x.style.left = "0px";
x.style.top = "229px";
x.setAttribute('href', 'http://www.blokker.be/');
The styles get updated, but the URL remains unchanged.
Any idea how I can update/replace the URL?
Thanks.
My software: WebAnimator plus 3.0.1.
I place a number of symbols on the page which I use as buttons to go to different websites.
The symbols have a default style and URL.
The new information, like height, width, left, top and the URL comes from a database.
I also have one butten on the page that when clicked, loads new information for the symbols.
So, each button needs to get a different location and size on the page and a different URL.
eg. The initial value for a symbol is height=110, width=226, left=0, top=0 and initial URL is https://www.casashops.com/.
This works fine.
I have this code to alter the symbol:
var x = document.getElementById("Butt1");
x.style.height = "110px";
x.style.width = "110px";
x.style.left = "0px";
x.style.top = "229px";
x.setAttribute('href', 'http://www.blokker.be/');
The styles get updated, but the URL remains unchanged.
Any idea how I can update/replace the URL?
Thanks.