i have a youtube embedded channel from a certain company, and below i have a list of links to other related companies, however this is just a widget on my page, so when i click a link in the list i want to get the new embedded youtube channel from the other company with an ajax call. i've tried running the script that i got from the youtube api but it does not load, i've also tried putting the script inside a div and then inserting the div in the widget and still no luck. does anyone have an idea how i can do this?
so this is the script i got from youtube for embedding a channel:
<div style="padding-bottom:10px" id="divYoutubeTab">
<script type="text/javascript" src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=opelblog&synd=open&w=880&h=390&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
</div>
i would like to click a link and on the onclick function i just change the channel name and the channel should reload to the new channel .. but i can't. the ajax call is just to get the name of the channel from my database