views:

1637

answers:

4
+1  Q: 

Ext is not defined

A: 

Go to ExtJs website and make sure you download and included all the necessary files and IN ORDER,also using a newer version might break the code. try it with simpler examples and only reference the ext stuff and see if it loads

Kheu
+1  A: 

there is a firefox extension called "jsview", it allows you to see what scripts and css files are included on a page.

When navigating to the link you include at the top of your post and opening the ExtJs file, you'll notice that the example provided is using version 2.1 of the code.

The Ext.ux.TinyMCE v0.6 has a corresponding blog post here. You will notice that it specifically requires:

  • Firefox 2+, Opera 9+, MSIE 7
  • ExtJS 2.1
  • TinyMCE 3.1.0.1
  • Ext.ux.ManagedIframePanel

Be aware that when plugging in a newer versions of the TinyMCE or ExtJs libraries, there might (read will) be breaking changes that you will then have to resolve. You could try scrape the files directly from the example to ensure you have a working version.

If you choose to use ExtJs v3+, get the latest components:
1) ux.ManagedIframe has been maintained more recently and even upgraded for ExtJS 3.x here
2) Read through the ux.TinyMce thread and download the latest version. I think it's 0.7b. If you're still having problems, that's probably the best place to find answers.

Joshua
I located ExtJs 2.3 on the official website and gave that a try. This does indeed work. However I have some other issues now, but these appear to happen on the demo site as well.
Skunk
+3  A: 

Even when including ext-all(-debug).js, you still need to include the ext-base.js file before that, otherwise you will get the "Ext is not defined error". Not sure by your last comment if you are already past this or not, but I thought I would point it out. Please see this page for complete details on how your includes should be set up:

http://www.extjs.com/learn/Tutorial%3AHTML%5FPage%5FSetup

bmoeskau
I remember I read somewhere that ext-base was a standalone file... but when I looked up the include-sequence it indeed appeared to be a necessary file. After I included the ext-base my code worked. Thanks for the help :)
Skunk
A: 

copy the lib folder in your eclipse workspace`s exjts project folder and just give the relative paths, is should than work

sadanand