Displaying 1 result from an estimated 1 matches for "open_new_window".
Did you mean:
on_new_window
2010 Jan 22
0
creating a new record in a pop-up-window
...pop-up-window should show a basic Task-NEW form, BUT with some
information about the Project, eg the title of the project. after
submitting i want to get the Project -EDIT View to be reloaded.
1) i have the pop-up window:
<%=link_to_remote "Add Tasks", :url => { :action => "open_new_window",
:projectid=>@bol.id } %>
2)controller
def open_new_window
p ">>Open Window: #{params[:projectid]}"
render :update do |page|
page << "window.open(''/bol_lines/new'', ''A Window'',
''left=20,top=20,width=50...