Sony Ericsson / Sony : GPRS, WAP, MMS and Email setup : WAP Image Problem.
>
New Topic
>
Reply<
Esato Forum Index
>
Sony Ericsson / Sony >
GPRS, WAP, MMS and Email setup
> WAP Image Problem.
Bookmark topic
Hi,
I don't know if this is the right place to put thi,s but I can be sure most of you have GPRS Sony Ericssons, and most of you know your stuff about WAP. Move this to another section if its incorrectly posted.
I am building a WAP site, a cut down version of my own, I'm a graphic designer, and thought WAP would be an easy way of Clients contacting me, or getting my contact info on the move, so I spent a few hours learning .wml, and .xml. I now have the "default.wml" page, that lets you chose the type of phone you have, and go to the correct page, the choices are "SonyEricsson, Colour Device, WAP / BandW", obviously SE's have their own pages, as they can show more 'web-like' graphics, and usually have GPRS. The problem I am having, is on the SE version of the site, I am getting a "whitespace" between my images, I want them to touch each other; the address of the site is:
www.jonathonoates.co.uk/wap
If you can tell me the problem, and maybe a fix, I would be most greatful.
Thank you.
--
Posted: 2003-01-16 21:15:00
Edit :
Quote
Wow, nice site even if the images have white space! Which image editing prog did u use? Photoshop? Are you sure there is only 1 <br/> tag between the images? Also, only use one <p> tag on the pages, dont put each image in one... Ill have a look at your main site next time im on a pc...
This message was posted from a T65
--
Posted: 2003-01-16 21:47:00
Edit :
Quote
Hi j_oates2003 and welcome to Esato.
I tried to access the site w/ my T68i and it wouldn't load:
500: Web service problem: Please contact the service provider
I next tried to load the site using a wml browser emulator on my pc. The first page loaded no problem. I selected Sony-Ericsson, and it took me to a wml page that just listed the words "Jonathon Oats" over and over.
Are you trying to have SE users see color graphics on wml pages? I might be mistaken, but I thought the only acceptable image file format on wml pages were black and white bitmaps (.BMP files). Can someone please verify this? For T68 and T300 users to see color gifs and jpgs, I believe you must code the wap pages using xhtml.
Regarding gaps between images, the only thing I can think of has to do with hspace and vspace attributes within img tags. Make sure both are set to zero (0).
But remember, formatting xhtml pages for wireless phones is still very primative! Also, it's possible some wap gateways may limit or ignore fancy formatting attempts.
Let us know how it goes.
T68iFan
--
Posted: 2003-01-16 22:15:00
Edit :
Quote
The se page works fine for me, (t65) but the images do not link anywhere? I tried the other options just out of interest, and neither page displayed anything, not even an image placeholder? Hope this helps...
This message was posted from a T65
--
Posted: 2003-01-16 22:28:00
Edit :
Quote
Yes, I am sure about the
and tags, the gap seems to be less if I leave out the
tags alltogether, and have it all on one line. I am working on a way around this, using a timer, slideshow style site, making use of the function. You said there was a 500: error, that was when I was uploading more parts and updates to the site, if you get that, you just check back.
@T68iFan -
You are correct in some ways, a nokia, or plain WAP device can only see 1-bit bitmaps, with the extention .wbmp, but SE's, even ones that are not the T300 and T68m/i, e.g. the T39m can see .gif files, and the page is still coded in .wml. XHTML is only used on WAP2 eneabled devices, phones are only WAP1.2 I'm afraid, so the DTD is .xml, and the pages are .wml (however, .wml is a basic form of .xml)
@chrisgray999 -
No, I used Fireworks to make the artwork, and a Photoshop Plug-in (from within FireworksMX, as it can now use PS Plug-ins) to export them as .wbmp. I used Notepad to hand code the .wml and .xml, and the SonyEricsson WAP IDE 1.2 to test the pages on my machine, I used a Nokia 6210 to test the wml with Nokia's and low-res devices, and the Nokia AP Toolkit to test the Nokia pages on low-res, small size displays, e.g. 8310.
Thank you all, check back over the next few days, the SE bit should be up by then, hopefully by the end of tonight, .wml is so easy to code, even session var's and data sources

