Hi,

I want to try incorporate jquery in my site, but I'm having some
problems. The site is drawn together from various files in PHP. I have
added the jquery script which I would expect to work fine regardless
of the PHPness earlier because it is a client side script.
Unfortunately nothing happens. If I save the page directly to my
desktop then the script works fine, so I think there must be some
problems with the dynamic pages. Does anyone have any idea why this
might be occuring?

The following is what gets put onto the page in the header if I view
source.

<script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript">
                $(document).ready(function(){
                        $("<p>Hello world!</p>").appendTo("body");
                        $("#onlineresources").hide();
                        $("#onlineresourcesbutton").click(function(){
                                $("#onlineresources").slideDown("slow");
                                return false;
                        });
                });
</script>

Thanks,
Josh

Reply via email to