Hi,
After some refresh, and cleaning the cache, I can see all the .js files in "200 Ok" status (still not working, though
).
Honestly I have not checked OpenJSGrid yet since everything seemed so easy with jqGrid until now...and now I really would like to understand what is wrong !!!!
There is only a point that I have not reproduced exactly, where maybe you could give me a hint.
The original code (that I'm trying to reproduce) shows these lines in the "head" part:
<script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script type="text/javascript">
$.jgrid.no_legacy_api = true;
$.jgrid.useJSON = true;
</script>
<script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script>
I don't think I have problems with the file loading BUT if, inside my helper.php file, I place a
$doc->addScriptDeclaration("whatever");
between the
$doc->addScript($componentUrlAdmin . '/jqsuite/js/i18n/grid.locale-en.js');
$doc->addScript($componentUrlAdmin . '/jqsuite/js/jquery.jqGrid.min.js');
then the script is not rendered there where I place it: it goes messing the validator.js code.
To avoid confilcts I followed your suggestion and I placed the script inside the element.php jQuery(document).ready(function()
Anyhow, how do I have to proceed if I want
exactly those lines to be rendered before the jqGrid.min.js load, that is, to reproduce
exactly the head of the example I am following ?
Thanks for any possible suggestion.