[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.pdt] javascript dependency
|
Right now, when I open any js file, I get lots errors like this:
http://i6.photobucket.com/albums/y222/moyoungerman/post/js_error1.jpg
http://i6.photobucket.com/albums/y222/moyoungerman/post/js_error2.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?