queue_js_file options

Hello, how does the options parameter work in the queue_js_file function? Are these passed as parameters into the javascript that is being loaded? If so, how are they accessed? Thanks for your help!

The options passed to queue_js_file are just passed along to Zend's headScript helper. The helper will output a few things passed there as attributes on the HTML script that that gets printed, and will treat a couple others specially (like conditional for IE conditional comments).

They really don't get "passed" to the script in any way, though. Passing variables from PHP to Javascript has to be done by printing them out directly into a script (being sure to escape properly for Javascript-in-HTML if you take that route), by including them somwhere in the DOM and reading that out, or by using AJAX to retrieve them.

Great! Thanks for the information!