# Javascript error when inserting an SWF into a page from tempplate

**URL:** <https://forum.kirupa.com/t/javascript-error-when-inserting-an-swf-into-a-page-from-tempplate/287761>\
**Category:** Uncategorized\
**Created:** [May 6, 2009, 12:19am UTC](https://forum.kirupa.com/t/javascript-error-when-inserting-an-swf-into-a-page-from-tempplate/287761 "2009-05-06T00:19:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattock](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mattock](https://forum.kirupa.com/u/mattock)\
**Post date:** [May 6, 2009, 12:19am UTC](https://forum.kirupa.com/t/javascript-error-when-inserting-an-swf-into-a-page-from-tempplate/287761/1 "2009-05-06T00:19:05Z")

</div>

HI, Ive set up a very simple template in Dreamweaver CS4, then created a new html page from this template.  
my problem is when I insert an SWF into a table I get this error message…

“ **while executing objecttag in image.htm a javascript error occurred** ” and wont insert it at all. :\*(

I dont get this message when inserting an SWF into a table from a non templated page ?  
any ideas why?.. Thanks
