RJS: getting the value of top.location

In one of my RJS templates I want to get the value of top.location.
page['top.location] and page[:top][:location] don’t work…anyone know
how to get that info?

Pat

Pat M. wrote:

In one of my RJS templates I want to get the value of top.location.
page['top.location] and page[:top][:location] don’t work…anyone know
how to get that info?

Pat

if top is an ID then try page[:top].location

if top is a JS method then try page << “top.location”

–jake