Posted by roberto1959it 2 years 12 weeks ago
Hello everybody!
I'm new to mobile web dev, so I follow your tips as much as I can (great work, guys!!!).
I develop using an IIS 6.0 web server; I added to my web site the custom HTTP header: "Content-type=application/xhtml+xml;charset=utf-8" coupled with
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> ..... <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=UTF-8" />
This way my site was completely readyMoby-compliant (5 - hooray!!!!) and W3C-compliant, BUT I wasn't able to see images (gif/png) anymore in the dotMobi emulator, Openwave simulator, SONY Ericsson T-68i browser.
Besides, using the dotMoby emulator I see a message in the browser status bar:
Not acceptable: application/xhtml+xml: http://.....////myImage.gif
I would appreciate some help
Roberto




Posted by Jo Rabin 2 years ago
Mobile Addict
It sounds as though you are serving everything with an application/xhtml content type. But you should only be serving the XHTML with that content type, GIF images still need Content-Type: image/gif
HTH
Posted by roberto1959it 2 years ago
Jo, thank you for your help!
I changed the HTTP header to "Content-type: application/xhtml+xml;image/gif;charset=utf-8" in IIS6.0, adding:
..to the code, but nothing changed: I wonder if it is a IIS6.0 issue, but I haven't found anything in the web about it
Roberto