-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error message only on IE 11 on Windows 2012 R2 - Solved #46
Comments
Please "View Source" of the page in the non-working browser, and make sure the store.js is correctly loaded. That error message is generated only if 'store.js' is not enabled or not available. Also check that IE11 is not set for InPrivate Browsing. |
Thanks so much for your comment, JillElaine! Other than the Store.min.js, is there anything else I would need to in order to properly load store.js ? Thanks! |
Please use a Javascript console debugger such as the one in Firefox's 'Developer'. https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Opening_the_Web_Console View the information to check the correct loading of all required scripts, and watch for error messages. Please read the Installation > script tag on marcuswestin's store plugin. https://github.com/marcuswestin/store.js#user-content-installation You might try using the marcuswestin script store.legacy.min.js instead of store.min.js? |
Any news, R5ty5tt? |
Thanks JillElaine! I don't seem to find any clues from FireFox's debugger. What seems to be most successful has been "store.min.js" file. I have downloaded the latest version of store.min.js file into a local folder, and it is loaded using the following line of script. <script src="../Plugins/store.min.js" type="text/javascript"></script>I believe this is how this should be "installed." Is there anything I am missing here? Are there any other script files that should also be placed in the same folder? Based on the above, the timeout plugin works perfectly on Chrome, FireFox, Edge, and IE on Windows 10. |
I appreciate that you are working hard to test the script in a variety of browsers & OSs. I have not had anyone report this problem before, but I suspect it is an issue with Windows 2012 R2 + IE11. If you are unsure how to load an external Javascript, please read the information here: https://www.w3schools.com/js/js_whereto.asp There are many ways to determine if a Javascript file is loaded. All the dependencies for the idleTimeout script are listed in the README.md. There are no other dependencies for the idleTimeout script. I wonder what will happen if you disable the error message in the idleTimeout script? Perhaps it is a bogus error? The script stops if the error is thrown, so you will need to disable the error. To disable the error message, you will need to edit the code. This is easy to do. Please download the "un-minified" idleTimeout script: https://github.com/JillElaine/jquery-idleTimeout/blob/master/jquery-idleTimeout.js Open the downloaded script in a code editor. Don't use Windows Notepad, as it adds extraneous characters to files. There is a Notepad++ editor that will work though. http://www.wpbeginner.com/showcase/12-best-code-editors-for-mac-and-windows-for-editing-wordpress-files/ In your code editor, at the bottom of the idleTimeout script, replace the "construct" function. ORIGINAL CODE
REPLACE WITH
As you can see, the change to the code removes the "test" Save your edited code with a new name - e.g. "jquery-idleTimeout-no-test.js", and then load the modified script into your webpage. EXAMPLE
Please test and let me know. |
JillElaine, thanks so much for your continuing help and advice. I have used your alternative code that disabled the error message. It disabled the pop-up error, but the IE won't still time out properly. So, bypassing that didn't help. But I greatly appreciate your suggestion. So, I found a block of code that verifies whether an external script has been loaded. `<script> //great suggestion @Jasper var len = $('script[src*="../Plugins/store.min.js"]').length; if (len === 0) {
function loadScript(scriptLocationAndName) { When I inserted this script into the page in question, the IE showed "Script Loaded." So, at least, based on this code. store.min.js seems to have been uploaded. I do not completely understand how web browser works, but here are tricky things: I wonder if Windows 2012 R2 is imposing some restrictions on IE11 in terms of using jQuery/javascript. Thanks so much! |
If the idleTimeout script runs correctly on all browsers & OSs except the Windows 2012 R2, then it does seem to point to something unusual with Win2012. Some tests that may help narrow it down:
My guess is that there is a setting in the Internet Information Services II server on the Win2012 box that is forcing the site into Private Mode or something similar. I suggest you talk to the Server Admin. Some related information here: https://msfreaks.wordpress.com/2013/12/29/step-by-step-customizing-rd-web-access-2012-r2/ |
Thanks JillElaine! I have tested the IE11 on the Win2012 server directly without using a VPN, and it doesn't work. So, I don't think VPN is an issue here. I have tested Chrome on the Win2012, it works perfect. So, the problem is only with the "IE11 on the Win2012." I will contact the server administrator about the private mode; and keep you updated. Thanks again! |
The idleTimeout script uses 'localStorage' (via the store.js plugin from Marcus Westin) to set & retrieve a few variables. These localStorage variables are available across multiple browser windows and tabs, so the idleTimeout script can keep them in synch. The 'test' in the idleTimeout script just checks if the script can set a localStorage variable. If it can't, then the script prints the error and exits. https://en.wikipedia.org/wiki/Web_storage |
Hi JillElaine, |
I am so glad you solved the issue! IE's 'compatibility view' can cause many subtle problems with sites. Thank you for posting the solution. |
I was able to make this plugin work perfectly on multiple browsers, including Chrome, Edge, and IE11 on Windows 10. However, somehow, when I open the page including this plugin on
Explorer 11 (Version: 11.0.9600.18666; Update Version: 11.0.42) on Windows 2012 R2, it shows the following error message
"Please disable "Private Mode", or upgrade to a modern browser. Or perhaps a dependency file missing. Please see: http://github.com/marcuswestin/store.js."
I have certainly uploaded all necessary dependency files, including the following:
<script src="../Plugins/jqueryUI/jquery-1.12.4.js"></script> <script src="../Plugins/jqueryUI/jquery-ui.min.js"></script> <script src="../Plugins/JillElaineidleTimeout/store.min.js"></script> <script src="../Plugins/JillElaineidleTimeout/jquery-idleTimeout.js"></script>Again, this works perfectly on other browsers on Winows 10.
But for some reason, this IE11 on Windows 2012 R2 is showing that message, and the plugin doesn't work. I really need to make this work on the Win2012 R2 server.
Would anyone please provide comments on this issue?
Thanks so much for your time!
The text was updated successfully, but these errors were encountered: