Discussion Board
problem viewing the xhtml file in 3650
2003-05-02, 11:18
#1
Registered User
hi
i have written a xhtml file
when i run this file on desktop (ie 5.0) i can see the file
but when i run htis file from nokia 3650 it shows me the complete code..
my file is as follows
index.xhtml
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Proton Technologies</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="stylesheet" href="wap.css" type="text/css"/>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td class="tdborder" width="8%"><img src="img/logo.gif" width="220" alt="img" height="200" /></td>
<td class="tdborder" width="92%">indiaventures</td>
</tr>
</table>
</body>
</html>
pl help me out
kirti
Possible Solution
2003-05-05, 05:44
#2
Registered User
Hi,
Tested your xhtml source on the Nokia Mobile Internet Toolkit, I did not have your image file, hence subsituited one that i had.
It shows up fine. Have you already set the mime-types on your server dishing out this xhtml page?
As a recap, here it is
<mime-mapping>
<extension>xhtml</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xhtml</extension>
<mime-type>application/xhtml+xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xhtml</extension>
<mime-type>application/vnd.wap.xhtml+xml</mime-type>
</mime-mapping>
You may like to set this up in your server i.e on an apache tomcat, it would be set in the web.xml file
Nick
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules