Posted by kareem 3 years 20 weeks ago
I'm having a problem trying to get a basic form to look reasonably well on a couple of different devices.
I'm targeting blackberry and windows mobile devices. Here's the issue.
I have a simple textbox and a select and I want them to be 100% the width of the screen.
Windows Mobile devices render the select properly, but only render the textbox about 80% of the width no matter what I try. From 100% to 500px it still renders the same.
That I can live with, but the real issue is blackberries.
They seem to completely ignore any width properties and just render out however they want.
Textboxes seem to always render the same size regardless of content, and select render out to match the largest item in the list.
I've tried setting the width attribute, the style attribute and using separate stylesheet. Nothing seems to work.
The only thing that has any effect on the blackberry rendering is using the size attribute, but I can't use that because I don't know the width of the various screens and how many characters that would be.
Any ideas?




Posted by mattsclarke 3 years ago
One technique you could try would be to get the screen size from Device Atlas or Wurfl and use that to set the width. Bit of a sledgehammer to crack a nut solution though.
Posted by clark7812 29 weeks ago
My first 2 lines in my code are:
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> (had to add a space or the site didn't want to show this line)
Now, the validator already goes 'berserk' that it doesn't recognize the DTD, since it's not an official W3C DTD. venice beach art Online Courses
I'm fairly sure the both lines are correct, so I don't really understand why the tutorial says that we could use that seeing it clearly doesn't work...
Posted by Beta 28 weeks ago
Kareem,
Did you ever get this problem solved. I'm having the same issue. I can't get a basic form to look right on a couple of different mobile devices. I am also targeting blackberry and window devices. The textboxes are different on each mobile device that I try it on. I tried what MattSClarke suggested above and used Device Atlas to set the width. No luck.
Posted by danz 19 weeks ago
You should try to use flexible forms which modify their width according to the display size of the mobile device. In this way your application will look the same regardless if it's viewed on backberry, iPhone, or any other mobile device. Read this thread for more information. Cheers! asigurarea obligatorie a locuintei
Posted by eavedrop44 13 weeks ago
Textboxes seem to always render the same size regardless of content, and select render out to match the largest item in the list.
Reviews of Dentists
Posted by sukhi 9 weeks ago
Hi, if i could then i would solve your problem. But i have little knowledge on this matter. Legend Trail Real Estate