Kamo
Kamo

Reputation: 3635

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 would 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?

Upvotes: 0

Views: 227

Answers (4)

Angela
Angela

Reputation: 21

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.

Upvotes: 0

James Ward
James Ward

Reputation: 29433

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

Upvotes: 2

KensoDev
KensoDev

Reputation: 3285

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.

Upvotes: 1

David Wolever
David Wolever

Reputation: 154664

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.

Upvotes: 2

Related Questions