Wednesday, April 25, 2012

Ext Replace History

You can use Ext.History.add() to change the URL bar and add an item to the browser's history. For example, you could go from to

This doesn't reload the page, but you can listen for the change and load different forms in Ext, for example

Today, however, I needed to change the URL without adding an item to History, yet still fire the Ext.History.change event. To do that call:


I added a function to Ext.History:

Ext.History.replace = function(value){

    location.replace('#' + value);

You might want to use this to go from contacts/create to contacts/99 (say it autosaved), without the using having to hit back twice to get back to where they came from. 

Tuesday, April 17, 2012

Sencha Architect is out

If you bought Ext Designer this year, you get Architect for free.

Formerly Sencha Designer 2, and before that Ext Designer. Registering my version now and will post some videos soon.

ExtJS 4.1 Docs are finally up

Looks like 4.1 is ready for prime-time