Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have two different views view1 and view2(not a parent view),I want to refresh/reload one page from another page,how to do this using javascript.

In view2 I used like window.location.href = view1Url ,View1 is refreshing but the view1 is displaying view2.

I want when select an item in view2,view1 has to refresh.
Posted

1 solution

If your views are both iframes on the same page you could do something like:
JavaScript
function reloadView(view) {
    switch(view)
    {
        //...
    }
}

//inside view 2
window.top.reloadView(1);


Hope this helps, if not, please explain more about your scenario.
 
Share this answer
 
Comments
charan1431 25-Sep-12 1:50am    
I am not using frames in my module

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900