Expand my Community achievements bar.

SOLVED

Client context content

Avatar

Level 3

Hi,

 

1. How do i fetch user's location (ie latitude and longitude) from the geolocation OOTB component in jsp?

   (Used following command: CQ_Analytics.ClientContextMgr.clientcontext.geolocation.latitude

   But no value was fetched).

 

2. How do we change browser (ie use of emulator) with the help of client context?

 

Thanks,

Nikunj

1 Accepted Solution

Avatar

Correct answer by
Level 8

Client Context enables you to collect/retrieve data about the current context, but it's not meant for changing the context. Also, the collection/retrieval of data is meant to be done on the client only (i.e. using javascript). Client Context is not meant to be used for sending context data to the server.

scott

http://docs.adobe.com/docs/en/aem/6-0/develop/personalization/client-context.html

View solution in original post

2 Replies

Avatar

Level 9

Please try this for getting user location

http://blogs.adobe.com/livecycle/2011/10/bringing-geo-location-to-web-experience-management.html

For emulator follow this

Changing the Browser Platform

  • Double-click on the icon representing the browser platform. The selector will open, use the arrows to navigate and see the platforms/browsers available:

    file
  • Click on the platform browser you want to load. When the details have loaded click outside the selector to close.

    Avatar

    Correct answer by
    Level 8

    Client Context enables you to collect/retrieve data about the current context, but it's not meant for changing the context. Also, the collection/retrieval of data is meant to be done on the client only (i.e. using javascript). Client Context is not meant to be used for sending context data to the server.

    scott

    http://docs.adobe.com/docs/en/aem/6-0/develop/personalization/client-context.html