Friday, October 30, 2009

Fundamental of XHTML MP

Overall, XHTML elements consist of a start tag—element name and its attributes, element content, and closing tag. The format is like:

element content

Most of WML is easily portable to XHTML MP, but some features require workarounds. Some features are not supported at all, so if you need them, you should use WML instead of XHTML MP. WML 1.x will be supported in any mobile device that conforms to XHTML MP standards

The standard resolution of most desktop is 1024x768 pixels
S60 176x208
QVGA 240X320
iPhone: 320X480
VGA 480X640


Expect at least 256 colors on a mobile device. Most mobiles support images well—GIF and JPG are universal. As the RAM and processor capabilities are limited, many devices keep a limit on the total size of a page—including WCSS, XHTML MP, and images. 10 kilobytes is the minimum you can expect, but it's best to keep the page sizes as small as possible—less than 30K is recommended. Many users browse with images turned off to save bandwidth costs. Hence our application must not rely on images for navigation or critical operations. Giving proper alternative text to images becomes a must

Fundamentals of XHTML MP

XHTML Documents Must Be Well Formed,
Tags Must Be Closed!
Elements Must Be Properly Nested
Elements and Attributes Must Be in Lowercase
Attribute Values Must Be Enclosed within Quotes
Attributes Cannot Be Minimized
XHTML Entities Must Be Handled Properly
If you want to use an ampersand in your XHTML code, you must use it as & and not just &.

Friday, October 23, 2009

Clear browser with each rejax call in order to get new data

function GetSid(url)
{
var myRegX = new RegExp(/\?/);
var result = url;
if(myRegX.test(url))
{
result = url + "&sid=" + Math.random();
}
else
{
result = url + "?sid="+ Math.random();
}

return result;
}

Wednesday, October 14, 2009

There are the five ways to apply CSS IN XHTML MP

Linking to an external style sheet:



Style definition within the document:



Document style sheet with @media qualifer:



Importing an external style sheet to the document:



Inline style for an element:

Some text