Advertisement:

Author Topic: How to run java scripts inside the post?  (Read 1243 times)

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
How to run java scripts inside the post?
« on: May 12, 2012, 02:19:53 PM »
If I just paste a java script or an html content to a post, it only displays the original content. I wanted to run a script/html on the post.
Thanks...

My forum V 2.2

Online Colin

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,806
  • Gender: Male
  • SMF Customizer
Re: How to run java scripts inside the post?
« Reply #1 on: May 12, 2012, 02:34:40 PM »
You will need to be an administrator on the forum, but use the following code.

Code: [Select]
[html]
...CODE HERE...
[/html]

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
Re: How to run java scripts inside the post?
« Reply #2 on: May 12, 2012, 02:41:44 PM »
yes i have try that when i try is nothink showing post blank

Online Colin

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,806
  • Gender: Male
  • SMF Customizer
Re: How to run java scripts inside the post?
« Reply #3 on: May 12, 2012, 02:45:42 PM »
Are you an admin on the forum?

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
Re: How to run java scripts inside the post?
« Reply #4 on: May 12, 2012, 02:48:27 PM »
YES

Online Colin

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,806
  • Gender: Male
  • SMF Customizer
Re: How to run java scripts inside the post?
« Reply #5 on: May 12, 2012, 02:49:04 PM »
What is the code snippet you are trying to display?

Offline Yoshi

  • Customizer
  • SMF Hero
  • *
  • Posts: 8,164
  • Gender: Male
Re: How to run java scripts inside the post?
« Reply #6 on: May 12, 2012, 02:51:27 PM »
Rather, does the code snipped output something?
My Mods / [WIP] Mod Builder / GitHub profile / "A programmer is just a tool which converts caffeine into code."
Quote
<FLAMER> Marketing is about to get into drug activities maybe... but we will see about that later on :P
<Yoshi2889> We're getting free drugs?
<CoreISP> He's talking about caffeine man, damn pen lifter.

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
Re: How to run java scripts inside the post?
« Reply #7 on: May 12, 2012, 02:57:03 PM »
i'am try to put tyhis code



<script type='text/javascript'> width=650, height=480, channel='asdfds5477a', e='2';</script><script type='text/javascript' src='http://www.mips.tv/content/scripts/mipsEmbed.js'></script>

Offline jaisi

  • Full Member
  • ***
  • Posts: 511
Re: How to run java scripts inside the post?
« Reply #8 on: May 14, 2012, 07:42:50 AM »
Dump...

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 2,096
  • Gender: Male
    • i30 Owners Club
Re: How to run java scripts inside the post?
« Reply #9 on: May 14, 2012, 08:41:58 AM »
i'am try to put tyhis code
Your code worked fine in my forum when surrounded by [html] and [/html] tags

Online busterone

  • SMF Hero
  • ******
  • Posts: 2,001
  • Gender: Male
  • Devil Dog
    • The Demon's Den
Re: How to run java scripts inside the post?
« Reply #10 on: May 14, 2012, 01:07:48 PM »
Same for me as well.
You may want to check your browser or attempt to view your forum with a different browser to see if it is embedded.