how to redirect after popup closes

I think it's something like "parent.location = ..." in the onload function of your popup... google should be able to fill in the detail nicely.

b

Rm Rm wrote:

Form gets submitted -> depending on wiehter form was valid or not, rails will render a (slightly) different view. it should render something like this:

<head>   <script>     function redirect_and_close(newlocation) {       parent.location.href = newlocation;       window.close;     }   </script> </head> <body onLoad="redirect_and_close('http://new.location.com')"> ... your view's body code here ... </body>

not sure if my Javascript is 100% correct, but you should get the idea and google should do the rest, you wil find much about parent & location easily.