if any one would like to see the code, just ask, and I'll post it up.
--
Posted: 2003-01-16 22:59:00
Edit :
Quote
Yeah, could u post the code up, then we may be able to see... Cheers for the info btw!
This message was posted from a T65
--
Posted: 2003-01-16 23:06:00
Edit :
Quote
Ok, here goes;
Code:
---This is the DTD---
<!ENTITY % length "CDATA">
<!ENTITY % vdata "CDATA">
<!ENTITY % HREF "%vdata;">
<!ENTITY % boolean "(true|false)">
<!ENTITY % number "NMTOKEN">
<!ENTITY % coreattrs "id ID #IMPLIED
class CDATA #IMPLIED">
<!ENTITY % emph
"em | strong | b | i | u | big | small">
<!ENTITY % layout "br">
<!ENTITY % text "#PCDATA | %emph;">
<!ENTITY % flow
"%text; | %layout; | img | anchor | a | table">
<!ENTITY % task "go | prev | noop | refresh">
<!ENTITY % navelmts "do | onevent">
<!--============= Decks and Cards =============-->
<!ELEMENT wml ( head?, template?, card+ )>
<!ATTLIST wml
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!-- card intrinsic events -->
<!ENTITY % cardev
"onenterforward %HREF; #IMPLIED
onenterbackward %HREF; #IMPLIED
ontimer %HREF; #IMPLIED"
>
<!-- card field types -->
<!ENTITY % fields
"%flow; | input | select | fieldset">
<!ELEMENT card (onevent*, timer?, (do | p)*)>
<!ATTLIST card
title %vdata; #IMPLIED
newcontext %boolean; "false"
ordered %boolean; "true"
xml:lang NMTOKEN #IMPLIED
%cardev;
%coreattrs;
>
<!--============= Event Bindings =============-->
<!ELEMENT do (%task;)>
<!ATTLIST do
type CDATA #REQUIRED
label %vdata; #IMPLIED
name NMTOKEN #IMPLIED
optional %boolean; "false"
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT onevent (%task;)>
<!ATTLIST onevent
type CDATA #REQUIRED
%coreattrs;
>
<!--======== Deck-level declarations ========-->
<!ELEMENT head ( access | meta )+>
<!ATTLIST head
%coreattrs;
>
<!ELEMENT template (%navelmts;)*>
<!ATTLIST template
%cardev;
%coreattrs;
>
<!ELEMENT access EMPTY>
<!ATTLIST access
domain CDATA #IMPLIED
path CDATA #IMPLIED
%coreattrs;
>
<!ELEMENT meta EMPTY>
<!ATTLIST meta
http-equiv CDATA #IMPLIED
name CDATA #IMPLIED
forua %boolean; #IMPLIED
content CDATA #REQUIRED
scheme CDATA #IMPLIED
%coreattrs;
>
<!--================ Tasks ================-->
<!ELEMENT go (postfield | setvar)*>
<!ATTLIST go
href %HREF; #REQUIRED
sendreferer %boolean; "false"
method (post|get) "get"
accept-charset CDATA #IMPLIED
%coreattrs;
>
<!ELEMENT prev (setvar)*>
<!ATTLIST prev
%coreattrs;
>
<!ELEMENT refresh (setvar)*>
<!ATTLIST refresh
%coreattrs;
>
<!ELEMENT noop EMPTY>
<!ATTLIST noop
%coreattrs;
>
<!--============= postfield =============-->
<!ELEMENT postfield EMPTY>
<!ATTLIST postfield
name %vdata; #REQUIRED
value %vdata; #REQUIRED
%coreattrs;
>
<!--============= variables =============-->
<!ELEMENT setvar EMPTY>
<!ATTLIST setvar
name %vdata; #REQUIRED
value %vdata; #REQUIRED
%coreattrs;
>
<!--============= Card Fields =============-->
<!ELEMENT select (optgroup|option)+>
<!ATTLIST select
title %vdata; #IMPLIED
name NMTOKEN #IMPLIED
value %vdata; #IMPLIED
iname NMTOKEN #IMPLIED
ivalue %vdata; #IMPLIED
multiple %boolean; "false"
tabindex %number; #IMPLIED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT optgroup (optgroup|option)+ >
<!ATTLIST optgroup
title %vdata; #IMPLIED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT option (#PCDATA | onevent)*>
<!ATTLIST option
value %vdata; #IMPLIED
title %vdata; #IMPLIED
onpick %HREF; #IMPLIED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT input EMPTY>
<!ATTLIST input
name NMTOKEN #REQUIRED
type (text|password) "text"
value %vdata; #IMPLIED
format CDATA #IMPLIED
emptyok %boolean; "false"
size %number; #IMPLIED
maxlength %number; #IMPLIED
tabindex %number; #IMPLIED
title %vdata; #IMPLIED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT fieldset (%fields; | do)* >
<!ATTLIST fieldset
title %vdata; #IMPLIED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT timer EMPTY>
<!ATTLIST timer
name NMTOKEN #IMPLIED
value %vdata; #REQUIRED
%coreattrs;
>
<!--============= Images =============-->
<!ENTITY % IAlign "(top|middle|bottom)" >
<!ELEMENT img EMPTY>
<!ATTLIST img
alt %vdata; #REQUIRED
src %HREF; #REQUIRED
localsrc %vdata; #IMPLIED
vspace %length; "0"
hspace %length; "0"
align %IAlign; "bottom"
height %length; #IMPLIED
width %length; #IMPLIED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!--============= Anchor =============-->
<!ELEMENT anchor
( #PCDATA | br | img | go | prev | refresh )*>
<!ATTLIST anchor
title %vdata; #IMPLIED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT a ( #PCDATA | br | img )*>
<!ATTLIST a
href %HREF; #REQUIRED
title %vdata; #IMPLIED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!--============= Tables =============-->
<!ELEMENT table (tr)+>
<!ATTLIST table
title %vdata; #IMPLIED
align CDATA #IMPLIED
columns %number; #REQUIRED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT tr (td)+>
<!ATTLIST tr
%coreattrs;
>
<!ELEMENT td
( %text; | %layout; | img | anchor | a )*>
<!ATTLIST td
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!--== Text layout and line breaks ==-->
<!ELEMENT em (%flow;)*>
<!ATTLIST em
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT strong (%flow;)*>
<!ATTLIST strong
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT b (%flow;)*>
<!ATTLIST b
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT i (%flow;)*>
<!ATTLIST i
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT u (%flow;)*>
<!ATTLIST u
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT big (%flow;)*>
<!ATTLIST big
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT small (%flow;)*>
<!ATTLIST small
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ENTITY % TAlign "(left|right|center)">
<!ENTITY % WrapMode "(wrap|nowrap)" >
<!ELEMENT p (%fields; | do)*>
<!ATTLIST p
align %TAlign; "left"
mode %WrapMode; #IMPLIED
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ELEMENT br EMPTY>
<!ATTLIST br
xml:lang NMTOKEN #IMPLIED
%coreattrs;
>
<!ENTITY quot """>
<!-- quotation mark -->
<!ENTITY amp "&">
<!-- ampersand -->
<!ENTITY apos "'">
<!-- apostrophe -->
<!ENTITY lt "<">
<!-- less than -->
<!ENTITY gt ">">
<!-- greater than -->
<!ENTITY nbsp " ">
<!-- non-breaking space -->
<!ENTITY shy "">
---This is the default.wml---
/<?xml version="1.0"?>
/<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD /WML /1.1//EN" "http://www.jonathonoates.co.uk/wap/dtd.xml">
/
/<!-- Start of wapsite -->
/
/<wml>
/
/<!-- Start of card1 -->
/
/<card id="default" title="Jonathon Oates">
/
/<p align="center">
/ <img src="logo.wbmp" alt="Jonathon Oates New Media, Ltd."/>
/<br/>
/ <img src="default_text.wbmp" alt="Please select your browser type;"/>
/ <select name="manu">
/ <option value="noselction">........</option>
/ <option value="sonyericsson">Sony Ericsson</option>
/ <option value="colour">Colour Devices</option>
/ <option value="wap">WAP /Phones</option>
/ </select>
/ <a href="$(manu).wml"><img src="go.wbmp" alt="Go"/></a>
/</p>
/<p align="center">
/ <br/>
/ <br/>
/ <small>Copyright 2003</small>
/</p>
/
/</card>
/
/<!-- End of card1 -->
/
/</wml>
/
/<!-- End of wapsite -->
/
/
---This is the default.wml---
/
/
/<?xml version="1.0"?>
/<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML /1.1//EN" "http://www.jonathonoates.co.uk/wap/dtd.xml">
/
/<!-- Start of wapsite -->
/
/<wml>
/
/
/<!-- Start of card1 -->
/
/<card ontimer="#card2">
/<timer value="40"/>
/
/<p>
/ <img src="sonyericsson_loading.gif" alt="Loding Page"/>
/</p>
/
/</card>
/
/<!-- End of card1 -->
/
/
/<!-- Start of card2 -->
/
/<card id="card2" ontimer="#card3" title="Welcome">
/<timer value="40"/>
/
/<p>
/ <img src="sonyericsson_title.gif" alt="Loding Page"/>
/
/</p>
/
/</card>
/
/<!-- End of card2 -->
/
/
/<!-- Start of card3 -->
/
/<card id="card3" ontimer="#card4" title="About Me">
/<timer value="60"/>
/
/<p>
/ <img src="sonyericsson_title.gif" alt="Loding Page"/>
/
/</p>
/
/</card>
/
/<!-- End of card3 -->
/
/
/<!-- Start of card4 -->
/
/<card id="card3" title="Contact">
/
/<p>
/ <img src="sonyericsson_title.gif" alt="Loding Page"/>
/
/</p>
/
/</card>
/
/<!-- End of card4 -->
/
/
/</wml>
/
/<!-- End of wapsite -->
That is the latest code, as you can see, I have changed the pages around a bit, so the Decks create a slide-show, I tried the hspace, but the browser doesn't seem to care about it.

[ This Message was edited by: j_oates2003 on 2003-01-16 22:20 ]
--
Posted: 2003-01-16 23:14:00
Edit :
Quote
@chrisgray999
Thanks for the clarification. I tried the site again from my T68i and still got the same error. Can the T68i only browse wap2 pages in xhtml? Or can it also browse wap1 wml pages?
Sure, I'd like to see the code, too. - Thanks
--
Posted: 2003-01-16 23:14:00
Edit :
Quote
Don't forget to wrap the code samples with the [CODE] [/CODE] BBcode tags. You may also want to disable html for the post.
[ This Message was edited by: T68iFan on 2003-01-16 22:17 ]
--
Posted: 2003-01-16 23:16:00
Edit :
Quote
@T68iFan -
WAP2 is not the what a phone can and can't see, it's the language used to script it, WAP2 is more like HTML, where as WAP1 is more like XML. No wap phone, apart from the SEP800 and that Nokia Brick can see these WAP2 pages, as the T68i's only have a WAP1.2 compatable browser.
--
Posted: 2003-01-16 23:23:00
Edit :
Quote
New Topic
Reply