In a webpage using jQuery 1.7.1 and jQuery-UI 1.8.18, if I display $ .ui in the warning field, when the document is ready, I get [object Object]. However, when using Firefox, if I output $ .ui to the click event handler, I get "undefined". In other browsers (latest versions of IE, Chrome and Safari), the result remains [Object] when you click on the link.
Here is my HTML page:
<!doctype html> <html> <head> <title></title> <script src="Scripts/jquery-1.7.1.js" type="text/javascript"></script> <script src="Scripts/jquery-ui-1.8.18.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { alert($.ui); </script> </head> <body> <a href="#" class="dialogLink">Click me!</a> </body> </html>
In this post, I lowered into my simple form another problem that I described here: $ (this) .dialog is not a function . I created a new post for clarity, since the real question is different from the original one, which is now indicated where the problem was.
UPDATE:
IF I replace my alerts with just alert($); I get this result for warning A:
function (selector, context) { return new jQuery.fn.init(selector, context, rootjQuery); }
and this one for warning B:
function (a, b) { return new d.fn.init(a, b, g); }
This does not make sense to me, although I may not understand well enough that $ is ...
UPDATE 2:
I can only reproduce this problem using Firefox on OS X. On Firefox running on Windows 7, everything is fine.