rejetto forum

question about hfs and wap

ledufe · 6 · 6983

0 Members and 1 Guest are viewing this topic.

Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
i have a cel phone (motorola v3 black) and this phone is wap enable, but i don´t know exactly the wap specifications of it(working on it) but i tryed sucessifuly access the hfs no-ip url of my server(http://ledufe.no-ip.info:2222) but the layout was tottally a mess, but it was a win, at least i could acess it, even when i change to every tpl i made or of this forum it was always a mess, so i "goggled" a little and found this, my problem is on the formating code that hfs generate, it generate HTML (of course!) but i found some information in google that some pages can be writed in xml ou xhtml and be acessible by wap, going even futher in my researchs, i found that the xml is more close to the wml, and i know that my question is a little confused, but i want to know if it is possible to make hfs accessible by my cel phone browser, and still be acessible from every other pc-browser(opera, firefox, ie...)?

it is possible to make a template that generates the wml and the html at the same time?
if it is, how can i make it? somebody can help me?
if it is not supported,it will be in the future?

i want to make a section in my hfs server to host some jar/jad files to install on the phones of my friend.
<<LeDuFe>>


Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
some info i could manage to find in the internet about it:

motorola test browser is free, but i couldn´t find it anywhere on the internet, and the old motocoders website is totally changed, so i give up and download it in emule,
after download and install it, i make some mods in the template and finally worked...


but with some errors, and i guess that with some help or time or both i can fix-it

i had to add some mime-types to hfs

*.jad   text/vnc.j2me.app-descriptor
*.jar   application/java-archive

and this is the template that i adapt to best display on my motorola v3

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<meta name="generator" content="LeDuFe HFS%version% WAP" />
<title>HFS WAP %folder%</title>
<style type="text/css">
%style%
#filelist { border-collapse: collapse; }
#filelist td, #filelist th {text-align: left; }
#filelist th { font-size: 0.8em; text-align: left; }
#filelist th a { color: #436976; text-align: left; }
#filelist th a:hover { text-decoration: underline; color: #278DCF; text-align: left; }
#up { display: block; text-align: left; }
.file a, .folder a, .link a { text-align: left; }
.new { color: red; }
.folder a { text-align: left; }
.file a  span, .folder a span, .link a span { display: table;}
.filehits { text-align: left; padding-left: 0.5em; }
</style>
</head>
<body>
<div id="heading">
<align="center">
<img src="http://192.168.1.2:2222/hfs-ledufe-logo-wap.wbmp" alt="HFSWAP"/>
<h1><a href="%parent-folder%" id="title">%folder%</a></h1>
</div>
<div class="grid">
%files%
</div>
</body>
</html>

[style]
body { font-size: 76%; font-family: Verdana, Arial, Tahoma, sans; margin:0px; background-color:white; color: teal; }
#heading { padding:0.1em; background-color: #EFEFEF; }
h1 { font-size:2em; font-weight:bold; font-family: "Trebuchet MS"; color: black; margin: 0px; padding: 0px; }
h1 a { color: black; text-decoration: none; }
a { color: #278DCF; text-decoration:none; }
a:hover { color: black; }
img { border:none; }
.little { font-size: 0.8em; text-align: left; }
.left { text-align: left; }
.grid {margin:1px; text-align: left; }
.button { float:left; padding:0.1em; background-repeat: no-repeat; background-position: 0%; margin-left: 0.5em; }
.error { margin: 2em; }

[up]
<a href="%parent-folder%" id="up">
</a>

[nofiles]
<p class="error">
<a href="%parent-folder%">
oops! empty in here..
</a>
</p>

[files]
<table id="filelist">
<thead>
<tr>
<th>
<a href="%encoded-folder%?sort=n">
Name
</a>
</th>
<th>
<a href="%encoded-folder%?sort=s">
Size
</a>
</th>
</tr>
</thead>
<tbody>
%list%
</tbody>
</table>
<span class="little">
<br>
%number-folders% folders %number-files% files %total-size%
</span>

[file]
<tr>
<td class="file">
%new%
<a href="%item-url%">
%item-name%
</a>
</td>
<td class="left">
%item-size%
</td>
</tr>

[folder]
<tr>
<td class="folder">
%new%
<a href="%item-url%">
<b>
%item-name%
</b>
</a>
</td>
<td class="center">
</td>
</tr>


and this are the snapshots i taked using the motorola ADK 2.2.1 for V Series


--

--

--

--
and if it helps anybody, this is part of the log of the hfs when i accessed it from my phone

> context_id: 20060621114109-CSD-91159
> accept:text/css,application/xhtml+xml,
application/vnd.wap.xhtml+xml,
application/vnd.wap.multipart.related,
application/vnd.wap.multipart.mixed,
multipart/mixed,application/vnd.wap.sic,
application/vnd.oma.drm.message,
application/vnd.phonecom.mmc-wbxml,
application/vnd.oma.dd+xml,
application/motorola-mmstemplate,
image/gif,image/bmp,image/vnd.wap.wbmp,
image/png,image/jpeg,image/ems.userdefined.picture,
image/ems.userdefined.animation,
image/ems.predefined.animation,
audio/bas,
audio/imelody,
audio/mid,
audio/midi,
audio/mp3,
audio/mpeg,
audio/mpeg3,
audio/mpg,
audio/x-mp3,
audio/x-mpeg,
audio/x-mpeg3,
audio/x-mpg,
audio/x-wav,
audio/wav,
audio/amr,
audio/3gpp,
video/mp4,
video/3gpp,
application/mtf,
application/vnd.oma.drm.message,
application/vnd.oma.drm.rights+xml,
text/x-vcard,
text/x-vcalendar,
text/uri-list,
text/vnd.sun.j2me.app-descriptor,
application/java-archive,
application/octet-stream,
application/vnd.wap.mms-message,
text/vnd.wap.wml,
text/vnd.wap.wmlscript,
application/vnd.wap.wmlc;q=0.500,
application/vnd.wap.wbxml;q=0.500,
application/vnd.wap.wmlscriptc;q=0.500,
text/html;q=0.500,
*/*;q=0.001
> accept-charset:utf-8,ISO-8859-1,*;q=0.001
> accept-encoding:*;q=0.001
21/6/2006 11:51:13 200.255.121.21:51283 Served 3,85 KB
21/6/2006 11:51:16 200.255.121.21:51283 Disconnected - 3941 bytes sent
21/6/2006 11:51:22 200.255.121.21:55935 Connected
21/6/2006 11:51:22 200.255.121.21:55935 Requested GET /~img9
21/6/2006 11:51:22 200.255.121.21:55935 Request dump

> GET /~img9 HTTP/1.1
> Host: ledufe.no-ip.info
> accept-application: 2
> accept-application: 4
> user-agent: MOT-V3/0E.42.0BR MIB/2.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.0
> accept-language: pt-br
> msisdn: 2192918944
> context_id: 20060621114120-CSD-91335
> > accept:text/css,application/xhtml+xml,
application/vnd.wap.xhtml+xml,
application/vnd.wap.multipart.related,
application/vnd.wap.multipart.mixed,
multipart/mixed,application/vnd.wap.sic,
application/vnd.oma.drm.message,
application/vnd.phonecom.mmc-wbxml,
application/vnd.oma.dd+xml,
application/motorola-mmstemplate,
image/gif,image/bmp,image/vnd.wap.wbmp,
image/png,image/jpeg,image/ems.userdefined.picture,
image/ems.userdefined.animation,
image/ems.predefined.animation,
audio/bas,
audio/imelody,
audio/mid,
audio/midi,
audio/mp3,
audio/mpeg,
audio/mpeg3,
audio/mpg,
audio/x-mp3,
audio/x-mpeg,
audio/x-mpeg3,
audio/x-mpg,
audio/x-wav,
audio/wav,
audio/amr,
audio/3gpp,
video/mp4,
video/3gpp,
application/mtf,
application/vnd.oma.drm.message,
application/vnd.oma.drm.rights+xml,
text/x-vcard,
text/x-vcalendar,
text/uri-list,
text/vnd.sun.j2me.app-descriptor,
application/java-archive,
application/octet-stream,
application/vnd.wap.mms-message,
text/vnd.wap.wml,
text/vnd.wap.wmlscript,
application/vnd.wap.wmlc;q=0.500,
application/vnd.wap.wbxml;q=0.500,
application/vnd.wap.wmlscriptc;q=0.500,
text/html;q=0.500,
*/*;q=0.001
> accept-charset:utf-8,ISO-8859-1,*;q=0.001
> accept-encoding:*;q=0.001
21/6/2006 11:51:22 200.255.121.21:55935 Served 595 B
21/6/2006 11:51:23 200.255.121.21:17460 Connected
21/6/2006 11:51:23 200.255.121.21:17460 Requested GET /~img_folder
21/6/2006 11:51:23 200.255.121.21:17460 Request dump
<<LeDuFe>>


Offline ants

  • Occasional poster
  • *
    • Posts: 20
    • View Profile
Nice work! I've used HFS with my phone through GPRS and it worked great.


Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
hi ants,this is for you and anybody else who can you give-me some more info abou your(any) phone?
like:
-size of your screen
-wap suport on the browser is wap 1, 1.1 or 2.0
-max file size of the "Deck"
-if it suport streaming
-and everything else you know about hfs-wap?

p.s.: have you tryied with the template i´ve posted here or you made your own?
if you have made another template to some phone or only compatible with yours, please post here.
<<LeDuFe>>


Offline gangooparsad

  • Occasional poster
  • *
    • Posts: 90
    • View Profile
hi ants,this is for you and anybody else who can you give-me some more info abou your(any) phone?
like:
-size of your screen
-wap suport on the browser is wap 1, 1.1 or 2.0
-max file size of the "Deck"
-if it suport streaming
-and everything else you know about hfs-wap?

p.s.: have you tryied with the template i´ve posted here or you made your own?
if you have made another template to some phone or only compatible with yours, please post here.

oh man i was totally looking for thread for about 2 days...finally found it.. actually i have a KF900 phone the link is below...
http://www.gsmarena.com/lg_kf900_prada-2552.php

it supports streaming but only a 3g or GPRS EDGE network...i am trying to preview the mp4 on the phone but this thing doesnt support flash so the window doesnt show...



Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 1994
    • View Profile
this is an very old topic, ledufe has no activity on the forum since a very long time, you will certainly not receive an answer on this topic