andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

Show local image inside HTML

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?

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

Show local image inside HTML

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;

andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

Show local image inside HTML

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 !

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

Show local image inside HTML

Sorry, no updates yet. Working on it.

andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

Show local image inside HTML

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 ... :)

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

Show local image inside HTML

I'll search for the way.

Return to “Issues”