views:

20

answers:

1

Hello guys, this is my problem.

I have a video tag, whose src is an url. Like this:

var video = $('video');    ///using prototype js framework
video.setAttribute('src',
    'aNiceUrl');

The problem is that i need to get some data from the video HTML header, but i dont know how to get it. I need to get the data in the same moment i get the video, cant do more requests to 'aNiceUrl'. The data doesnt have to come in the header, i simply need a way to get it. Any ideas?

BTW, i can see the data with firebug on the net tab, any ideas of how is he doing that?

A: 

Sure. This is what firebug shows on te response header.

Date Fri, 17 Sep 2010 07:21:33 GMT Server Apache/2.2.12 (Ubuntu) X-Powered-By PHP/5.2.10-2ubuntu6.4 X-Avatar-Length 8.4031935 Keep-Alive timeout=15, max=65 Connection Keep-Alive Transfer-Encoding chunked Content-Type video/ogg

I need to access the 'X-Avatar-Length' parameter.

Thanks for answering John.

Alberto Mnemon