Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2015-07-15 08:12:23

vagastorm
Member
Registered: 2015-07-15
Posts: 2

Dynamically update data on a page view. [SOLVED]

Is it possible to dynamically update what page a user is on? I have some pages that gets their url updated with history.pushState , and it would be useful to see what page they are actually on.

Last edited by vagastorm (2015-07-15 10:09:33)

Offline

#2 2015-07-15 08:14:54

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Dynamically update data on a page view. [SOLVED]

You mean manually trig-erring page view log as it was real browser navigation? At the moment there is no such direct api. But i ques you can just call in your app
lhc_inst.logPageView();
https://github.com/LiveHelperChat/liveh … l.php#L622

Offline

#3 2015-07-15 10:12:51

vagastorm
Member
Registered: 2015-07-15
Posts: 2

Re: Dynamically update data on a page view. [SOLVED]

I had to change it to lh_inst.logPageView();, then it did exactly what I wanted. By setting document.title prior to calling it, that gets updated properly to. Thanks.

NB: I wasn't sure if you used to tag title with solved, so I added it to be safe smile

Offline

Board footer