Posted by sucithra 3 years 1 week ago
hi,
I designed a mobile site..it display in the all the mobile in this url.(http://ready.mobi/)..but not in iphone ...(http://iphonetester.com/)
plz give any idea..
Thanks in advance....
hi,
I designed a mobile site..it display in the all the mobile in this url.(http://ready.mobi/)..but not in iphone ...(http://iphonetester.com/)
plz give any idea..
Thanks in advance....
Posted by ruadhan 3 years ago
Mobile Champion
Please post the URL of your web page, or post the markup you are using. You have not provided enough information for us to help.
Ruadhan O'DonoghuedotMobi
Posted by sucithra 3 years ago
Hi,
this is the url .
http://dev.dcalling.de/mobile
Thanks,
Posted by ruadhan 3 years ago
Mobile Champion
Using the super "Live HTTP Headers" extension for Firefox, I see that your server is setting the Content-type HTTP header (MIME type) to "application/vnd.wap.xhtml+xml". Many desktop browsers will have a problem with this header value, and some will offer to download the page because they don't know what to do with it (e.g. Firefox & Chrome, IE7) and others (e.g. IE6) will display an error message, while Opera will happily display the page.
Most mobile browsers will probably handle it OK, and some mobile browsers won't display XHTML MP documents UNLESS you use this Content-type.
So, to your problem. The iPhone behaves like IE6 here, and just displays an error message.
There are a couple of alternatives that you can use:
(1) Set your Content-type header to "application/xhtml+xml". This is the MIME type for XHTML documents (and the preferred approach). This will fix your iPhone problem, but other browsers might still give you trouble (e.g. IE6 and some older Nokias for example)
(2) Set your Content-type header to "text/html". This is also acceptable, and will allow browsers which otherwise wouldn't render your page to render it.
If you wanted to be really clever, you could check the Accept header of the HTTP request to determine what Content type the client device will accept, and then dynamically set the Content type header.
Does this help?
Ruadhan O'DonoghuedotMobi
Posted by sucithra 3 years ago
its very helpfull for me..
thank you verymuch.
Posted by andyyew 2 years ago
Can you post an example on how the Accept header could be checked to determine accepted content type?
Posted by archanasomesan 2 years ago
mobile web site is going to create with WML language, how to check the local wml page with mobiforge
Posted by ruadhan 2 years ago
Mobile Champion
The accept header of a basic mobile phone (the DDC in fact) might look something like:
If we were to parse this header we would see that the device will accept
application/xhtml+xml. So we can then set the Content-type header of our server response to this value.In PHP, you can access the accept header:
Then it is simple string parsing to find which types appear in the header. Here we look for
application/xhtml+xmland if we don't find it, we fall back totext/html, which as mentioned in a previous comment is also acceptable:Then, to set the content type header in your application you could use something like:
dotMobi
Posted by alo.jacko 2 years ago
Marked! I will check it later!thanks a lot.:-)
simulation taux banque credit immobilier de France - Credit immobilier de France, simulation credit immobilier. Résultat mitigé pour le crédit immobilier de France.simulation taux banque credit immobilier de France
Posted by xiaopy12 1 week ago
Christian Louboutin Sale sdygery