Forum


03:13

Moderators
30/10/2007

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);
}
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.
13:40

18/08/2008

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.
03:05

Moderators
30/10/2007

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.
10:07

18/08/2008

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>
Most Users Ever Online: 715
Currently Online:
77 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