IE9 does not append anything
Hi there,
I hope you can bring me some light to my problem.
Recently I've made my first web, and there is a section with video files. I use to load the videos a lateral menu with a jquiery script where first of all, video tag is cleaned up with .empty(), and then the structure necesary of the video clicked is created into it with an .append()
It works fine on every browser as usual, but in IE9 the videos never load neither the code is created.
And here is the script:
- $(document).ready(inicia)
- function inicia() {
- $("#botoneravideo li").click(cargavideo)
- }
- function cargavideo() {
- title=$(this).attr('title')
- video1='"video/'+title+'H264.mp4"'
- video2='"video/'+title+'WebM.webm"'
- video3='"video/'+title+'Theora.ogv"'
- $("#videocontainer").empty()
- $("#videocontainer").append('<source src='+video1+'type="video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"">')
- $("#videocontainer").append('<source src='+video2+'type="video/webm; codecs=\"vp8, vorbis\"">')
- $("#videocontainer").append('<source src='+video3+'type="video/ogg; codecs=\"theora, vorbis\"">').load()
- }
Just one point, I use HTML5 on the structure so, to force IE8 compatibility is not possible.
THANKS A LOT!!!