Discussion Forums  >  WebViews and HTML for Mobile

Replies: 5    Views: 89

goswildcat
Aspiring developer
Profile
Posts: 4
Reg: Oct 28, 2012
wyong
4,190
12/04/12 01:23 AM (11 years ago)

Image wont show up in html doc

HI, i know this may have been asked a lot before but I couldn't find a specific answer. I am using an external html editor to create html docs that i'm using in my app and the text, table and borders in the doc showup fine on the simulator and device but the image will not. The html doc and the image are in the BT-Docs folder in Xcode, so I'm sure it has something to do with the image referencing in the actual html doc. How do i get the image to show up ?? What referencing should i be using ??? Thanks in advance
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
12/04/12 02:45 AM (11 years ago)
Hey. Show me the code you have on your html regarding the image. Miguel
 
goswildcat
Aspiring developer
Profile
Posts: 4
Reg: Oct 28, 2012
wyong
4,190
like
12/04/12 03:06 AM (11 years ago)
</span></span></p> <p class="MsoNormal" style="text-align: center;"><span style="font-size: 18px;"><span style="font-family: georgia,serif;"><img style="width: 310px; height: 192px;" alt="" src="conetouch.JPG"><br> </span></span></p> </td> </tr> </tbody> </table> <p> </p> <p> </p> </body> </html>
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
12/04/12 03:55 AM (11 years ago)
to test it out, try something like this. <img align="right" height="245" hspace="9" src="conetouch.JPG" width="334" />
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/04/12 09:09 AM (11 years ago)
Try also changing JPG to jpg, because if this is Android, it seems to hate caps. Also, look in the debug Console (iOS) or LogCat (Android) to see if there are any errors being listed there. Mark
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
01/24/13 12:23 AM (11 years ago)
Fellas, Need a lil help. I'm beginning to drive myself nuts trying to future out why my images won't display in my HTML doc. I've placed the html file in the doc folder, the images in the images folder, and only the text displays with question marks if the picture box. I've attached a screenshot of my project to show where I've placed everything. I also attached a the html doc in case the problem lies within there. Any feedback would be great. Thanks Anthony http://dl.dropbox.com/u/35241128/Sample%20Screenshot/HTML.png http://dl.dropbox.com/u/35241128/Sample%20Screenshot/kub.htm
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.