
January 9th, 2013, 06:43 AM
|
|
Contributing User
|
|
Join Date: Nov 2012
Posts: 34
Time spent in forums: 6 h 42 m 5 sec
Reputation Power: 1
|
|
|
Drupal 7 global javascript variables
Hi everyone,
In my Drupal 7 installation, I have 2 separate JavaScript files that are loaded by my sub-themes (base and admin sub-theme) - I don't know if this is useful information or not, but:
What if I want to define a JavaScript variable in the first js file that is loaded and use it in the second one? How should I define it?
Basically, the question could be: How to define global JavaScript variables in a Drupal environment?
I am using jQuery.
|