does this work?

jQuery().ready(function(){
    alert("Hey!");
});

On Aug 18, 8:16 pm, Anna <sukitakeitoffag...@gmail.com> wrote:
> Hi there :)
>
> At work, I'm trying to implement some jQuery on the intranet, which
> runs on a Java framework (Liferay). I'm having some issues, and I've
> narrowed it down to being the difference between the two ready
> (function) calls.
>
> This version of the call WORKS:
>
>       jQuery(function(){
>       alert("Hey!");
>       });
>
> This version of the call DOES NOT WORK:
>
>       $(document).ready(function(){
>       alert("Hey!");
>       });
>
> Um what?!
>
> If I try to add parameters to the functions, no jQuery functionality
> works on the page at all.
>
> In my local version, which links to the jquery.js of Liferay,
> everything works. When I use the exact same code within Liferay, it
> doesn't work. This leads me to believe that there's something in their
> code that for some reason disallows the use of the longhand ready
> functionality, and parameters? Is this possible? Are there other
> reasons this might happen?
>
> I have asked Liferay directly for their assistance with this, but
> haven't had a reply, so I'm hoping that one of the fabulous folk here
> might have come across a similar issue.
>
> You might be able to tell that this isn't entirely my forte, and I'd
> appreciate any assistance :)
>
> Anna

Reply via email to