Forum
Topic RSS
22:24
20/05/2009
OfflineI am writing a Drupal 6 module. I use jQuery Plugin module (JQP) to load jQuery UI and jQuery plugins, including jqGrid. In Firebug, I can see that the jquery.jqGrid.js and related files are loaded. But the section of code below gives me a Javascript error that says "jQuery("#err-list").jqGrid is not a function."
{
jQuery("#err-list").jqGrid({
// ... code deleted as they are irrelavent
}).navGrid("#err-pager", {edit:false, add:false, del:false});
});
Appreciate any pointer to where I should look for a clue.
02:49
20/05/2009
OfflineI found my problem: I did not read the documentation careful enough, which states that:
If you have a different path to javascript files you must change the value of the variable pathtojsfiles appropriately. This path is relative to your application (or the server application), not to jquery.jqGrid.js; so if your path to jquery.jqGrid.js is "..scripts\\", this will need to be "..\\scripts\\js\\".
So I am one step closer to jqGrid.
By the way, I think Firebug is a great tool -- I initially thought that all the JS files that jquery.jqGrid.js needed were loaded. But closer inspection reveals that they are actually "not found" because the path (pathtojsfiles) was wrong.
Most Users Ever Online: 994
Currently Online:
12 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home