简体   繁体   中英

Opening a backbone view in a new window

i am developing a trigger.io application using backbone, the entire app is in one page but i need to open a detail page in a new window (not a modal view, a tab in android).

I don't know if it's possible to render a view in a new window, or write to history the view and navigate to the url.

Can anybody give me some tips.

Thanks

If you want to open a special view, specify a route calling this view.

Now you create a simple link with target blank to the route.

The application gets started in the new window and loads the action mapped to the route.

I think this is the best solution to do this, although there are ways to create windows and communicate between them in JavaScript. If you need to control the new tab, eg closing the tab or act on its content you are forced to create the new tab by javascript and keep a reference to the new tab.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM