How to change image component

Posted by Valeriy Bashkatov on 29-Jan-2014 13:49

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!

Posted by Phillip Molly Malone on 29-Jan-2014 14:31

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

Posted by Phillip Molly Malone on 29-Jan-2014 14:31

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

Posted by Valeriy Bashkatov on 30-Jan-2014 04:13

Hi Phillip,

Thank you very much!

That's what I've done currently http://goo.gl/vvlkHb (Mobile Web App)

and http://yadi.sk/d/_Z0lpxk0GdyxQ (Mobile Native App for Android)

:-)

Regards,

Valeriy

This thread is closed