Ok, so I am using the facebox plugin. One of the examples given is to trigger the popup, trigger a spinner, do an ajax call, when the call returns replace the spinner with the results. Code is here
jQuery.facebox(function($) {
$.get('blah.html', function(data) { $.facebox(data) })
})
A few questions.
- I thought that the
jQuery
and$
variables were the same thing, and you usejQuery
only when there are naming conflicts with other libraries. In this example, the author callsjQuery.facebox
and passes in a function with$
as a param. Am I misunderstand the difference between the two? - in the .get callback, we are calling
$.facebox
is$
in that context the jquery global, or is it the variable passed in to the outer function?
Thanks for the clarification :-)