Page 1 of 1

Show local image inside HTML

Posted: Sat Jun 08, 2013 11:55 am
by andi

I am loading per AJAX a html page and in this html i have a image which is stored in the project
i tried following Image but this don't work
i can't call the Appery.getImagePath . .... because the html text is loaded from ajax?

what can i do?


Show local image inside HTML

Posted: Sat Jun 08, 2013 12:23 pm
by Alena Prykhodko

Hi Andreas!

Do you have any errors?

Check please is the Path value returned to localStorage variable:

code
var value = localStorage.getItem('value');
alert(value);
/code

change variable name;


Show local image inside HTML

Posted: Sat Jun 08, 2013 12:27 pm
by andi

ne i mean i have uploaded an image into the project
and i would like to enter an < img to show this image
but i has to enter this fix, i can't use javascript function for getting the path !


Show local image inside HTML

Posted: Mon Jun 10, 2013 6:11 am
by Kateryna Grynko

Sorry, no updates yet. Working on it.


Show local image inside HTML

Posted: Mon Jun 10, 2013 8:23 am
by andi

ah ok for the meantime do you know i quick way for doing a replacemant

i mean i get following from the server

"This is the imagepath {imagepath} and this is the current id {id]"
and the varnames in the {} should be replaced with the current values in javascript

than i could get it working ... :)


Show local image inside HTML

Posted: Mon Jun 10, 2013 8:40 am
by Kateryna Grynko

I'll search for the way.


Show local image inside HTML

Posted: Mon Jun 10, 2013 10:13 am
by Kateryna Grynko