it is constantly being updated
you can see the latest try now
Hi Jonas,
it becomes a JS issue there: The debugger says:
"Uncaught TypeError: Cannot read property 'style' of null" on the line
Use a simple quote:
document.getElementById('main-content-id').style.width = "100% !important";
-Greg
did not work...
using this code now:
<script>
if ('${show_sidebar}' == 'none') {
document.getElementById('main-content-id').style.width = "100% !important";
} else {}
</script>
which debugger do you use?
Chrome's
OK, i found out. The code is correct but the script is before the diplay of the element.
Move the script at the end of the page, before the </body>
-Greg
sorry to say it's not working either
the error code disappeared though...
HI Jonas,
This linked to your page and the global html error might be the reason why it does not work. I tried to run a similar code on another page, and it worked fine.
XMLHttpRequest cannot load http://www.postnord.com/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://pages.postnord.com' is therefore not allowed access.
-Greg
thanks, it sound strange that that error would only affect that bit of code but if that is the only thing left to try it is the logical solution.. I will check it out! thank you!