SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 23rd, 2005, 10:19 PM
dtra dtra is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 446 dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 39 m 36 sec
Reputation Power: 12
wml 1.0

hi all

we are developing a wap site for some mobile devices
problem we have is that some of the devices supprt wap 1.1
while others do not

the main culprit is this nokia 2280 we have
i assume that it supports wap 1.0 since it was sent to us for testing
but when i try to load up a page i get
unsupported content type

this is the top of the file

Code:
header('Content-Type: text/vnd.wap.wml; charset=utf-8');
    echo('<?xml version="1.0"?>');
<!DOCTYPE WML PUBLIC "-//WAPFORUM//DTD WML 1.0//EN" "http://www.wapforum.org/DTD/WML.xml">


using php obviously, and apache, wml 1.1 loads fine in the other phone we have, which obviously has a slightly different dtd

i have validated the code using validome.org, and it says valid

any advice

thanks
dave

Reply With Quote
  #2  
Old August 28th, 2005, 10:12 PM
dtra dtra is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 446 dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 39 m 36 sec
Reputation Power: 12
ok, this is the code i'm trying now, exactly

<?php
header('Content-Type: text/vnd.wap.wml; charset=utf-8');
echo('<?xml version="1.0"?>');
?>

<!DOCTYPE WML PUBLIC "-//WAPFORUM//DTD WML 1.0//EN" "http://www.wapforum.org/DTD/wml.xml">
<WML>
<CARD>
HELLO?
</CARD>
</WML>

and all it says is unsupported content type on the phone, the page validates fine

Reply With Quote
  #3  
Old August 29th, 2005, 01:19 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,667 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 4 Days 5 h 1 m 49 sec
Reputation Power: 1618
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
The code snippet you posted is invalid:

Code:
<wml>
<card>
<p>HELLO?</p>
</card>
</wml>


I was trying to find the specs of your phone to see waht wml it supports, but couldn't find it. Try adding this at the top in your php bit:
PHP Code:
<?php
// use what you have already plus the following
header('Content-Type: text/vnd.wap.wml');
Don't ask me why, but I have found that this can make a difference.
__________________
Cheers,

Jamie


# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

# Any form of employment is strictly prohibited ......


__________________

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.

__________________

Reply With Quote
  #4  
Old August 29th, 2005, 01:42 AM
dtra dtra is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 446 dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 39 m 36 sec
Reputation Power: 12
nope, i already had the header at the top
and with the <p> tags the code is not valid
tried it with and without them, but still didn't work,
thanks anyway, i'll see if i can get some documentation from the guys that gave us the phone

ok, minibrowser version
4.1.26l1.c.1 (NOKIA-RH-17/V F100V1401.nep.0)
if that means anything to anyone

ok, bizaaro world strikes, the site is now working to some degree, still getting some stupid unsupported content types, but should be able to work it out now

dave

Last edited by dtra : August 29th, 2005 at 02:38 AM.

Reply With Quote
  #5  
Old August 31st, 2005, 03:33 PM
G00SE's Avatar
G00SE G00SE is offline
.... escape ....
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 448 G00SE User rank is Sergeant (500 - 2000 Reputation Level)G00SE User rank is Sergeant (500 - 2000 Reputation Level)G00SE User rank is Sergeant (500 - 2000 Reputation Level)G00SE User rank is Sergeant (500 - 2000 Reputation Level)G00SE User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 19 h 42 m 8 sec
Reputation Power: 11
Add this to your card tag:

<card title="Title">
__________________

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > wml 1.0


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway