Hi All
In my rhtml file I create a javascript object like
This ‘js_obj’ is the javascript object which use all the time in this
page to hide/show/change stuff depending on the users actions. At some
point the user can click a button, which starts an AJAX
request(button_to_function), which will update, lets say, tab 3. This
means: I need to do the AJAX call and afterwards chnage to tab 3. I
hoped that I could access to ‘js_obj’ in my .rjs file so I could do
something like
page.js_obj.showTabByIndex(3)
This should change to tab 3, but doesn’t work. Hopefully I have the
syntax wrong, do I ?
If this is not possible is there a way I can perform an action after the
ajax request is finished with a button_to_function request ?
Thx
LuCa