|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card title="First wml example"> <p>Hello world</p> </card> </wml> Is there a certain way that I have to upload this to a server so that it will display through a cell phone? When I go to view it on my cell phone nothing comes up but a blank screen. The file is uploaded to the server, could it be that I am using a linux server or should I store it on the streaming server? |
|
#2
|
||||
|
||||
|
What have you saved the file as ? wml ?
Does your phone accept wml files ? Apart from maybe changing the following, the page should display Code:
wml
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> // change to <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> What kind of server are you on? If you are on Apache, then you may have to addType to get wml to work.... Please change your "location" address as I asked you politely before!
__________________
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. __________________ |
|
#3
|
|||
|
|||
|
I saved the file as "page1.wml", and the page is being stored on a Linux server that has Apache. I added the MIME Type to the server.
text/vnd.wap.wml text/vnd.wap.wmls image/vnd.wap.wbmp application/vnd.wap.wmlc application/vnd.wap.wmlsc I am trying to access the site through a samsung SGH-T309. ![]() |
|
#4
|
||||
|
||||
|
Your phone accepts: WAP 2.0 compliant code:
Create a page using XHTML Mobile Profile ![]() |
|
#5
|
|||
|
|||
|
Thanks Jabba_29, with wap 2.0 is wml and wmlscript still widely used? or is 2.0 tuned towards Xhtml, c-html, and so on.
|
|
#6
|
||||
|
||||
|
chtml is html basic - equivilant of HTML 3 IIRC. It is crap really, you can do some fancy things for imode, but IMHO pretty pointless -unless you have a big market in Japan
.wap 2.0 is xhtml, but a slightly restrcited version. See the links in my sig in my first post for good sites to read up about it. In particular Developers Home. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Can't view simple page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|