Hello I have a simple Javascript that calls a

SomePlayer(3990, 400, 300);

I added this to a Drupal page, (as Full HTML ).But the problem is I get a "IE cannot open the side http://somethig Operation oberted".

But this works fine without Drupal, when I use it as a simple HTML with the Javascript in it.

Does

1.Drupal have a different way of handling JS scripts
2.I used the Impout format in the page as FULL HTML , is that casuing the problem
3.Are there any built in security for Drupal that stops Java Scripts from executing with the code.

Please Help me !!!

Comments

vm’s picture

Try using the php input format

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

keanu007’s picture

Cannot figure out why ..a simple html file on the same server does not give the problem.

Is there any other way to do this? Thank you

vm’s picture

please post the code you are trying to use wrapped in code tags so that it isn't stripped.

or link to the .html file using paste bin if necessary.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

keanu007’s picture

<script type="text/javascript" src="http://dl.tvunetworks.com/webplayer/webplayer.js">
</script>
<script type="text/JavaScript">
tvuplayerX(3990, 400, 300);</script>

The problem with this is that it works sometime but fails most of the times within Drupal, but always works for the html file.

Thanks

Oblivious-1’s picture

Try this and see if it helps...

<script type="text/javascript" src="http://dl.tvunetworks.com/webplayer/webplayer.js">
</script>
<script type="text/JavaScript">
  $(document).ready(function(){
    tvuplayerX(3990, 400, 300);
  });
</script

--
Erik

keanu007’s picture

Does not seem to work.Thank you though.Also the above strips of my menus's etc.

Oblivious-1’s picture

Odd. My first guess is that the script is being called before the linked source is fully loaded or the target element has been rendered. Using jQuery's $(document).ready() should prevent the script from loading until everything is ready to go. But it didn't. And it sounds like it broke things too. So I don't know offhand.

--
Erik

keanu007’s picture

But the Image of the player is loaded though, it is just that the player does not work.and yes it broke all the surrounding menu's too