Google
Showing posts with label DTD. Show all posts
Showing posts with label DTD. Show all posts

Monday, September 03, 2007

Layout problems with XHTML MP and WML

Things that have so far been a pain in the butt to fix:

1) A link like this blew up the DTD i was using :
<a href="wap_page.php?value1=blah&value2=blah">Link</a>

Q)Why did it blow up?
A)The "&" was the problem using This site I have to change "&" to "& #38;"

2) Field input, using this example I still cannot get the text and input fields to display like they have it (everything in line)

I cannot put the input fields into a table, as that blows up the DTD. And using extra spaces " " just doesn't do the trick, as 3 blank spaces might be displayed differently on different phone.

Example I want:


Login : [_____]
Password: [_____]

This is what i get:
Login : [_____]
Password: [_____]

This could easily be fixed if in wml I could use "<pre>" tags, but I guess that will have to do.

3) This has got me stumped, i have cut out most of the code, but just show how fun this is here is the simple version :

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id='input1' title='Wap Page'>
<p>
<anchor>
<go href='wap_page.php' method='post'>
<postfield name='report' value='yes'/>
<postfield name='type' value='stuff'/>
</go>
Display Details
</anchor>
</p>
</card>
</wml>

Now what is the problem? Well the anchor link works on Telstra using my Nokia 7250i, but when I change sim card to Vodafone on the exact same phone, the anchor link doesn't work. It just points to the top of the page. I really couldn't be bothered chasing this one up. So I used a different type of link...