wap enable a jade web page

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

wap enable a jade web page

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:06 pm

by ssi >> Wed, 13 Feb 2002 1:24:52 GMT

I am trying to wrk out how to wap enable a web page in jade.

Has anyone managed to do this?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: wap enable a jade web page

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:06 pm

by CarlRanson >> Wed, 13 Feb 2002 2:21:31 GMT

Can you elaborate on what constitutes a "wap enabled" web page?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: wap enable a jade web page

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:06 pm

by kevin_alcock >> Wed, 13 Feb 2002 20:38:18 GMT

The short answer is yes.

The quickest way to this is to create an InternetPipe app to talk to the jadehtttp.dll directly. Make sure that you set the MIME type correcty otherwise jade will send it as html.

Below is a simple method that respond to any request sent to it. Put this call back method on your sub class of InternetPipe.

This is probably cryptic so email me and I'll send more info when I have some time.

Cheers,

Kevin
--
kalcock@jade.co.nz
Jade Software Corporation Limited
Ph: +64 3 358 0102 x4100
Fax: +64 3 358 4882
Cell: +64 21 638 586


readPipeCallback(pPipe:InternetPipe; msg:Binary) updating;
vars
wapReply : String;begin


wapReply := 'Content-Type: text/vnd.wap.wml


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

<wml>
<head>
<meta http-equiv="Cache-Control" content="max-age=1"
forua= "true"/>
</head>
<card>
<p>
Hello, Wap World! ' & app.actualTime.String & '
</p>
</card>
</wml>';

writeBinary(wapReply.Binary);
end;

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: wap enable a jade web page

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:06 pm

by wxv >> Wed, 13 Feb 2002 23:18:46 GMT

Using the standard web stuff in jade, there is no way to wap enable a page, youve got to have full control over the output sent to the browser.

If its a very small app, you could connect to the jadehttp.dll ISAPI DLL youself using the InternetPipe or TCPIPConnection class, but you will being doing a lot of grunt work (session handling, request parsing, manually forming the WML code etc).

I wrote a small application a while back for the Nokia WAP competition that basically exposed a soccer competition scoreboard over the web and over WAP. Judges could enter in scores as the games were played which would be reflected live on the Web/WAP site. It used the "obj-x" framework we developed here at gen-i which took care of the messy infrastructure things (HTTP request handling), and let me focus on writing all my HTML and WML using jadescript-based "ASP" pages. It kinda made things much easier :-)


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 24 guests