PDA

View Full Version : Run ExtJs 4 with ExtJs 2 at the same time



SiZEg
25 Dec 2014, 4:03 AM
Hi. How it's possible to use at the same time, on one page, both Ext2 and Ext4?

I think I can add namespace support to Ext2 libraries. But may be somebody knows more easiest way, without rewriting a whole framework?


// after loading ExtJS 2

var ext2 = {};
ext2.Ext = Ext;

// then loading ExtJS 4
We have a large and huge project on ExtJS 2. About one year ago we made a new functionality for our project on ExtJS 4. Now we have some functionality on 2 and 4 versions. They work separately but have one server side.
At that moment we want to migrate from 2 to 4 but it's impossible caues it takes too much time. So we decided to make it step by step. And integrate some functionality from ExtJS 4 to ExtJS 2. For example, calling user search window and return in callback results.

P.S. Sorry for my English.

Gary Schlosberg
29 Dec 2014, 9:03 AM
I would recommend against using two versions of ExtJS together, but here's a thread with a discussion:
http://www.sencha.com/forum/showthread.php?136253