Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
"jqGrid is not a function"
01/08/2008
07:01
Avatar
max-williams
Member
Members
Forum Posts: 8
Member Since:
01/08/2008
sp_UserOfflineSmall Offline

I'm trying to get the jqGrid plugin up and running. But, i get this error from the firebug console:

jQuery("#schedule-table").jqGrid is not a function
(?)()()
handleError()()jquery.js (line 28)
handleError()()jquery.js (line 28)
nodeName()([function(), function()], function(), undefined)jquery.js (line 22)
handleError()()jquery.js (line 28)

At first i thought i probably hadn't properly loaded to the jquery.jqGrid.js file, but it's definitely being loaded - i put an alert in the "jqGridInclude()" function and it fires when the page starts loading.

I'm copying the 'getting started' example from this page - http://trirand.com/jqgrid/jqgrid.html

I seen other reports of this (one on this forum, one in russian!) and the suggestion was to edit this line in the main jqgrid file:

var pathtojsfiles = "js/"; // need to be ajusted

If that's the case, i have no idea what to adjust it to:  the files are all in their default locations.  I'm using it in a rails app, so i have a public/javascripts folder to contain all my js files.  Inside that is a folder called jqGrid, which has the main file, jquery.jqGrid.js, and a 'js' folder with the various files used by jqGrid.  So, the path variable above looks ok.


Can anyone help?
thanks
max

02/08/2008
19:55
Avatar
Reg
Calgary, Canada
Member
Members
Forum Posts: 92
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

Hello Max,

the problem I encountered with this was the path leading to the scripts folder, not where to go once that was found, so I had to change my copy from 

var pathtojsfiles = “js/”; // need to be ajusted

to read

var pathtojsfiles = “../scripts/js/”; // need to be ajusted

HTH

Reg

04/08/2008
05:40
Avatar
max-williams
Member
Members
Forum Posts: 8
Member Since:
01/08/2008
sp_UserOfflineSmall Offline

Hi reg

yeah, this was the problem for me - also that i had to include a leading forward slash.  My final path, for my rails app, was

var pathtojsfiles = "/javascripts/jqGrid/js/"

thanks

max

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
36 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information