First of all, both demos worked in Opera. The updated one did not work in IE or FF.
If I thought about this for awhile I could probably figure out why but, instinctively I just tried initializing the CMotion Image Gallery in its iframe after it had been expanded:
Code:
window.frames[2].fillup()
from the top page for the widget_partgallery.asp iframe and:
Code:
window.frames[3].fillup()
for the widget_articles.asp iframe. That did the trick. So, apparently these scripts need to be initialized after their content is displayed. How soon after, will determine the exact type of code fix required but, if we are lucky, something like so will work -
Change this:
Code:
onClick="expandcontent(this, 'partgallery')"
to this:
Code:
onClick="expandcontent(this, 'partgallery');window.frames[2].fillup();"
and similarly for the 'articles':
Code:
onClick="expandcontent(this, 'articles');window.frames[3].fillup();"
If we are not so lucky, we may need to devise a poll so that the content being initialized is fully available before it is initialized. And we may need to prevent these extra calls from firing more than once but, give it a try and see what happens. I usually fully test something like this locally myself but, due to the nature of iframes and security across domains, any test of that sort here on my machine would be quite complicated to setup. Since you already have all the files in one place, it should be fairly simple for you to see what happens.
Let me know.
Bookmarks