View Full Version : Simple embed of javascript
pmcnamara
10-25-2008, 03:05 PM
I want to embed a video via TVU into a post in my forum (vb 3.7.3)
The script is:
<script type="text/javascript" src="http://dl.tvunetworks.com/webplayer/myTVU.js?c=channel_number&w=screen_width&h=screen_height&autoplay=y&style=1"></script>
When I copy that straight into the message box, nothing appears.. when I wrap it with
<html> or <embed> or <object>
tags nothing happens.
What am I doing wrong and what should I be doing ?
Lynne
10-25-2008, 03:15 PM
Do you allow html posting on your site (you shouldn't)? It will only 'do' something if you do allow html posting. And that's just a call to a javascript script. I don't think it will do anything if that is all you post (but I'm not a javascript expert at all).
pmcnamara
10-25-2008, 03:36 PM
Do you allow html posting on your site (you shouldn't)? It will only 'do' something if you do allow html posting. And that's just a call to a javascript script. I don't think it will do anything if that is all you post (but I'm not a javascript expert at all).
I am the admin, so I can set permissions to allow me to do it, but no one else..
the full HTML to put it into a webpage looks like this:
<script type="text/javascript" src="http://dl.tvunetworks.com/webplayer/myTVU.js?c=640&w=450&h=320&autoplay=1&style=1"></script>
that calls up the player and it should launch.. you can see it active here:
http://pages.tvunetworks.com/doc/webplayer.html
Lynne
10-25-2008, 04:09 PM
Actually, unless you have a modification installed, you cannot allow html just for an admin.
But, anyway.... are you getting an error on the page? Is it showing up in the page source?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.