Cannot access image via Tiggr('name');

For whatever reason, it seems that the Tiggr shortcut doesn't work for accessing images? I have not had a chance to test this extensively but after an hour of trying to figure out why my image src wouldn't update, it was fixed by using the dsid to access the element.

This worked:
var img = $("[dsid='photoresult']");
photo64 = localStorage.getItem('current_lead_photo64');
img.attr('src',photo64);

This did not:
var img = Tiggr('photoresult');
photo64 = localStorage.getItem('current_lead_photo64');
img.attr('src',photo64);

I also had a textbox on the page being populated with photo64 to make sure that the source was indeed being saved after getting returned from the camera.
1 person has
this problem
+1
This topic is no longer open for comments or replies.