Loading jQuery: Uncaught TypeError: object is not a function

Whenever I try to load the latest version of jQuery into my website I get this error in the google chrome console;

Uncaught TypeError: object is not a function 

I think its weird since all I am doing is loading.


    <link href = "style.css" rel = "stylesheet">
    <link rel = "shortcut icon" href = "\images\design\logo.ico" type = "image/x-icon"/>

    <script src = "\script\messageSender.js"> </script>
    <script src = "\script\currentTime.js"> </script>

    <script src = "\libraries\jQuery.js"> </script>

    <div class = "header" id = "header">
        <a href = "/">
            <img src = "\images\design\header.png" alt = "Header" width = "467" height = "113" title = "Home">

    <div class = "menu">
        <a href = "/">Home</a>
        <a href = "/about.html">About</a>
        <a href = "/software.html">Software</a>
        <a href = "/mods.html">Mods</a>
        <a href = "/contact.html">Contact</a>

messageSender class

function userAlert(Message){

currentTime class

function getYear() {
    Date = new Date
    Year = Date.getYear()

    var Copy = '&copy;';

    if (Year < 1900) {
        Year = Year + 1900
        document.write(Copy + " " + Year + " " + "Trevi Awater")
    } else {


I suspect this could have happened (but without knowing the usages of those classes I can't be sure this is the actual fault), since because you stated those js files as classes.

var x = new getYear(); // x is an object

// when trying to call the object as function
x(); // Uncaught TypeError: object is not a function 

getYear() is deprecated, try getFullYear() instead.

change the stack order of script inclusion:

<script src = "\libraries\jQuery.js"> </script>
<script src = "\script\messageSender.js"> </script>
<script src = "\script\currentTime.js"> </script>

Need Your Help

iOS - Random Word Generator

ios objective-c xcode arrays string

I am looking to create a random word generator using Objective C, at the moment i have been using the rand function with a switch to display the options on a UILabel.

Can a generic class be forced to have a type inherit from one of two interfaces?

c# .net generics

I have a generic class, but I want my type to be forced to inherit from either one or the other interface. For example:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.