Select to view content in your preferred language

Jquery are good to mobile websites?

3116
2
08-18-2013 04:49 PM
by Anonymous User
Not applicable
Original User: sandrasmith

I'm starting to work with jquery in my sites but i'm afraid if is true that the effects and animations will work when my clients access the website by a mobile internet like in the normal computers access.

Is there some code in jquery that you need to set to identify if the person are accessing my website by mobile or computer and set a diferent jquery action?
0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: antti.kajanus

Hi,

There is example in JS api that works with Dojo (https://developers.arcgis.com/en/javascript/jshelp/mobile_hardware.html) but since you are using JQuery, you can see couple ways from here http://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-handheld-device-in-jquer...u

Adapting your site to device is then up to you.
0 Kudos
AllanLaframboise
Occasional Contributor III
You can also check out the jquery samples we have in the documentation here.  Just filter by "jquery".

https://developers.arcgis.com/en/javascript/jssamples/#search/jquery

AL
0 Kudos