I think I have isolated the problem.
For example I can paste the following into the marked field of a map-ype
card In the PC version:
<script language="javascript" type="text/javascript">
var dbPath = "db_media:///";
var img = document.createElement("img");
img.src = dbPath+"test.png";
var src = document.getElementById("mnem1");
src.appendChild(img);
</script>
However, this does not work in the mobile version.
In the mobile version db_media:/// gives /sdcard/Mnemosyne/default.db_media/
But even if I add file:/ at the start
<script language="javascript" type="text/javascript">
var dbPath = "db_media:///";
var img = document.createElement("img");
img.src = "file:/"+dbPath+"test.png";
var src = document.getElementById("mnem1");
src.appendChild(img);
</script>
or directly
<img src="file://sdcard/Mnemosyne/default.db_media/test.png">
it does not work.
And if I try to access
file://sdcard/Mnemosyne/default.db_media/inferiorBrain_med.png"
in my browser I get "access denied".
kl. 15:36:39 UTC+1 søndag 16. november 2014 skrev Gnome følgende:
>
> Hello, javascript seems to be enabled but some things does not seem to
> work. I'm not sure why, but I'm trying to figure it out.
>
> kl. 06:35:10 UTC+1 søndag 16. november 2014 skrev Peter Bienstman følgende:
>>
>> Are you sure you have downloaded the latest version? I've since put up a
>> new version in the same location where I have enabled Javascript.
>>
>> Peter
>>
>> On 15 November 2014 22:55:56 CET, Gnome <[email protected]> wrote:
>>>
>>> There seems to be a problem with javascript in this version.
>>> For example I tried
>>> <SCRIPT LANGUAGE="JavaScript">alert("hello world");</SCRIPT>
>>> and nothing happens, also my other scripts does not seem to work or have
>>> limited support.
>>>
>>> kl. 21:46:49 UTC+1 mandag 3. november 2014 skrev Peter Bienstman
>>> følgende:
>>>>
>>>> Hi,
>>>>
>>>> In case you want to try out the shiny new Android client, beta 1 can be
>>>> found here:
>>>>
>>>> http://users.ugent.be/~pbienst/pub/Mnemosyne.apk
>>>>
>>>> The 'beta' label is primarily because of some missing features (most
>>>> notably 'activate cards'), but otherwise I've been using it myself for a
>>>> few weeks now.
>>>>
>>>> Enjoy!
>>>>
>>>> Peter
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mnemosyne-proj-users/7654ebca-6400-47ba-ae29-93bf4f6292f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.