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_Related Related Topics sp_TopicIcon
No support for jQuery 1.8.1
Tags: jquery
11/09/2012
18:55
Avatar
cyborg
UK
Member
Members
Forum Posts: 11
Member Since:
10/09/2012
sp_UserOfflineSmall Offline

<link href="/assets/js/jquery/jquery-ui-1.8.14.custom.css" rel="stylesheet" type="text/css">
<link href="css/ui.jqgrid.css" rel="stylesheet" type="text/css">
<script type='text/javascript' src='/assets/js/jquery/jquery.js'></script>
<script type='text/javascript' src='js/jquery.jqGrid.js'></script>
Unless there's something wrong with the order, or the imports, then I can't get this to work with 1.8.1.  I've use the bundeled 1.4.3, which works fine, but breaks when I use 1.8.1 again:

$(function(){
$("#grid").jqGrid({
[Image Can Not Be Found]Uncaught TypeError: Object [object Object] has no method 'jqGrid'


14/09/2012
15:24
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Just tested and it works fine. Please be a sure you load the jqGrid files. This error exactley point to this problem

Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

17/09/2012
16:30
Avatar
cyborg
UK
Member
Members
Forum Posts: 11
Member Since:
10/09/2012
sp_UserOfflineSmall Offline

  1. Uncaught TypeError: Object [object Object] has no method 'jqGrid'
    1. (anonymous function)showData.php:15
    2. p.Callbacks.kjquery.js:2
    3. p.Callbacks.l.fireWithjquery.js:2
    4. p.extend.readyjquery.js:2
  1. grid.formedit.js:13Uncaught TypeError: Object #<Object> has no method 'extend'
    1. (anonymous function)grid.formedit.js:13
    2. (anonymous function)grid.formedit.js:2085
  1. grid.inlinedit.js:14Uncaught TypeError: Object #<Object> has no method 'extend'
    1. (anonymous function)grid.inlinedit.js:14
    2. (anonymous function)

How can I check?  I can only assume that the autoloader is working in the jqgrid.js

17/09/2012
16:43
Avatar
cyborg
UK
Member
Members
Forum Posts: 11
Member Since:
10/09/2012
sp_UserOfflineSmall Offline

1.7.2 is the last version of jQuery I can see working with jqGrid.  You must be doing something different between 1.7 and 1.8?

17/09/2012
17:59
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

@cyborg: I don't see that you have included language file (like i18n/grid.locale-en.js) before jquery.jqGrid.src.js. If you have some problem with loaging jquery.jqGrid.js only you should just replace the file with the direct list of the same files from jquery.jqGrid.js.

See the post and another one for details.

Regards
Oleg 

17/09/2012
18:11
Avatar
cyborg
UK
Member
Members
Forum Posts: 11
Member Since:
10/09/2012
sp_UserOfflineSmall Offline

I've found the issue.  Luckilly, I was looking at the jQuery.browser class with another project.

Line 29:

if(jQuery.browser.safari) {

If you look at the jQuery doc, safari has been replaced by "webkit" (as Chrome and Safari are now pretty much identical).

http://api.jquery.com/jQuery.browser/

So I replaced the line and all is working ok.  Can I suggest this is changed in Git too?

27/09/2012
13:24
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thanks. Fixed in GitHub

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

30/09/2014
12:33
Avatar
Peter
New Member
Members
Forum Posts: 1
Member Since:
30/09/2014
sp_UserOfflineSmall Offline

Hi, installed jqgrid via bower and seeing an error due to the line:

if(jQuery.browser.safari) {

bower.json states version of jqgrid is 4.6.0 but if i download current minified i don't get this error.

Is the bower version not being updated somehow?

03/10/2014
12:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

 

This is quite possible. Please use the version from the official download.

 

Kind Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
64 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