|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Page view error on wap
hello:
i tried browsing to a WAP site using "sharp sidekick3" mobilephone... it shows an error "The content on the page you requested is not supported". the celphone is wap 2.x ... and the page has this codes Code:
<?php
header('Content-type: application/vnd.wap.xhtml+xml');
echo '<?xml version="1.0" encoding="ISO-8859-1"?>';
?>
<!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" xml:lang="en">
<head>
<title>wapsite</title>
</head>
<body>
<p>test wap site
</p>
</body>
</html>
tried using an emulator... and it's working fine. thanks in advance
__________________
*** today i ask, tomorrow i help - sandbag |
|
#2
|
||||
|
||||
|
Perhaps the phone doesn't understand the headers?
Under normal circumstances, you must send content type and charset in one header: PHP Code:
With WAP, I have found that you overwriting the header seems more stable for some reason: PHP Code:
Maybe you could change it to PHP Code:
Good luck...
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
thanks for the reply.
i'll try that jabba... thanks again... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > Page view error on wap |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|