Manipulation of javascript object via RJS

Hi All

I would like to manipulate a javascript object which I’ve created as

… HTML stuff… here

This object is used to manage the page (like replace DIVs depending on
the actions of the user)
So, what I would like to do with this object from within the RJS is to
change values and add functions.
For example, what I’ve tested (but didn’t work) is

page.myJSobject.varname = 10

Any suggestions ?


After some research I found:

page << “myJSobject.newfunc = function() { alert(“value is…” }”