How to change image component - Forum - Mobile - Progress Community

How to change image component

 Forum

How to change image component

This question is answered
Hello! It is possible to programmaticaly change image in the Image component from JavaScript ? For example, change image when I click on the image. Thank you!
Verified Answer
  • hi Valeriy,

    Yep. here is some old code that should work:

    -------------------

    var input = Tiggzi('imageURL');

    Tiggzi('image1').attr('src', input.val());

    =================

    imageURL is an input field with the value of the URL for the image you want.

    image1 is the image component.

    HTH

All Replies