Client context content | Community
Skip to main content
Level 3
October 16, 2015
Solved

Client context content

  • October 16, 2015
  • 2 replies
  • 812 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Scott_Brodersen

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

2 replies

Community Advisor
October 16, 2015

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.

    Scott_Brodersen
    Scott_BrodersenAccepted solution
    Level 8
    October 16, 2015

    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