How to refresh a parent page #Rails
Posted
by sameera
on Stack Overflow
See other posts from Stack Overflow
or by sameera
Published on 2010-03-16T07:13:23Z
Indexed on
2010/03/16
7:16 UTC
Read the original article
Hit count: 208
rails
|JavaScript
Hi Guys,
I have the fllowing requirement,
I have a model called Task to display user tasks
1 . Link to add a new task (in the tasks index page) 2 . when a user click the link, 'tasks/new' action will open up inside a popup 3 . when the user save the new task, I want to close 'new task' popup and refresh the parent page 'tasks/index' so that new task will display
I guess, i will have to execute a page reload java script at the end of 'tasks/create' action. But i'm not sure how to.
can anyone help me out to make this happen, thanks in advance
cheers, sameera
© Stack Overflow or respective owner