Forum

July 12th, 2025
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
Anyone using jqGrid in Drupal with jQP?
19/05/2009
22:24
Avatar
ww9rivers
Member
Members
Forum Posts: 11
Member Since:
20/05/2009
sp_UserOfflineSmall Offline

I 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."

$(document).ready( 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.

20/05/2009
02:49
Avatar
ww9rivers
Member
Members
Forum Posts: 11
Member Since:
20/05/2009
sp_UserOfflineSmall Offline

I 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.

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information