Question

I am developing a website for a desktop. Now I want to implement a feature where if the website is opened in a mobile phone or other touch device, I want my program to detect the device and activate the touch functions. How can I do that?

Which framework I have to use? Currently I am using JavaScript (jQuery) in JavaScriptMVC framework.

Suggest to me a library that supports touch functions (like jquery.js). I don't need a plug-in, I want to write my own program.

Was it helpful?

Solution

You can use Modernizer to detect client cababilities, and modify your functionality accordingly. http://www.modernizr.com/

OTHER TIPS

Have a look atJQuerymobile and Sencha Touch for enabling gesture capabilities. And yes, use Modernizr to detect the client device.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top