Wasn't sure where to to post this and although at first it may not seem dnn related, and indeed it may not be, I at least have to rule it out.
I set up an iframe to auto size depending on the content. It worked great and is...was very cool.
However after a few days it stopped working. I have asked this question at other, more js specific forums, but no one had an answer.
The problem is that, as far as I know, nothing has changed. It just stopped working. Definitely the js and iframe code did not change. I would have remembered changing it, but had no reason to so as it was working fine.
The iframe code:
<iframe src="http://example.com/restaurant.aspx" =" resizeIframe(this);" scrolling="No" id="iframe" width="950px">
</iframe>
The js code:
<script language="javascript" type="text/javascript">
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
}
</script>
I used Will Strohl's Content Injection module for the js code as I have done for other instances without issue.
The ONLY thing that I think might have changed are the quotes. The original code had single quotes but the code in my iframe has double quotes. No one in the other forum advised that this could be the problem. Does someone here know if that could be the issue?
I have tried to change the double quotes to single but upon saving the html module, it reverts to double quotes. I have checked the html module manager but am unsure of what setting might be responsible for this, if there is one. Regardless, I didn't make any changes in the manager.
Could the host have made a change of some sort that would affect the running of this script?
Any ideas on this?
Bob