$.isArray is not a function

$.isArray is not a function

vasketovasketo Posts: 6Questions: 0Answers: 0
edited April 2012 in General
Hi guys,

This is the code.

[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">




DataTables example






$(document).ready(function() {
$('#example').dataTable( {
"oLanguage": {
"sUrl": "js/dataTables.spanish.txt"
},
"sPaginationType": "full_numbers"
} );
} );









Rendering engine
Browser
Platform(s)
Engine version
CSS grade




Trident
Internet Explorer 4.0
Win 95+
4
X


Trident
Internet Explorer 5.0
Win 95+
5
C


Trident
Internet Explorer 5.5
Win 95+
5.5
A


Trident
Internet Explorer 6
Win 98+
6
A


Trident
Internet Explorer 7
Win XP SP2+
7
A


Trident
AOL browser (AOL desktop)
Win XP
6
A


Gecko
Firefox 1.0
Win 98+ / OSX.2+
1.7
A


Gecko
Firefox 1.5
Win 98+ / OSX.2+
1.8
A


Gecko
Firefox 2.0
Win 98+ / OSX.2+
1.8
A


Gecko
Firefox 3.0
Win 2k+ / OSX.3+
1.9
A


Gecko
Camino 1.0
OSX.2+
1.8
A


Gecko
Camino 1.5
OSX.3+
1.8
A


Gecko
Netscape 7.2
Win 95+ / Mac OS 8.6-9.2
1.7
A


Gecko
Netscape Browser 8
Win 98SE+
1.7
A


Gecko
Netscape Navigator 9
Win 98+ / OSX.2+
1.8
A


Gecko
Mozilla 1.0
Win 95+ / OSX.1+
1
A


Gecko
Mozilla 1.1
Win 95+ / OSX.1+
1.1
A


Gecko
Mozilla 1.2
Win 95+ / OSX.1+
1.2
A


Gecko
Mozilla 1.3
Win 95+ / OSX.1+
1.3
A


Gecko
Mozilla 1.4
Win 95+ / OSX.1+
1.4
A


Gecko
Mozilla 1.5
Win 95+ / OSX.1+
1.5
A


Gecko
Mozilla 1.6
Win 95+ / OSX.1+
1.6
A


Gecko
Mozilla 1.7
Win 98+ / OSX.1+
1.7
A


Gecko
Mozilla 1.8
Win 98+ / OSX.1+
1.8
A


Gecko
Seamonkey 1.1
Win 98+ / OSX.2+
1.8
A


Gecko
Epiphany 2.20
Gnome
1.8
A


Webkit
Safari 1.2
OSX.3
125.5
A


Webkit
Safari 1.3
OSX.3
312.8
A


Webkit
Safari 2.0
OSX.4+
419.3
A











[/code]

When i open it works correctly, but when it put it into Tomcat V7.0 Server and launch server appear this error and it doesn't work.

This is de chrome console error:

Uncaught TypeError: Object function (selector,context){return new jQuery.fn.init(selector,context);} has no method 'isArray'

This is de firefox console error:

$.isArray is not a function
[Parar en este error]

if ( typeof oInit[prop] === 'object' && $.isArray(oExtender[prop]) === false )

-----------------------------

Help please!!!

Replies

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    $.isArray is a jQuery method - has jQuery been correctly loaded?

    Allan
  • vasketovasketo Posts: 6Questions: 0Answers: 0
    Yes, jquery has been correctly loaded... :(
  • vasketovasketo Posts: 6Questions: 0Answers: 0
    Solved!! Thanks!!
  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    What was the issue?
This discussion has been closed.