Answer the question
In order to leave comments, you need to log in
ExtJS (ReferenceError: Ext is not defined) - how to fix?
Hello. I decided to try ExtJS, got stuck on Hello world =) I
connect ExtJS (files are loaded normally):
<link type="text/css" href="{{ STATIC_URL }}ext-3.4.1/resources/css/ext-all.css">
<script type="javascript" src="{{ STATIC_URL }}ext-3.4.1/adapter/ext/ext-base.js"></script>
<script type="javascript" src="{{ STATIC_URL }}ext-3.4.1/ext-all.js"></script>
<script>
Ext.onReady(function() {
Ext.Msg.alert('Тест', 'Hello, world!');
});
</script>
23:28:31.811 GET http://127.0.0.1:8000/note/1/ [HTTP/1.0 200 OK 12мс]
23:28:31.774 ReferenceError: Ext is not defined 1:26
23:28:31.901 GET http://127.0.0.1:8000/static/ext-3.4.1/adapter/ext/ext-base.js [HTTP/1.0 304 NOT MODIFIED 14мс]
23:28:31.902 GET http://127.0.0.1:8000/static/ext-3.4.1/ext-all.js [HTTP/1.0 304 NOT MODIFIED 14мс]
Answer the question
In order to leave comments, you need to log in
In general, it was necessary to put it everywhere. type="text/javascript"
Well, perhaps restarting the laptop helped somehow, I don’t know
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question