Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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.

Mehmet Edebali Şener
Posts: 0
Joined: Thu May 30, 2013 7:33 pm

Image from file system

Image

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Image from file system

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

Mehmet Edebali Şener
Posts: 0
Joined: Thu May 30, 2013 7:33 pm

Image from file system

I have a database service. One element on this service connected to invisible label. I add javascript to these reference like that. There isn't any logic behind that. This is just case study to clarify problem.

Image

Mehmet Edebali Şener
Posts: 0
Joined: Thu May 30, 2013 7:33 pm

Image from file system

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/...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Image from file system

Hello! Working on it...

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Image from file system

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/ ?

Return to “Issues”