javascript dependency [message #91966] |
Sun, 25 January 2009 21:39  |
Eclipse User |
|
|
|
Right now, when I open any js file, I get lots errors like this:
http://i6.photobucket.com/albums/y222/moyoungerman/post/js_e rror1.jpg
http://i6.photobucket.com/albums/y222/moyoungerman/post/js_e rror2.jpg
The javascript are part of some Drupal PHP page, they are linked in
like this when the page is rendered:
<script type="text/javascript" src="/misc/jquery.js?9"></script>
<script type="text/javascript" src="/misc/drupal.js?9"></script>
<script type="text/javascript"
src="/sites/gsprint_devel/modules/thickbox/thickbox_auto.js?9 "></script>
<script type="text/javascript"
src="/sites/gsprint_devel/modules/thickbox/thickbox.js?9"></script >
So how can I tell PDT drupal.js depends on jquery.js so it won't
complain $ is undefined?
On a line like this:
var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes':
{}, 'locale': {} };
I get error: "The operator || is undefined for the argument type(s)
__Drupal0, any"
This should be okay. Why am I getting this error?
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03595 seconds