hi guys, this is not a bug report for more of advice. would i need this module for what i'm trying to do?

i'm trying to embedd a tinychat.com chat into a page or block or anything for that matter on my drupal site and it does not seem to work.
i know this script works because when i paste it into a blank html document and upload it to my site manually (apart from the drupal cms) it works perfectly.

i added tags "" into "input type" but that did not work. nothing showed up when published.
here is the code that does not work in any drupal nodes.

<script>
var tinychat = { room: 'roomname' };
</script>
<script src='http://tinychat.com/js/embed.js'></script>
<div id='client'></div>

what am i doing wrong?
can someone please help??

Comments

InfinityMark’s picture

What Input Type are you using?

timmeh’s picture

i added a 'script' '/script' (with < and >) input type into the inputs.
is there a step i'm missing? it seems to be only when i try to embed with drupal. when i use a plain text editor to create a simple html page with only the embed code it works.

i found another site that had what i'm looking for.
its dofattv dot com
if you look at their html code it looks like this:

<div id="videoBox"><script type='text/javascript'> 
var tinychat = { room: "examplechat", join: "auto", api: "list", oper: "none", owner: "none", colorbk: "0x878d8f", login: "twfb"};
</script>  <script src="http://tinychat.com/js/embed.js"></script>
<div id="client"><font size="1" color="#19191a">  often discussed:text here </font></div>
<div id="preloader"><center><img alt="" src="/public/images/loadingAnimation.gif" /><br />
Loading...</center></div>
<script> 
function finishedLoading () {
$("#preloader").html ( "" );
}
</script></div>

and their code works! i think its something to do with the input type perhaps.
have any ideas??

timmeh’s picture

double post. sorry, pls delete