언어 설정

Menu
Sites
Language
newbie question: how to show image on device?

Hi, I'm just making simple test app using jquery mobile.

The thing is, I can see all images when I click 'preview' button in IDE.

But when I run application as WGT on real device, all images are borken.

 

It looks as images are not imported to  WGT file.

Actaull,y I made 'images' folder manually in root of my applicatoin project to store every .jpg files.

Is that not correct?

 

* Can I modify this?

 

Edited by: Xaemin Cho on 31 8월, 2015

Responses

5 댓글

show some code otherwise no one can help you
 

Xaemin Cho
    			<a href = "#cat">
				<h1>photo describes ....</h1>
				<img src="/images/png_cat.png" alt="whist cat"/>
				<p> white blah blah</p>				
				</a>

Code is so simple, it's just img tag.

 

My problem is that, image files in 'images' folder are not imported when I make WGT using run.

 

And the below is my application's folder hierachy.

appRoot -> SS

               -> images

               -> js

 

plz help me

AVSukhov

Hello,

Try to use: "./images/png_cat.png"

Vikram

Hi,

I used 

<img src="images/png_cat.png" alt="whist cat"/>

like below way and run project success both simulator and real device. Build project and package, "images" folder automatic generated in ***.wgt.

You can check the run configurations or create new project and porting the source code and try again.

Palitsyna

Hello,

here you can find information about <img> tag and some example of usage:http://www.w3schools.com/html/html_images.asp

Also I suggest you to move the mouse to the content of the src attribute (path to your image). The preview of your image should appear if the path is correct.