She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

change photos

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

change photos

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");
}

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

change photos

Hello,

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

change photos

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

change photos

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

Return to “Issues”