November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Yes. In most cases this happens because the page isn't visible when the JavaScript code runs. When an HTML-element is hidden it doesn't have a width or height and therefore the script fails.
You can try to add some delay to the script (with setTimeout) when browsing the page in edit-mode.
Sorry for the delayed replay, but this method worked a treat.
thanks,
Justin
At a client's request I've recently added some JQuery to apply rounded corners to a number of images on a site.
This all works fine expect when previewing the page in the backend of the CMS, atwhich point the code still runs, but the results are not as expected!
I've noticed similar things with some JQuery (or maybe JavaScript in general) in the backend, this seems to play up in certain circumstances... maybe when manipulating/adding HTML within the script?
Has anyone encountered this before?