hi man<div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">
It doesn't emit that event at the same time that a new Image() does. I</blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">
need a way to throw an error to the user if the audio file isn't</blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">
accessible. I do this for the images and it works quite well.</blockquote><div>I have used "load" and "error" and others events for new Image and new Audio and it seems that work fine, could you explain the event that you want to catch?</div>
<div><br></div><div><div>I think audio.addEventListener("error", function(e) {....}, false ); </div><div>will do the work.</div><div><br></div></div><div>btw. here is the list of events for media elements, section <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;white-space:pre-wrap"><a href="http://4.8.10.12" target="_blank">4.8.10.12</a>: <span style="border-collapse:separate;font-family:arial;white-space:normal;font-size:small"><a href="http://dev.w3.org/html5/spec/Overview.html" target="_blank">http://dev.w3.org/html5/spec/Overview.html</a></span></span></div>
<div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;white-space:pre-wrap"><br>
</span></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;white-space:pre-wrap">greetings! </span></div>
</div><div><br><div class="gmail_quote">2009/11/18 Bryan Berry <span dir="ltr"><<a href="mailto:bryan@olenepal.org" target="_blank">bryan@olenepal.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey subzero,<br>
<br>
Do you know when does an audio element created w/ new Audio() emit the<br>
onload event?<br>
<br>
It doesn't emit that event at the same time that a new Image() does. I<br>
need a way to throw an error to the user if the audio file isn't<br>
accessible. I do this for the images and it works quite well.<br>
<br>
I also need to this for svgs but haven't figured out the mechanism<br>
<font color="#888888"><br>
--<br>
Bryan W. Berry<br>
Senior Engineer<br>
OLE Nepal, <a href="http://www.olenepal.org" target="_blank">http://www.olenepal.org</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Felipe López Toledo<br>
</div>