Thanks to feedback from a few different users I have been able to locate and fix the error occurring when loading DFFS with the new loader in IE8 mode.
The DFFS package has been updated to “September 21, 2016” – you find it here: https://spjsblog.com/dffs/
Thanks for all the feedback,
Alexander
I installed all the new files and now I get the below error.
Unable to get property ‘removeItem’ of undefined or null reference
This really puzzles me as sessionStorage is supported in IE8. Could you bring up the developer console (hit F12 > Console) and type in these test strings:
First set the value with this line:
then this line:
then this line to clear the value:
then this line to verify it has been deleted:
Any error messages?
Alexander
Errors in order.
Unable to get property ‘setItem’ of undefined or null reference
Unable to get property ‘getItem’ of undefined or null reference
Unable to get property ‘removeItem’ of undefined or null reference
Unable to get property ‘getItem’ of undefined or null reference
This concludes that the sessionStorage is definately not supported. A bit strange as it is supposed to be supported in IE8 – might be disabled in a group policy.
Can you try this version of the frontend file and see if it behaves better?
Best regards,
Alexander
I also found this which seems to fit the issue.. IE 11 with Windows 7. http://stackoverflow.com/questions/21155137/javascript-localstorage-object-broken-in-ie11-on-windows-7
Alex, I’m amazed you even spend the time supporting browser versions that are no longer vendor supported.
People need to updgrade or perish. 😉
IE 11 is still supported Paul.
Yes, ,I wish it was possible, but in large organizations some are still using IE8 or at least IE8 mode in IE11. Also SP 2010 forces the document mode to IE8 in IE 10 / 11.
Alexander
Any organisation that far behind has much bigger worries. Does Comaptability View resolve most issues?
I tried your new file and it gives me the below error still. I believe it is because sessionStorage is null not undefined.
/* Dynamic Forms for SharePoint [frontend] v4.4.0.2
Unable to get property ‘removeItem’ of undefined or null reference
OK – closing in on the problem. Could you type this in the console:
PS: Creating a fallback to “cookie” if sessionStorage is not accessible.
Alexander
//1
null
//2
“object”
It looks like our default IE Browser settings have “Enable DOM-Storage” unchecked.
That’s the setting that controls it (just fount it out myself) so that explains it.
I’ll make a few changes to the frontend file and send you another link to test.
Alexander
Hi Kasey,
Could you test this hopefully last version
Alexander
That appears to have done the trick! The new overlay has multiple time out values. Which one is most like the previous version that only had one? I want to increase the timeout of loading the configuration/form.
It’s the 10000 value in line 91. I’ll add the value to a variable so you can override it from the custom js in each form.
Alexander
With the new loader/installer if I have a Site Collection license and intend on hosting my files from a SPJS library on the Site Collection I know I have to update the value in the two files but do I also have to create a DFFS_Installer page on the Site Collection as well as all child sites I intend on using it on?
In the new version that incorporates the latest “sessionStorage” fallback, I have added an option to supply the license code in the “DFFS_loader.html” so you don’t have to add it to all sites.
Currently, you must add a CEWP to a web part page in each subsite that loads the “Installer” from the “/SPJS/DFFS/installer” folder on the root site. You can however export this web part and add it to the web part gallery to ease the process of adding it to the rest of the sites.
Alexander
Will you be posting a new version in SPJSFiles in the next couple of days with the above mentioned changes?
Packing the files now – ready in ~30 minutes.
Alexander
I did a fresh install of the Sept 21st version in 2013 and 2010. 2013 is working great, but I’m now receiving an error for the DFFS_backend_min.js file when clicking the enhanced with DFFS link. The backend config page will load, but it will not allow me to save if I make any changes. Console error reads
“Script438: Object doesn’t support property or method ‘on’ NewForm.aspx (1,68560)”
This is caused by loading a jQuery version < 1.7 as the "on" method was introduced in v1.7. The new installer will not load jQuery if it is already present in the page, but it will unfortunately not work with this old version of jQuery (v1.7 was released in 2011). Loading multiple versions of jQuery is not a good idea, so you need to update your existing version to at least 1.7 or later versions (latest v1.x version that supports IE 8 is 1.12.4). You can check which version is loaded by typing this in the console (hit F12 > Console):
Alexander