0

Im going to write an ExtJS Application in which i need to Navigate between several Views.. Im questioning myself right now what the best practice is for this issue..

One solution with which im not really 100% happy is to change my url when i press on a link/button in combination with a TaskRunner which is always checking if the url has been changed.

I do also want a history so when i do press the "back" button in my browser i can jump back to the former view which would work with the solution above. I dont know if the solution above is taking much resources?

Is there a better way? Do you think that my solution is ok? Please tell me! If you need any more information dont hesitate to ask ;)

JuHwon
  • 2,033
  • 2
  • 34
  • 54

1 Answers1

3

I would suggest you use Ext.ajax to load partial views (e.g. the whole content of that tab) or pure Ext JS to create them and use this technique to honour the browser history.

Once a tab is loaded once you just switch to hiding/showing each associated tab panel as the tab is clicked.

You might also consider Ext's card layout.

And here's a fully integrated ext js solution of what you want.

jenson-button-event
  • 18,101
  • 11
  • 89
  • 155