开发者

Best practice to implement back functionality in flex

I'm not using deep linking, so all the pages/states appear as http://site.com

Is it still possible to implement back functionality in this case? It looks like flex has a browser history feature, but not sure if it wou开发者_如何转开发ld still work given that all the pages are at site.com

The other option is that I would save information in the main file itself so I can go to the last page and retrieve whatever data was on it.

Anyone can advise what's generally the best practice way to handle back functionality?


Unfortunately I don't know of any other way to implement browser history (ie, back/forward) without using deep linking (eg, example.com/#foo). This is how the Flex browser history components implement it.

However, one thing you could do, if you need to keep the URL static, is stick your Flex application in a frame. That way the outter frame would still show example.com while the inner frame is at, for example, example.com/#widget=42.


Check out the Flex docs on Deep Linking and the Browser Manager.


The best practice and generally the only way to do it is to use deep linking.

it's best because the users can add a section of your application to "Favorites" and that's an important feature to have IMHO.


Do you need to keep your website with just http:// site.com or is that just how it looks now because deep linking is not implemented? Checkout Angela's Accessible Rich Internet Application tutorial which gives instructions on how to quickly and easily set up deep linking using UrlKit. The added bonus of this site is that the tutorial is delivered in the environment described... IE: you can view the source for an "in production" example of the implementation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