By keanu007 on
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
=-=
Try using the php input format
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Same problem with the php input format
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
=-=
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 : )
JS code that is casuing the problem
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
Try this and see if it
Try this and see if it helps...
--
Erik
Does not seem to work...
Does not seem to work.Thank you though.Also the above strips of my menus's etc.
Odd. My first guess is that
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
But the Image of the player is loaded though
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