Chris Kalaboukis wrote:
> Chris Habgood wrote:
>> Here is something to close modalbox, rjs:
>>
>> page.call 'Modalbox.hide();'
>
> Thanks Chris... this is what I get when I try that:
>
> undefined local variable or method `page' for
> #<SessionsController:0xb6e8a204>
>
> any ideas?
also tried this:
render :update do |page|
page.call 'Modalbox.hide();'
end
but then got this error
try {
Modalbox.hide();();
} catch (e) { alert('RJS error:\n\n' + e.toString());
alert('Modalbox.hide();();'); throw e }
When i closed the modal box manually, it refreshed the main window with
the saem error
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.