Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

How to place my pictures which is in my html inside ide?

 
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm now trying to integrate my old files which were constructed using basically html. Insides these files are lots of pictures reference i.e src link to images.

Now, I'm stuck. I do not know where to put the images files under which part of my main files? After right click on my project folder, I am not sure where to go from there...Should it be Empty File?

OK. Hope to hear from the experts.

Many thanks.
 
Sheriff
Posts: 22509
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to IDEs.
 
tangara goh
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Precisely that's what I'm doing....moving them to the IDE to be with the backend codes.

Now, my question is how to place the pictures? I have src link insides the html files. Do I right click on my project file inside my IDE and place it at the empty file?
 
Rob Spoor
Sheriff
Posts: 22509
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

tangara goh wrote:Precisely that's what I'm doing....moving them to the IDE to be with the backend codes.


You got me wrong. I was moving this thread to our IDEs forum.
 
tangara goh
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
: - ) sorry...i should be more patience...the ide forum was right at the bottom....
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Usually I put mine under images or media or resources directory which lies at the same level as the html pages, and reference them as images/myAwesomePhoto.jpg
 
tangara goh
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:Usually I put mine under images or media or resources directory which lies at the same level as the html pages, and reference them as images/myAwesomePhoto.jpg



under images or media or resources - but I can't find them anywhere in the IDE?

How should I go about putting in the images?

Really hope you can tell me step by step ..be'cos I am really lost how to do it...million thanks.
 
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

tangara goh wrote: ..be'cos I am really lost how to do it.


Please use real words like "because" when posting to the forums.
 
tangara goh
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK. So sorry I have been texting that I am so used to using short form of words...
 
Maneesh Godbole
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

tangara goh wrote:
under images or media or resources - but I can't find them anywhere in the IDE?


What is them? Images? Directories?
If you mean directory, you can always create one in your IDE
If you mean images, then I have no clue where your images are.
 
tangara goh
Ranch Hand
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried to created a folder named Travel Pictures in my project folder name Assignment2, since there's really no way for me to create a sub-directory and I do not know whether it's possible to create a sub-directory to store the image file.


Now, when I open my IDE project, I will use Assignment2. However, when I run the html file, the image just wouldn't show.

Here is the code:-



Please advise me how do i make the image appear when i run the IDE for that particular html file.

Many thanks.
 
Maneesh Godbole
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im not much of an HTML person but I suspect "Travel Pictures\Korea10.JPG" should be "Travel Pictures/Korea10.JPG" (with a forward slash)
Also please ensure your html file is on the same level as the Travel Pictures folder
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

tangara goh wrote:OK. So sorry I have been texting that I am so used to using short form of words...


"Be'cos" is a single character less than "because", and harder to text due to the symbol. Consider using "bcuz", but not here.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic