When trying to add a Flash.swf movie to a .ASP page you will sometimes get the following error:
Active Server Pages error 'ASP 0139'
Nested Object
/cli/context.planning/pw/introduction/index.asp, line 88
An object tag cannot be placed inside another object tag.
Solution
The solution is very simple just change the close object positions
Default Position:
I am not writing the full parameters here
< object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1000" height="250" >
--- Your Flash parameters---
< object type="application/x-shockwave-flash" data="bann-in.swf" width="1000" height="250" >
--- Your Flash parameters---
< / object >
< / object >
Updated Position:
< object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1000" height="250" >
--- Your Flash parameters---
< / object >
< object type="application/x-shockwave-flash" data="bann-in.swf" width="1000" height="250" >
--- Your Flash parameters---
< / object >
Conclusion:
Just change the position "< / Object >" from bottom to the top where another object tag is open
You might have seen this error when using ASP to generate client-side script:
You might have seen this error when using ASP to generate client-side script:
Active Server Pages, ASP 0138 (0x80004005) A script block cannot be placed inside another script block. |
This probably happened because you did this:
<script language=vbscript runat=server> Response.Write "<script>alert('foo');</script>" </script> |
Or this:
<> </>
<script language=jscript runat=server> Response.Write("<script>alert('foo');</script>"); </script> |
One way to alleviate this is to use the @language directive and use <%%>
delimiters throughout:
<% @language="vbscript" %> <% Response.Write "<script>alert('foo');</script>" %> |
Or this:
<% @language="jscript" %> <% Response.Write("<script>alert('foo');</script>"); %> |
If you are using both languages in the same page, you may have to use this
alternative workaround, where you break the script tags up:
<script language=vbscript runat=server> Response.Write "<scr" & "ipt>alert('foo');</scr" & "ipt>" </script> |
Or this:
<script language=jscript runat=server> Response.Write("<scr" + "ipt>alert('foo');</scr" + "ipt>"); </script> |
Regards
Rashid Imran Bilgrami
http://www.bestvisualization.com
Comments
Post a Comment
Thanks for the Comments , Your review will display soon