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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs