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
This topic is locked No permission to create posts
sp_Feed Topic RSS sp_TopicIcon
How to fix these errors
21/08/2008
12:47
Avatar
phild
Member
Members
Forum Posts: 3
Member Since:
13/08/2008
sp_UserOfflineSmall Offline

I get these errors too and I would suggest the merge modules like jQueryUI. I think that will be easier on folks, although I wonder how many just do download all there (I know I did).

23/08/2008
02:15
Avatar
smlong426
Member
Members
Forum Posts: 4
Member Since:
23/08/2008
sp_UserOfflineSmall Offline

The 'jgrid' is NULL problem goes away in IE7 by moving the includes from

"jquery.jqGrid.js" into my main ASPX page.  So, I'm happy.

24/08/2008
11:36
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

Tony,

Have you chosen a permanent fix to the issue? I'd be glad to test it for you.

25/08/2008
03:13
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Could you please test the modified old way. Open jquery.jqGrid.js and replace the following function

function IncludeJavaScript(jsFile)

 {

var fileref=document.createElement('script');

fileref.src = jsFile;

document.getElementsByTagName("head")[0].appendChild(fileref);

}

Thank you
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/08/2008
12:24
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

No change. 🙁 Still errors out.

30/08/2008
12:39
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

even loading them all manually I still get the errors intermittently about a value not being defined in the grid.formedit-min.js. Any idea what is causing this??

30/08/2008
13:40
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

Ok, so I changed the loader my own way by just simplifying it immensely.  I can see by using the dom inspector in Safari that it is in fact loading the scripts in the correct error and before it hits the definition/declaration of the grid. It just seems that no matter what it chokes on that error in grid.formedit-min.js whether the scripts are in a loader or manually called. Firefox as far as I can see in the error console is not complaining. IE7 says there is an error but I can't get to the exact line.

30/08/2008
18:10
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

Well, not sure why it really is any differently unless the libs are not fully loading before the next. Copying the source from the demo getting the scripts in a specified order and manually loading it seems to work but the page is huge with scripts. Sure seems there should be an easier way.

31/08/2008
03:05
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Do you have tested the code that I have write here?

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.

31/08/2008
10:07
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

I tried to use the following:

function jqGridInclude()

{

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

    // if you do not want some module to be included

    // set include to false.

    // by default all modules are included.

    var modules = [ 'min/grid.base-min.js', // jqGrid base

         'min/grid.formedit-min.js', // jqGrid Form editing

         'min/grid.inlinedit-min.js', // jqGrid inline editing

         'min/grid.subgrid-min.js', //jqGrid subgrid

       'min/grid.custom-min.js', //jqGrid custom 

         'min/grid.postext-min.js' //jqGrid postext

     ];

    for(var i=0;i<modules.length; i++)

       IncludeJavaScript(pathtojsfiles+modules[i]);

function IncludeJavaScript(jsFile)

{

        var oHead = document.getElementsByTagName('head')[0];
var oScript = document.createElement('script');
oScript.type = 'text/javascript';
oScript.src = jsFile;
oHead.appendChild(oScript);
}

}

That did not work either so I resolved myself to this:

<script src="/scripts/js/min/grid.base-min.js" type="text/javascript"></script>

<script src="/scripts/js/min/grid.formedit-min.js" type="text/javascript"></script>

<script src="/scripts/js/min/grid.custom-min.js" type="text/javascript"></script>

<script src="/scripts/js/min/grid.inlinedit-min.js" type="text/javascript"></script>

<script src="/scripts/js/min/grid.postext-min.js" type="text/javascript"></script>

<script src="/scripts/js/min/grid.subgrid-min.js" type="text/javascript"></script>

<script src="/scripts/js/jqModal.js" type="text/javascript"></script>

<script src="/scripts/js/jqDnR.js" type="text/javascript"></script>

I hope you can figure out the issue with the loader. 🙂
This topic is locked No permission to create posts
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