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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old February 15th, 2004, 03:35 AM
chamsy chamsy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 13 chamsy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 11 m 55 sec
Reputation Power: 0
Send a message via Yahoo to chamsy
configure apache 2 to parse wml pages

Hi,

I have added these lines to apache2 httpd.conf file.

#MIME types for WAP

#For normal WML pages
AddType text/vnd.wap.wml .wml

#For WML embedded graphics
AddType image/vnd.wap.wbmp .wbmp

#End MIME types for WAP

But when i try to open a wml page the browser asks me wether i want to download the page instead of showing the contents of the page. The wap browser i use is yourWAP wireless companion. I am using windows XP.Plz help me.
Here is my wml code.

<wml>
<!-- begin card -->
<card>
<do type="accept">
<go href="#card2"/>
</do>
<p>
This is the first card.
Press OK to go to the second card.
</p>
</card>
<!-- begin card -->
<card id="card2">
<p>
This is the second card.
</p>
</card>

</wml>

Thanks in advance,
chamal.

Reply With Quote
  #2  
Old March 10th, 2004, 01:32 AM
ChiralSoftware ChiralSoftware is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Beverly Hills
Posts: 45 ChiralSoftware User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to ChiralSoftware
Several problems here

First, get rid of the AddType directives. Those MIME types are already set correctly in mime.conf, and you don't need to set them again.

Second, your WML files look fine, except, remember, WML is a subset of XML, and your XML files are missing something:

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">


This should be the very first part of your wml file. Otherwise it is not properly identified as an XML file, and so your emulator isn't parsing it and can only save it for some other program.

Also, I think the id attribute is required for the card object. You might want to check on that.

Or you can skip all of these problems and just do the whole thing automatically: http://chiralsoftware.net/products.html

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > configure apache 2 to parse wml pages


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 3 hosted by Hostway