Page 3 of 3

change photos

Posted: Fri Jan 30, 2015 9:15 am
by She

Hi Katya,

I'm trying to check if the img asset is empty using this code:

if (Apperyio('img5',this).attr('src')!==' '){
Apperyio('PopAlert1').popup("open");
}

the popup shows even if the img has a picture(asset)

Thanks


change photos

Posted: Fri Jan 30, 2015 9:47 am
by She

hi Katya,

How can i clear the asset of an img every time the page show. this is not working in phone:

Apperyio('img5').removeAttr('src');

and how can i check if there's an NO existing asset:
this is my code:

if(Apperyio('img5',this).Attr('src')!==' '){
alert("there's no existing image");
}


change photos

Posted: Fri Jan 30, 2015 5:58 pm
by Alena Prykhodko

Hello,

Try
pre$('[name=img5]').removeAttr('src');/pre
or
pre$('[name=img5]').Attr('src',"");/pre


change photos

Posted: Sat Jan 31, 2015 3:23 am
by She

Hi Alena,
Thank you for responding. when i tested it in browser tester itworks. but when i installed it into device. its not working

thanks


change photos

Posted: Sat Jan 31, 2015 7:53 am
by Illya Stepanov

Hi - Could you please specify the device and OS version you're using for testing?