Previous Thread
Next Thread
Print Thread
Hop To
#244508 07/23/2011 2:40 PM
Joined: Dec 2006
Posts: 184
member
OP Offline
member
Joined: Dec 2006
Posts: 184
I'm trying to put the following code into a post to djow a video hosted on my own server

Code
<script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
 
<div id='mediaspace'>This text will be replaced</div>
 
<script type='text/javascript'>
  jwplayer('mediaspace').setup({
    'flashplayer': '/jwplayer/player.swf',
    'file': '/cgtv/Ironclad.flv',
    'image': '/cgtv/ironclad.jpg',
    'backcolor': '000000',
    'frontcolor': 'FFFFFF',
    'stretching': 'exactfit',
    'controlbar': 'bottom',
    'width': '518',
    'height': '384'
  });
</script>

Now, it works in a test page uploaded to the server ( here) but not in a post ( here).

I have the markup set to allow HTML in the post.

Is there anything I can do to make this work?

I'd like to be able to insert the code in the posts for videos on my own hosted server.

I use the normal tags for videos elsewhere.

Stephen G #244509 07/23/2011 2:47 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
ensure you are inserting as HTML only not HTML + bbcode for that post

otherwise the newline characters will be converted to the <br /> character and essentially break your javascript

if you use Firebug and view source, that is what is happening

2c

Stephen G #244510 07/23/2011 3:21 PM
Joined: Dec 2006
Posts: 184
member
OP Offline
member
Joined: Dec 2006
Posts: 184
Great stuff, thanks SD

It doesn't work when I try to Preview it but it works once posted. smile

Stephen G #244512 07/23/2011 3:26 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
yeppers.. that is a semi-buglet in the preview markup

i need to semi-fix that in 7.6 laugh

Stephen G #244513 07/23/2011 3:28 PM
Joined: Dec 2006
Posts: 184
member
OP Offline
member
Joined: Dec 2006
Posts: 184
laugh


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PM limits
by jjjjj - 01/07/2021 12:59 PM
FAQ is blank?
by Bad Frog - 01/06/2021 12:01 PM
IP Addresses Of Users
by tinker123 - 01/03/2021 3:07 PM
User display name gets chopped
by - 12/25/2020 1:08 PM
Who's Online Now
0 members (), 41 guests, and 55 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5