Keyword

Youtube tags don't work when I use javascript!!!

  • GreenMadness
  • GreenMadness's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago #53189 by GreenMadness
Hello guys!!! I think I need your help here...

In to my php code I have add a hidden textbox by the id video_url that holds video's source and a div by the id video.
<input id="video_url" name="video_url" type="hidden" value="" />
<div id="video"></div>
Now in to my javascript code I have add something like this...
var Open      = String.fromCharCode(123,121,111,117,116,117,98,101,125); // {youtube}
var Close     = String.fromCharCode(123,47,121,111,117,116,117,98,101,125); // {/youtube}
var video     = document.getElementById("video");
var video_url = document.getElementById("video_url");
...
video.innerHTML =  Open+video_url.value+Close;
So, when someone click on an image, video div comes up with youtube tags in it. Problem is youtube tags and video source they appear just as text!!!

File Attachment:


Any idea how I will make it work???
Thank you in advance!!!

Please Log in or Create an account to join the conversation.

  • GreenMadness
  • GreenMadness's Avatar Topic Author
  • Offline
  • New Member
More
11 years 8 months ago #53190 by GreenMadness
Replied by GreenMadness on topic Re: Youtube tags don't work when I use javascript!!!
Αδέρφια κανένας;

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum