- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
08-05-2019 02:01 AM
Hi,
My application does not have data layer in place. I am trying to capture user logged in status based on visibility of "logout" button which is persistent in sidebar navigation throughout application. I tried creating javascript extension with below code using jquery selector but it isn't resulting in any output. It is running fine on chrome developer console. Can anyone please suggest a solution to this. I can try using Jquery on handler with "show" setting but i don't want additional calls to fire on the page.
scLinkCustVars = 'prop12';
if($("#page-header-container > div > div.top-nav-right > ul > li:nth-child(6) > a").hasClass("logout")) {
s.prop12 = "logged in";
} else {
s.prop12 = "logged out";
}
Solved! Go to Solution.
08-05-2019 02:05 AM
08-06-2019 02:36 AM
08-14-2019 12:27 PM
You are welcome @Isha_Gupta
If you would be so kind so as to mark it as solution if it fit the bill.
Thanks.
Copyright All Rights Reserved © 2008-2023