Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello,

i have mobile website.. in this i need to detect mobile wap browser and its screen size or resolution.. so then my website b displayed accordingly.

so can any one help with detecting wap browser and screen size
and also i would i like to know how can i open my website according to the screen size??

thank you

Aditya Chavan
Posted

1 solution

The browser can be identified by it's user-agent, which most server side programming languages allow you to access (you haven't specified what you've used). Googling user agents should find you the common ones.

You may wish to consider producing a mobile version which uses a layout with relative sizes (using CSS, if supported by the browser) and that is tolerant to having the text wrapped by narrow screens. I'm afraid I don't know if it's possible to get the screen resolution in use.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900