I have a group of javascript functions in one js file. each function acts on a specific action and get its own ajax response. some are on different pages, some are on the same page. If I don’t do the localize, I can’t get response. How can I localize this file for multi actions?
Leave a Reply
You must be logged in to post a comment.
Maybe I got your question wrong. I don’t get what you mean by:
But in general, this function lets you localize your JS strings, but you can also use it to set JS variables:
You can now acces the var in you JS File by
my_global.my_js_var