Displaying 1 result from an estimated 1 matches for "openmodalpopup".
2010 Jul 01
6
Close Modalpopup with RJS
...ve a twitter app where I''m
trying to open a modalpopup with a twitter sign in, get them to sign in,
then close the popup and refresh the main window. My code however
refreshes the main window with the popup window result, which I thought
was really strange:
application.html.erb
function OpenModalPopUP()
{
window.showModalDialog(''/sessions/create'');
}
main page
<%= link_to "login via twitter", {:controller => "sessions/create"},
:onclick => "OpenModalPopUP()" %>
sessions/create
def create
oauth.set_callback_url(finalize_s...