Hi everybody,
I'm having a very heavy problem. After hours trying to find out the
reason, I've realized that my problem can be simplified to these few
lines:
- HTML file:
<body>
<div id='fplay'></div>
</body>
- GWT Main file:
public void onModuleLoad() {
String str = new String("<script type='text/
javascript'>window.alert('hello');</script>");
HTML h = new HTML(str);
RootPanel.get("fplay").add(h);
}
In Firefox I get a nice "hello" in the alert, but nothing happens in
IE7. In my project I'm using GWT 2.2 and SmartGwt 2.4, and I hope all
my problem is this: how to add a javascript line making it working in
IE7. Obviously, I've tried to do it in a million different ways: I've tried to add it to a Label (Label.setContents(String)), with Label.setContents(new HTML(String...))... no way.
I know this example is very simple, in my application, I've to show a
media player (Flowplayer) in a dynamic way, so users will be able to
click an image, loading in this way a referenced video in the player.
In order to get it, I need to add this script:
<script type='text/javascript'>
flowplayer('player', 'flowplayer-3.2.7.swf',
{clip:autoPlay:false,autoBuffering:true}});
</script>
In Firefox everything's working, not in IE7. So, I think that all my
problem can be simplified to the simple example I've commented.
Please, I really need your help...
Thanks in advance
I'm having a very heavy problem. After hours trying to find out the
reason, I've realized that my problem can be simplified to these few
lines:
- HTML file:
<body>
<div id='fplay'></div>
</body>
- GWT Main file:
public void onModuleLoad() {
String str = new String("<script type='text/
javascript'>window.alert('hello');</script>");
HTML h = new HTML(str);
RootPanel.get("fplay").add(h);
}
In Firefox I get a nice "hello" in the alert, but nothing happens in
IE7. In my project I'm using GWT 2.2 and SmartGwt 2.4, and I hope all
my problem is this: how to add a javascript line making it working in
IE7. Obviously, I've tried to do it in a million different ways: I've tried to add it to a Label (Label.setContents(String)), with Label.setContents(new HTML(String...))... no way.
I know this example is very simple, in my application, I've to show a
media player (Flowplayer) in a dynamic way, so users will be able to
click an image, loading in this way a referenced video in the player.
In order to get it, I need to add this script:
<script type='text/javascript'>
flowplayer('player', 'flowplayer-3.2.7.swf',
{clip:autoPlay:false,autoBuffering:true}});
</script>
In Firefox everything's working, not in IE7. So, I think that all my
problem can be simplified to the simple example I've commented.
Please, I really need your help...
Thanks in advance
Comment