Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Can't embed flowplayer in IE7 using 'Label.setContents'

    Hi everybody!

    I'm really breaking my mind. First of all, I'm using SmartGwt

    I'm using Flowplayer to play videos in my web. In a first time, I had added the player and the video in the html file, in this way:

    --------------------
    <script type="text/javascript" src="prueba_web/flowplayer-3.2.6.min.js"></script>

    <script>reproFLOWPLAYER='MyProject/flowplayer-3.2.7.swf';</script>
    <a href='/videos/u2.flv' style='display:block;margin:0 auto;height:300px;width:400px;' id='id_video'> </a>
    <script>flowplayer('video', reproFLOWPLAYER);</script>

    <div id='other_contents' name='other_contents'></div>
    --------------------

    No problem here, Firefox and IE run. But when I have wanted to add this lines to the file where the method onModuleLoad is, Firefox still works, not IE. I've done it in this way, the two first lines of the last code remain in the html file, the other lines are copied in the java file:

    -----------------------------------
    String flowStr = "<a href='/videos/u2.flv' style='display:block;margin:0 auto;height:300px;width:400px;' id='video'> </a>";

    flowStr = flowStr.concat("<script>flowplayer('video', reproFLOWPLAYER);</script>");

    Label lab = new Label();
    lab.setContents(flowStr);
    RootPanel.get("other_contents").add(lab);
    ----------------------------------

    This doesn't work in IE, in Firefox there's no problem at all. So, I really beg your help.

    Thanks in advance!!
    Last edited by Sabbia; 8 Mar 2011, 21:10.
Working...
X