Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Tracking a silverlight app

34 views
Skip to first unread message

andsmi

unread,
Aug 16, 2010, 10:04:23 PM8/16/10
to chartbeat
I put the code on a page that is a complex silverlight app. It works
for the basics, but I kind of want to track the changes within my app
which only change the hash tag in the URL (#new page or #page edit).
Can I call JavaScript to update wheeee the chart beat ping goes?

Allan Beaufour

unread,
Aug 17, 2010, 9:56:28 AM8/17/10
to chartbeat
Yep, you can. You can call pSUPERFLY.virtualPage("/new/path/") to
"change page".

... Allan

andsmi

unread,
Aug 18, 2010, 1:26:01 PM8/18/10
to chartbeat
This gets me an entry, but it doesn't show my new page title (which I
changed with document.title ) -- is there a way to update that as well
so it looks nicer in chartbeat?

Allan Beaufour

unread,
Aug 18, 2010, 1:32:02 PM8/18/10
to chartbeat
On Aug 18, 1:26 pm, andsmi <and...@gmail.com> wrote:
> This gets me an entry, but it doesn't show my new page title (which I
> changed with document.title ) -- is there a way to update that as well
> so it looks nicer in chartbeat?

Hmm, we should really be picking the new title up, shouldn't we...
Well, for now you can override it using the config object:
[[
_sf_async_config.title = "fish and chips";
pSUPERFLY.virtualPage("/fish_and_chips");
]]

... Allan
Reply all
Reply to author
Forward
0 new messages