(Maybe) I just solved a my problem (How to update front-end content after that a form is successfully submitted from a dialog window?) by storing / saving a variable in the JavaScript window
object. However, since I am newbie in JavaScript matters, I have some doubts if storing / saving a variable in the JavaScript window
object is a common / proper way to use that object. Is it?
For example, using the following code
$('.trigger').click(function() {
window.trigger_link = this;
});
is advisable?