SWFObject Question:

Download Job Interview Questions and Answers PDF

How to avoid Active Server Pages error ASP 0139 when using static publishing and Microsoft IIS?

SWFObject Interview Question
SWFObject Interview Question

Answer:

Microsoft IIS's ASP interpreter incorrectly doesn't allow a page with nested <object> tags, resulting in the following error message:

Active Server Pages error 'ASP 0139'

Nested Object

/yourWebpage.html, line XX

An object tag cannot be placed inside another object tag.

You can avoid this error by using one of the following workarounds (note: which workaround will be best will depend on your specific situation):

Configure IIS not to serve .htm and .html files as ASP
Use a server-side include
Create the object tags dynamically, the 'Update - The Dynamic Approach'

Download SWFObject Interview Questions And Answers PDF

Previous QuestionNext Question
How to prevent Internet Explorer from showing an error message when using External Interface and SWF that is inside a <form> tag?How to pass URIs or HTML code as a value using flashvars?