mamboze created the topic: Accessing global variables in different js files
I've got jquery ui modal dialog working as required in joomla but I've run into another problem. I want to dynamically load the text into the dialog by accessing, in successive dialogs, elements of a js array. This array is globally declared:
var tester = Darray.array01; jQuery("div#wsd_text").text(tester.toString());
This works when the global array variable is declared in the same file as the jquery code but not if it is placed in a different file. I'm surprised as I thought global declarations applied throughout the jquery namespace.
admin replied the topic: Re: Accessing global variables in different js files
I don't know if you did already post it there, but you would propbably get an answer in a more general jQuery forum. I do not have an answer for you, I am afraid, as I have not been confronted to this configuration problem before.
Simplify Your Web is not affiliated with or endorsed by The Joomla! Project™ or Open Source Matters. The Joomla!® name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.