The problem on IE8 was from another js file thas was overrideing the AAA js namespace, because it had a "var AAA;" at the start of the file.
IE8 Sharepoint - JS Resources " is null or not an object"
-
11-07-2023 - |
Pergunta
I have some JS Resources in a "JSResources.resx.scriptx" file. In that file I have an XML:
<?xml version="1.0" encoding="utf-8"?>
<root xmlns="http://schemas.microsoft.com/sharepoint/resxscriptx" javascriptClassName="AAA.BBB.Res">
If I open a page that has something like this: if (record.properties['Weight'].localizedValue == AAA.BBB.Res.NaN)
(Where NaN is a Token in that XML, and has resorces in the JSResources.AA-BB.resx files)
in any modern browser it works perfect, but if I open it on IE8, it will generate an JS error: 'AAA.BBB.Res' is null or not an object.
If you have any ideeas please tell me...
Have a nice day!
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow