Mobile browser by Novarra

software development

#1

I’m trying to get some web pages configured to look right on my mobile phone. The phone uses Novarra Vision. Specifically, the browser isn’t picking up one of my style settings: font-family: monospace so the columns of numbers don’t line up because spaces are narrower than numbers. I’m guessing that the Vision Browser has a reduced set of fonts. Has anyone programmed for this mobile browser? Is there any documentation or Developer Tool Kit for this browser?

Hey, I think US Cellular gave me the wrong info. The phone says it’s browser is Netfront v 3.5 by Access Co. Maybe I can find something on this browser.

This signature line intentionally blank.


#2

As far as I can tell (from http://www.novarra.com/solutions/html-micro-browsers-and-on-device-portal/), it looks as though Novarra Vision is actually some sort of software that runs on a server to convert HTML into WML (or something like that). So a lot of HTML is likely to not work on that type of browser… I really wouldn’t sweat it too much, unless you’re specifically trying to build a mobile site.


#3

Well, US Cellular told me the phone had Novarra but the phone itself says the browser is NetFront v 3.5 by Access Co.

Yeah, that’s what I’m trying to do, build a mobile site, or at least reformat some content so it displays better on my mobile phone.

But I must be doing something wrong with css. My app at http://ykfp.org/php/nwac/getwhitepass6.php screen scrapes some data of a snow report, then attempts to write it out at a smaller non-proportional font. I got the smaller part down but the columns don’t line up in the display on the phone because it looks like the space characters aren’t as wide as the numbers. But anything I try in the font-family line doesn’t seem to change the font on the phone or firefox on my desktop.

.style1 {
font-family: monospace;
font-size: xx-small;
font-weight:bold;
line-height:.9;
}
–>

Hey, wait, the whole table of numbers is a

 block. It must be that the phone browser doesn’t know it’s supposed to maintain whitespace and monospace inside 
 tags.

This signature line intentionally blank.


#4

Since I can’t figure out this browser and non-proportional fonts, I thought I’d go back to my old version that creates an image and writes the text to the image. This version still runs (http://ykfp.org/php/nwac/whitepasssno.php), but the phone’s browser wants to save the png image rather than display it. I have to go look for the image. I thought rather than figure out how to change the phone browser file handler I could just embed the image on an html page by simply adding html tags around it, but it’s obvious I don’t know what I’m doing (http://ykfp.org/php/nwac/whitepasssno3.php)

Here’s the code for this attempt:

<?php //header("Content-type: image/png"); //$url = "http://www.nwac.us/products/OSOWPS"; $url = "http://www.nwac.us/weatherdata/whitepass/now/"; $ch = curl_init(); $timeout = 10; curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $contents = curl_exec($ch); curl_close($ch); //Trim feed to useful data $cStartStr = "MM/DD"; $cEndStr= " "; //$cUsefulContents=stristr($contents,$cStartStr); $cPageTail = stristr($contents, $cStartStr); $nUsefulDataEndPos = strpos($cPageTail, $cEndStr); $cUsefulData = substr($cPageTail, 0, $nUsefulDataEndPos); // Construct an image file with the data printed in //$im = imagecreatetruecolor(400, 310); $im = imagecreatetruecolor(400, 362); $backgroundcolor = imagecolorallocate($im, 232, 255, 255); $foregroundcolor = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 359, $backgroundcolor); $font = '../../fonts/COURBD.TTF'; $fontsize = 7; // size in points imagettftext($im, $fontsize, 0, 0, 10, $foregroundcolor, $font, $cUsefulData); imagepng($im); imagedestroy($im); ?>

This signature line intentionally blank.


#5

Yeah, its not that easy and I would be surprised if NetFront supported it. See data URI scheme.

Customer since 2000 :cool: openvein.org | Please don’t feed the trolls. :@