flash javascript error

J

Jeff

hi

asp.net 3.5
vs2008

I got an javascript error on my .aspx page

This is the code making the error:
<div style="width:497px; margin-left:auto; margin-right:auto;
margin-top:20px; margin-bottom:20px;">
<object width="497" height="417"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
<param name="flashvars" value="file=<url to video here>" />
<param name="movie" value="Flash/player-viral.swf" />
<embed src="Flash/player-viral.swf" width="497" height="417"
bgcolor="#FFFFFF" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="file==<url to video here>" />
</object>
</div>

This is the error details I get from IE8 (testing on website, not running
through vs2008)
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
..NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 3 Jun 2009 17:28:05 UTC

Message: 'null' is null or not an object
Line: 1
Char: 115
Code: 0

When testing through vs2008 I get this error:
try {
document.getElementById("").SetReturnValue(__flash__toXML(window.location.href.toString())
); } catch (e) {
document.getElementById("").SetReturnValue("<undefined/>"); }

I don't see any javascript inside markup below so it's a bit strange to me
this error, but if I remove this block of markup then I don't get the error,

any ideas?
 
G

Guest

hi

asp.net 3.5
vs2008

I got an javascript error on my .aspx page

This is the code making the error:
<div style="width:497px; margin-left:auto; margin-right:auto;
margin-top:20px; margin-bottom:20px;">
        <object width="497" height="417"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab...">
        <param name="flashvars" value="file=<url to video here>" />
        <param name="movie" value="Flash/player-viral.swf" />
        <embed src="Flash/player-viral.swf" width="497" height="417"
bgcolor="#FFFFFF" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="file==<url to video here>" />
        </object>
    </div>

This is the error details I get from IE8 (testing on website, not running
through vs2008)
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 3 Jun 2009 17:28:05 UTC

Message: 'null' is null or not an object
Line: 1
Char: 115
Code: 0

When testing through vs2008 I get this error:
try {
document.getElementById("").SetReturnValue(__flash__toXML(window.location..h ref.toString())
 ); } catch (e) {
document.getElementById("").SetReturnValue("<undefined/>"); }

I don't see any javascript inside markup below so it's a bit strange to me
this error, but if I remove this block of markup then I don't get the error,

any ideas?

I would try to debug it. Enable script debugging in the Tools -
Options - Advanced tab of IE, then you will be able to choose debugger
(VS.NET) on error. I hope this helps to see where the error comes from
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,748
Latest member
MerryWhitm

Latest Threads

Top