Steven Wittens wrote:
[snip]
> Also to avoid having to use templated JS, we have a transparent  
> mechanism for passing data from PHP to JS. All you do is call an API  
> drupal_add_js(), which aggregates all variables that it is passed,  
> and automatically inserts them as a single inline script tag in the  
> HTML head, as "Drupal.settings = { ... }". This works really well:  
> you don't need to dynamically generate .js files, and you avoid large  
> chunks of inline code.
[snip]

Alternatively you could use one of the JSON serializers for PHP:
http://json.org


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to