Ok, I think I found a way around the problem.  Apparently one of the
other scripts my institution uses was overwriting $ or something...
Including the jQuery library at the end of the HTML file (while not
proper) seems to get around it.

On Jul 11, 11:38 am, Josh <[EMAIL PROTECTED]> wrote:
> I'm observing some strange behavior with jQuery 1.2.6 today.  I've got
> this in my <head>
>
>     <script type="text/javascript" src="/scripts/jquery.js"></script>
>     <script type="text/javascript">
>     $(document).ready(function () {
>         alert('this works');
>     });
>
>     function showFilterCalendar() {
>         $('h2').fadeOut('slow');
>
>         // don't follow the link
>         return false;
>     }
>     </script>
>
> When the page loads, I get the alert box saying "this works."
> However, when I click a link like <a href="#"
> onclick="javascript:return showFilterCalendar()">test</a>, I get the
> infamous "$ is not a function" error.
>
> Ideas?

Reply via email to