Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

How to change/modify to the URL attribute (image field) and update its content

Avatar

Former Community Member
I am able to get the URL attribute of an image field:



> app.alert("Image URL = " + imageField.value.image.href);



However, when I tried to change the value of the URL attribute, it did not work as it should.

The value has changed but the image field don't refresh its content
.



> imageField.value.image.href = "http://www.google.es/images/logo_sm.gif";



Could someone explain me how could I update (refresh) the image field in order that it works?




Thanks in advance!

Dan
0 Replies