MS Internet explorer compatible mode - code problem
Autor: Vladimír V.
Visitado 3317,
Followers 1,
Compartido 0
Hi, I was transforming some old sites from 8,9,or maybe 10 to Professional, and need help with some problem; when MS Internet Exlpore is switched to "compatible mode", there is a yellow triangle warning in status bar, and in one site, e.g. doesnt work add to cart function. This problem occurs in MS IE 8, MS IE 10.0
According dialog it is related to x5cart.js ...
I checked this in Chrome or Firefox, there is no problem ...
Do you have an advise how to fix it? Many thanks.
Publicado en
Hello Vladimir,
I tested you website with IE 8 and 10 in compatibility mode but there was no error message. Can you please tell me in which page you get this error and also try to reset to default your IE asnd then check again?
Many thanks!
Autor
HI, thank you for reply, i had to fix it quickly so i use <metahttp-equiv="X-UA-Compatible"content="IE=edge" /> to prohibit compatible mode - not sure how good solution it is, but anyway it is quiet complicated as this must be put just right after <head>, and it is not possible in website X5 - only manualy in text editor so after each site update it must be done again :-(
Autor
Hi Claudio, just to complete previous, I had to fix it quickly as cart wasnt functional; when tried to add any item to cart, nothing happen in compatible mode. So i applied it to index.html and cart/index.html. Any advise is appreciate, as my temporary fix is not comfortable due necessity of manual index.html editing. Even when sort order option of custom code will be available in Websitex5 (curently it is without choose possibility at the end of <HEAD> section, exactly before </HEAD> tag), there is no way to insert custom code into /Cart/index.html ...
Thanks for help.
Best regards, Vladimir
Hello Vladmir,
I tried with a new project but I could not duplicate the issue on Internet Explorer with compatibility mode.
The <metahttp-equiv="X-UA-Compatible"content="IE=edge" /> is a valid solution since it will be read only by IE and it needs only to be in the HEAD section.
Can you please let me know the exact error message you get in IE?
Many thanks!
Autor
Hello Claudio,
i removed now the line with <META ... > so you can check the behaviour in IE ...
Many thanks!
Hello Vladmir,
Thank you fro removing the code.
I tested the page and it is working correctly. It is not showing the error message.
Please try to check if there is any update for IE and install it.
Once done check the website again.
Many thanks!
Autor
Hi Claudio,
sorry for opening this again, but have you tried to click on button "Koupit" on main page below the website X5 image, in both modes (normal and compatibility) - it doesnt work for me neighter in MS IE8.0, not in MS IE 10.0 browser. It works only in normal mode, there is no action in Compatibility mode. I asked some my friend to test it, and they confirmed it to me ...
Hello Vladimir,
The compatibility mode uses specific functions of IE 7 and these can create issues on websites. It is not necessary to use the compatibility mode to see the website since this function is only for older websites which are only visible on IE 7 or older.
I suggest you to not use as test the compatibility mode since the your website is perfectly compatible with the normal mode and the compatibility mode is not a real browser mode but an emulation of old functions which can make the page not working correctly in some cases.
Many thanks!
Autor
Hello Claudio,
thank you - i understand that it is only for old browsers (and perhpas MS only), i just wanted to have under control, when some visitor switch on compatibility mode (due any reason). For some site it is just design issue, but for another one it causes "add to cart" disfunction. As i wrote above, I could prohibit it using custom code, but as it must be put in specific place, it must be done manually using text editor (as website X5 doesnt allow put it righ after <HEAD>) - so each time, after site update publishing, must be edited again.
May be Incomedia should consider add more options for custom code, to choose e.g. add a custom code right after <HEAD> tag :-)
Thanks,
Vladimir
Hello Vladimir,
The metatag you add can also be added in step 1 - expert - in the Head section since Microsoft says it must appear in the header of the webpage (the HEAD section) before all other elements except for the title element and other meta elements.
On Microsoft website it is reccomended to not use the metatag since if you declare <!DOCTYPE html> it will automatically use the most high version, which is present in the projects made with WebSite X5:
http://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx
Many thanks!
Autor
Hi Claudio, it is interesting advise, thank you.
BR,
Vladimir