Image from file system
Hi Mehmet,
You can add an image path:preAppery("mobileimage").attr("src","file:///path/filename");/pre
codefile:///path/filename/code is a full path to a file on device.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Mehmet,
You can add an image path:preAppery("mobileimage").attr("src","file:///path/filename");/pre
codefile:///path/filename/code is a full path to a file on device.
I changed page a little bit, add an image below of grid named “fimage". “pimage" is an image upper side where is in grid.
Appery("fimage").attr("src","file:///storage/sdcard0/SureTermse/Aa.jpg”);
is working correctly and changes image
however
$("[dsid=pimage]", element.parent()).attr("src","file:///storage/sdcard0/SureTermse/Aa.jpg”);
Appery(“pimage").attr("src","file:///storage/sdcard0/SureTermse/Aa.jpg”);
is not working.
So I think maybe image elements not correctly fetching. I give a default image from editor. Then try to alert its source like:
alert($("[dsid=pimage]", element.parent()).attr("src"));
this is working too. Alerting image source correctly.
So referencing in grid is working. sourcing image from local storage is working. But both of them together fails. :s
Hello! Could you clarify on what event you add this code pre$("[dsid=pimage]", element.parent()).attr("src","file:///storage/sdcard0/SureTermse/Aa.jpg”);/pre
If you need to check, project already shared with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a
Project Name : SureTerms
Page Name : ListPackagesPage
On start screen of app clicking "MyPacks" button navigates this page.
By the way another topic which I tried and fail
https://getsatisfaction.com/apperyio/...
Hello! Working on it...
Hi Mehmet,
Are you sure you use correct path for image file:///storage/sdcard0/ ?
The path can differ, for example:
file://sdcard
file://mnt/sdcard
etc.
Why did you choose this one file:///storage/sdcard0/ ?