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
jqGrid not working in Firefox 4 beta
09/09/2010
11:37
Avatar
mmzaman
New Member
Members
Forum Posts: 1
Member Since:
09/09/2010
sp_UserOfflineSmall Offline

Just wanted to inform you, in case you weren't aware.

jQGrid, both the demonstration examples site and the plugin itself does not work in Firefox 4 beta (I think it has been like this since beta 1)

I may look around in the code a bit and see if I can help find why.

11/09/2010
12:28
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thank you for this information.

Actually we will wait for the final release.

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

24/03/2011
05:21
Avatar
cj
Member
Members
Forum Posts: 4
Member Since:
24/03/2011
sp_UserOfflineSmall Offline

On firefox  4 release, this occurs

I get errors in firebug along the lines of

jQuery("#list").jqGrid is not a function

and

$.jgrid is undefined

28/03/2011
06:10
Avatar
cj
Member
Members
Forum Posts: 4
Member Since:
24/03/2011
sp_UserOfflineSmall Offline

An update to my previous post; it works with jQuery 1.4.3, however reports the 'not a function' still

28/03/2011
12:57
Avatar
pistacerocervello
New Member
Members
Forum Posts: 1
Member Since:
28/03/2011
sp_UserOfflineSmall Offline

cj said:

On firefox  4 release, this occurs

I get errors in firebug along the lines of

jQuery("#list").jqGrid is not a function

and

$.jgrid is undefined


+1

please, any solution?

28/03/2011
13:41
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

The information that some grid have some error in Firefox 4 can not help. If you post some bug report you should allways provide the corresponding demo. How you can verify, the demo for example works fine in Firefox 4. If some specific features not work correctly one can fix the problem only it one have the demo which reproduce the problem.

The error "$.jgrid is undefined" typically means that "grid.locale-en.js" file not incuded before "jquery.jqGrid.min.js". In the case you have typically an error of some other havy problems in every browser.

Best regards
Oleg

28/03/2011
15:23
Avatar
spiderglobe
Member
Members
Forum Posts: 4
Member Since:
23/09/2008
sp_UserOfflineSmall Offline

Problem is with older version of jqGrid. The older vesion loads the plugin through the jquery.jqgrid.js file which includes all other plugins for jqGrid.

The problem is caused by the JS rendering engine of Firefox 4.0. This is so fast that the the necessary files are not loaded on the document ready since the script is not finished executing at the time the document is loaded. The JS  engine loads the script files defined within the tags "scripts" like below:

<script type="text/javascript" src="/js/jgrid/jquery.jqGrid.js"></script>

  but the engine has not finishing the code execution within the jquery.jqGrid.js file self so the necessary plugins files are not loaded which results in a undefined error.

In the latest jqgrid release these plugins are loaed into once Javascript file which is loaded once and is ready on document ready. So the error is not within the latest releases of jqqgrid.

To solve this problems for the older versions of jqgrid you need to replace the jquery.jqgrid.js with one file which contains all the content of all the necessary javascript plugins files inside, instead of execution the Javascript code within the jquery.jqgrid.js which loads each plugin seperate through javascript code.

Richard

28/03/2011
15:34
Avatar
spiderglobe
Member
Members
Forum Posts: 4
Member Since:
23/09/2008
sp_UserOfflineSmall Offline

To explain, this was the content old jquery.jqgrid.js file:

function jqGridInclude()
{
   
	
	var pathtojsfiles = "components/com_portal/js/jgrid/js/"; // need to be ajusted
    // set include to false if you do not want some modules to be included
    var combineIntoOne = false; 
    var combinedInclude = new Array();
    var combinedIncludeURL = "combine.php?type=javascript&files=";
    var minver = true;
    var modules = [
        { include: true, incfile:'grid.locale-en.js',minfile: 'min/grid.locale-en-min.js'}, // jqGrid translation
        { include: true, incfile:'grid.base.js',minfile: 'min/grid.base-min.js'}, // jqGrid base
        { include: true, incfile:'grid.common.js',minfile: 'min/grid.common-min.js' }, // jqGrid common for editing
        { include: true, incfile:'grid.formedit.js',minfile: 'min/grid.formedit-min.js' }, // jqGrid Form editing
        { include: true, incfile:'grid.inlinedit.js',minfile: 'min/grid.inlinedit-min.js' }, // jqGrid inline editing
        { include: true, incfile:'grid.celledit.js',minfile: 'min/grid.celledit-min.js' }, // jqGrid cell editing
        { include: true, incfile:'grid.subgrid.js',minfile: 'min/grid.subgrid-min.js'}, //jqGrid subgrid
        { include: true, incfile:'grid.treegrid.js',minfile: 'min/grid.treegrid-min.js'}, //jqGrid treegrid
        { include: true, incfile:'grid.custom.js',minfile: 'min/grid.custom-min.js'}, //jqGrid custom 
        { include: true, incfile:'grid.postext.js',minfile: 'min/grid.postext-min.js'}, //jqGrid postext
        { include: true, incfile:'grid.tbltogrid.js',minfile: 'min/grid.tbltogrid-min.js'}, //jqGrid table to grid 
        { include: true, incfile:'grid.setcolumns.js',minfile: 'min/grid.setcolumns-min.js'}, //jqGrid setcolumns
        { include: true, incfile:'grid.import.js',minfile: 'min/grid.import-min.js'}, //jqGrid import
        { include: true, incfile:'jquery.fmatter.js',minfile: 'min/jquery.fmatter-min.js'}, //jqGrid formater
        { include: true, incfile:'json2.js',minfile: 'min/json2-min.js'}, //json utils
        { include: true, incfile:'JsonXml.js',minfile: 'min/JsonXml-min.js'} //xmljson utils
    ];
    var filename;
    for(var i=0;i0) ) {
		var fileList = implode(",",combinedInclude);
		
		IncludeJavaScript(combinedIncludeURL+fileList);
	}
	function implode( glue, pieces ) {
    // http://kevin.vanzonneveld.net
    //original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    //example 1: implode(' ', ['Kevin', 'van', 'Zonneveld']);
    //returns 1: 'Kevin van Zonneveld'
		return ( ( pieces instanceof Array ) ? pieces.join ( glue ) : pieces );
    };
    
    function IncludeJavaScript(jsFile)
    {
        var oHead = document.getElementsByTagName('head')[0];
        var oScript = document.createElement('script');
        oScript.type = 'text/javascript';
        oScript.src = jsFile;
        oHead.appendChild(oScript);        
    };
};
jqGridInclude();

The solution is to replace this file with the content of the javascripts files which are included in this function:

- grid.locale-en.js
- grid.base.js
- grid.common.js

Etc...
Richard<

28/03/2011
15:36
Avatar
cj
Member
Members
Forum Posts: 4
Member Since:
24/03/2011
sp_UserOfflineSmall Offline

Thanks for the replies

29/03/2011
06:14
Avatar
cj
Member
Members
Forum Posts: 4
Member Since:
24/03/2011
sp_UserOfflineSmall Offline

This is resolved

31/03/2011
16:41
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

jqGrid works fine in FireFox 4.0 officiall release.

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

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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